From: Felix Fietkau Date: Sun, 11 Oct 2009 03:21:10 +0000 (+0200) Subject: mac80211: fix logic error ibss merge bssid check X-Git-Tag: v2.6.32-rc5~13^2~7^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e4708bcb5d5360730e31b14e5e36429fc7d48b2;p=platform%2Fkernel%2Flinux-3.10.git mac80211: fix logic error ibss merge bssid check Signed-off-by: Felix Fietkau Acked-by: Johannes Berg Signed-off-by: John W. Linville --- diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c index 920ec87..812cbab 100644 --- a/net/mac80211/ibss.c +++ b/net/mac80211/ibss.c @@ -544,7 +544,7 @@ static void ieee80211_sta_find_ibss(struct ieee80211_sub_if_data *sdata) "%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);