aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-04-30 07:57:09 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-04-30 07:57:09 +0000
commit897abd824f39b8790e73e0d156b560de4c90856d (patch)
treefeb0975ed59af677d9dabfa2125d4e2fd43f3475 /package
parenta85af68ad02e905d54093d93e874921d80aa41e7 (diff)
downloadupstream-897abd824f39b8790e73e0d156b560de4c90856d.tar.gz
upstream-897abd824f39b8790e73e0d156b560de4c90856d.tar.bz2
upstream-897abd824f39b8790e73e0d156b560de4c90856d.zip
mac80211: fix station lookup issues
SVN-Revision: 31539
Diffstat (limited to 'package')
-rw-r--r--package/mac80211/patches/300-pending_work.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/package/mac80211/patches/300-pending_work.patch b/package/mac80211/patches/300-pending_work.patch
index 668005b7f3..c702cfeb1c 100644
--- a/package/mac80211/patches/300-pending_work.patch
+++ b/package/mac80211/patches/300-pending_work.patch
@@ -928,3 +928,18 @@
tx->sta = sta_info_get_bss(sdata, hdr->addr1);
}
if (!tx->sta)
+--- a/net/wireless/scan.c
++++ b/net/wireless/scan.c
+@@ -378,7 +378,11 @@ static int cmp_bss_core(struct cfg80211_
+ b->len_information_elements);
+ }
+
+- return compare_ether_addr(a->bssid, b->bssid);
++ /*
++ * we can't use compare_ether_addr here since we need a < > operator.
++ * The binary return value of compare_ether_addr isn't enough
++ */
++ return memcmp(a->bssid, b->bssid, sizeof(a->bssid));
+ }
+
+ static int cmp_bss(struct cfg80211_bss *a,