1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-24 21:32:59 +02:00

hostapd: fix a compile issue when compiling wpa_supplicant (fixes #9837)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27830 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2011-07-29 14:14:32 +00:00
parent 9ac9df93e9
commit fbcf176452

View File

@ -55,12 +55,11 @@
new_addr[0] ^= idx << 2; new_addr[0] ^= idx << 2;
if (!nl80211_addr_in_use(drv->global, new_addr)) if (!nl80211_addr_in_use(drv->global, new_addr))
break; break;
@@ -5980,6 +5980,8 @@ static int wpa_driver_nl80211_if_add(voi @@ -5996,6 +5996,7 @@ static int wpa_driver_nl80211_if_add(voi
} os_free(new_bss);
#endif /* CONFIG_P2P */ return -1;
}
+ memcpy(new_bss->addr, addr ? addr : if_addr, ETH_ALEN); + memcpy(new_bss->addr, addr ? addr : if_addr, ETH_ALEN);
+ os_strlcpy(new_bss->ifname, ifname, IFNAMSIZ);
#ifdef HOSTAPD new_bss->ifindex = ifidx;
if (bridge && new_bss->drv = drv;
i802_check_bridge(drv, new_bss, bridge, ifname) < 0) {