[PATCH] driver_nl80211: fix interface address assignment
Johannes Berg
johannes
Wed Apr 27 05:02:41 PDT 2011
From: Johannes Berg <johannes.berg at intel.com>
When a new interface is created and already has
a separate MAC address assigned by the kernel,
then we need to use that address, not just when
we've created a locally administered address.
This fixes use_p2p_group_interface=1 for iwlagn
as it already makes mac80211 assign an address
for a second interface since the hardware has
two addresses assigned.
Signed-off-by: Johannes Berg <johannes.berg at intel.com>
---
src/drivers/driver_nl80211.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/src/drivers/driver_nl80211.c 2011-04-27 13:59:20.000000000 +0200
+++ b/src/drivers/driver_nl80211.c 2011-04-27 13:59:25.000000000 +0200
@@ -5842,8 +5842,8 @@ static int wpa_driver_nl80211_if_add(voi
nl80211_remove_iface(drv, ifidx);
return -1;
}
- os_memcpy(if_addr, new_addr, ETH_ALEN);
}
+ os_memcpy(if_addr, new_addr, ETH_ALEN);
}
#endif /* CONFIG_P2P */
More information about the Hostap
mailing list