mac80211: minor cleanup
authorMohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Sat, 7 Jan 2012 15:36:21 +0000 (21:06 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 24 Jan 2012 19:08:36 +0000 (14:08 -0500)
we would have bailed out if 'ifibss->fixed_channel'
is valid i.e. we had used 'fixed-freq' parameter in iw ibss
join command. this is with the state 'IEEE80211_IBSS_MLME_JOINED'
so no need to check for it

Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/ibss.c

index b3d76b756cd55e4c8e513bfa506c336ab77e667b..b4c30318e22b60e733fd9325a064061b52dffebb 100644 (file)
@@ -642,8 +642,7 @@ static void ieee80211_sta_merge_ibss(struct ieee80211_sub_if_data *sdata)
               "IBSS networks with same SSID (merge)\n", sdata->name);
 
        ieee80211_request_internal_scan(sdata,
-                       ifibss->ssid, ifibss->ssid_len,
-                       ifibss->fixed_channel ? ifibss->channel : NULL);
+                       ifibss->ssid, ifibss->ssid_len, NULL);
 }
 
 static void ieee80211_sta_create_ibss(struct ieee80211_sub_if_data *sdata)