]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
mac80211: ibss: remove unnecessary call to release channel
authorLuciano Coelho <luciano.coelho@intel.com>
Tue, 28 Jan 2014 15:09:08 +0000 (17:09 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 4 Feb 2014 20:58:11 +0000 (21:58 +0100)
The ieee80211_vif_use_channel() function calls
ieee80211_vif_release_channel(), so there's no need to call it
explicitly in __ieee80211_sta_join_ibss().

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ibss.c

index b2da79f019d4503c313402417112ee3a04dde6b4..a35f37980e7070fa641fe8f9740cfab3ba8cd3fb 100644 (file)
@@ -294,7 +294,6 @@ static void __ieee80211_sta_join_ibss(struct ieee80211_sub_if_data *sdata,
        }
 
        mutex_lock(&local->mtx);
-       ieee80211_vif_release_channel(sdata);
        if (ieee80211_vif_use_channel(sdata, &chandef,
                                      ifibss->fixed_channel ?
                                        IEEE80211_CHANCTX_SHARED :