diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-07-29 14:14:32 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-07-29 14:14:32 +0000 |
commit | 33195c7399373a24183954323219311e77449715 (patch) | |
tree | acd999394cab092aa045c7b8f5b4413d6e7aecc8 /package | |
parent | 51c0e450c758aa360106b6608944d5a2b6a2f10f (diff) | |
download | master-187ad058-33195c7399373a24183954323219311e77449715.tar.gz master-187ad058-33195c7399373a24183954323219311e77449715.tar.bz2 master-187ad058-33195c7399373a24183954323219311e77449715.zip |
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
Diffstat (limited to 'package')
-rw-r--r-- | package/hostapd/patches/780-wds_addr_fix.patch | 17 |
1 files changed, 8 insertions, 9 deletions
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; |