summaryrefslogtreecommitdiff
path: root/package/mac80211
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-10-11 03:13:57 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-10-11 03:13:57 +0000
commit75d1518a84107fdc14d53b2675d64675f369eea9 (patch)
treec12264e96e7f5e56f72b4bba804a98b2b753a0ff /package/mac80211
parent3cf6975414918176337e4771238e1783457bd20b (diff)
downloadmtk-20170518-75d1518a84107fdc14d53b2675d64675f369eea9.zip
mtk-20170518-75d1518a84107fdc14d53b2675d64675f369eea9.tar.gz
mtk-20170518-75d1518a84107fdc14d53b2675d64675f369eea9.tar.bz2
mac80211: fix ibss join/create
SVN-Revision: 18030
Diffstat (limited to 'package/mac80211')
-rw-r--r--package/mac80211/patches/406-ibss_fix.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/mac80211/patches/406-ibss_fix.patch b/package/mac80211/patches/406-ibss_fix.patch
new file mode 100644
index 0000000..847451f
--- /dev/null
+++ b/package/mac80211/patches/406-ibss_fix.patch
@@ -0,0 +1,11 @@
+--- a/net/mac80211/ibss.c
++++ b/net/mac80211/ibss.c
+@@ -544,7 +544,7 @@ static void ieee80211_sta_find_ibss(stru
+ "%pM\n", bss->cbss.bssid, ifibss->bssid);
+ #endif /* CONFIG_MAC80211_IBSS_DEBUG */
+
+- if (bss && memcmp(ifibss->bssid, bss->cbss.bssid, ETH_ALEN)) {
++ if (bss && !memcmp(ifibss->bssid, bss->cbss.bssid, ETH_ALEN)) {
+ printk(KERN_DEBUG "%s: Selected IBSS BSSID %pM"
+ " based on configured SSID\n",
+ sdata->dev->name, bss->cbss.bssid);