]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/net/wireless/intel/iwlwifi/mvm/sta.c
iwlwifi: mvm: Change an 'else if' into an 'else' in iwl_mvm_send_add_bcast_sta
[linux.git] / drivers / net / wireless / intel / iwlwifi / mvm / sta.c
index 6c0e805eb81e85b16282162413f413f8b4c44bce..f545a737a92dfa8321b83ce00748c1833ec7c854 100644 (file)
@@ -2110,12 +2110,14 @@ int iwl_mvm_send_add_bcast_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
 
        if (!iwl_mvm_has_new_tx_api(mvm)) {
                if (vif->type == NL80211_IFTYPE_AP ||
-                   vif->type == NL80211_IFTYPE_ADHOC)
+                   vif->type == NL80211_IFTYPE_ADHOC) {
                        queue = mvm->probe_queue;
-               else if (vif->type == NL80211_IFTYPE_P2P_DEVICE)
+               } else if (vif->type == NL80211_IFTYPE_P2P_DEVICE) {
                        queue = mvm->p2p_dev_queue;
-               else if (WARN(1, "Missing required TXQ for adding bcast STA\n"))
+               } else {
+                       WARN(1, "Missing required TXQ for adding bcast STA\n");
                        return -EINVAL;
+               }
 
                bsta->tfd_queue_msk |= BIT(queue);