From 75d1518a84107fdc14d53b2675d64675f369eea9 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 11 Oct 2009 03:13:57 +0000 Subject: [PATCH] mac80211: fix ibss join/create SVN-Revision: 18030 --- package/mac80211/patches/406-ibss_fix.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 package/mac80211/patches/406-ibss_fix.patch diff --git a/package/mac80211/patches/406-ibss_fix.patch b/package/mac80211/patches/406-ibss_fix.patch new file mode 100644 index 0000000000..847451fc2a --- /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); -- 2.30.2