]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/net/wireless/ath/carl9170/main.c
Merge remote-tracking branch 'net/master'
[karo-tx-linux.git] / drivers / net / wireless / ath / carl9170 / main.c
index 782b8f3ae58f3ac408c43a6deea388a1cc962340..af351ecd87c40810ad2c0102b9a3a112a5cbea6d 100644 (file)
@@ -1115,8 +1115,10 @@ static int carl9170_op_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
         * the high througput speed in 802.11n networks.
         */
 
-       if (!is_main_vif(ar, vif))
+       if (!is_main_vif(ar, vif)) {
+               mutex_lock(&ar->mutex);
                goto err_softw;
+       }
 
        /*
         * While the hardware supports *catch-all* key, for offloading