1 --- a/net/mac80211/ibss.c
2 +++ b/net/mac80211/ibss.c
3 @@ -544,7 +544,7 @@ static void ieee80211_sta_find_ibss(stru
4 "%pM\n", bss->cbss.bssid, ifibss->bssid);
5 #endif /* CONFIG_MAC80211_IBSS_DEBUG */
7 - if (bss && memcmp(ifibss->bssid, bss->cbss.bssid, ETH_ALEN)) {
8 + if (bss && !memcmp(ifibss->bssid, bss->cbss.bssid, ETH_ALEN)) {
9 printk(KERN_DEBUG "%s: Selected IBSS BSSID %pM"
10 " based on configured SSID\n",
11 sdata->dev->name, bss->cbss.bssid);