From: Felix Fietkau Date: Fri, 29 Jul 2011 14:15:05 +0000 (+0000) Subject: hostapd: fix a compile issue when compiling wpa_supplicant (fixes #9837, backport... X-Git-Tag: backfire_10.03.1~169 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=92c1545d17c6ee07614ba91609afa4eb759b4df7;p=openwrt%2Fsvn-archive%2Fopenwrt.git hostapd: fix a compile issue when compiling wpa_supplicant (fixes #9837, backport of r27830) SVN-Revision: 27831 --- diff --git a/package/hostapd/patches/780-wds_addr_fix.patch b/package/hostapd/patches/780-wds_addr_fix.patch index bd2f5554eb..4c91d03a52 100644 --- a/package/hostapd/patches/780-wds_addr_fix.patch +++ b/package/hostapd/patches/780-wds_addr_fix.patch @@ -55,12 +55,11 @@ new_addr[0] ^= idx << 2; if (!nl80211_addr_in_use(drv->global, new_addr)) break; -@@ -5980,6 +5980,8 @@ static int wpa_driver_nl80211_if_add(voi - } - #endif /* CONFIG_P2P */ - -+ memcpy(new_bss->addr, addr ? addr : if_addr, ETH_ALEN); -+ - #ifdef HOSTAPD - if (bridge && - i802_check_bridge(drv, new_bss, bridge, ifname) < 0) { +@@ -5996,6 +5996,7 @@ static int wpa_driver_nl80211_if_add(voi + os_free(new_bss); + return -1; + } ++ memcpy(new_bss->addr, addr ? addr : if_addr, ETH_ALEN); + os_strlcpy(new_bss->ifname, ifname, IFNAMSIZ); + new_bss->ifindex = ifidx; + new_bss->drv = drv;