]> err.no Git - linux-2.6/blobdiff - net/mac80211/mlme.c
iwlwifi: HW bug fixes
[linux-2.6] / net / mac80211 / mlme.c
index 5358420d8796e5612418d6d5fc2f60d2152d7a3e..e1d11c9b6729e0145866ab9df120ada75601fda1 100644 (file)
@@ -3920,7 +3920,7 @@ done:
        if (sdata->vif.type == IEEE80211_IF_TYPE_IBSS) {
                struct ieee80211_if_sta *ifsta = &sdata->u.sta;
                if (!(ifsta->flags & IEEE80211_STA_BSSID_SET) ||
-                   (!ifsta->state == IEEE80211_IBSS_JOINED &&
+                   (!(ifsta->state == IEEE80211_IBSS_JOINED) &&
                    !ieee80211_sta_active_ibss(dev)))
                        ieee80211_sta_find_ibss(dev, ifsta);
        }