]> Pileus Git - ~andy/linux/blobdiff - net/mac80211/ibss.c
Merge remote-tracking branch 'wireless-next/master' into mac80211-next
[~andy/linux] / net / mac80211 / ibss.c
index 2eda7b13124abb7469a8b7b86503de07c0155623..e97fa7fac96e07676f632fb3aa14e78e4000662e 100644 (file)
@@ -534,7 +534,8 @@ int ieee80211_ibss_finish_csa(struct ieee80211_sub_if_data *sdata)
        int err;
        u16 capability;
 
-       sdata_lock(sdata);
+       sdata_assert_lock(sdata);
+
        /* update cfg80211 bss information with the new channel */
        if (!is_zero_ether_addr(ifibss->bssid)) {
                capability = WLAN_CAPABILITY_IBSS;
@@ -559,7 +560,6 @@ int ieee80211_ibss_finish_csa(struct ieee80211_sub_if_data *sdata)
 
        /* generate the beacon */
        err = ieee80211_ibss_csa_beacon(sdata, NULL);
-       sdata_unlock(sdata);
        if (err < 0)
                return err;