]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
iwlwifi: mvm: Set Tx rate and flags when there is not station
authorIlan Peer <ilan.peer@intel.com>
Wed, 17 Oct 2018 11:06:19 +0000 (14:06 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 25 Jan 2019 18:57:20 +0000 (20:57 +0200)
When a frame is transmitted without a station, need to set the rate
and flags in the Tx command, as the FW does not have any information as
to what rate and flags should be used for this frame.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/tx.c

index da8b69c9468ca7e64db155d2d0ca64c59d61a187..2adef6e3e0ac0039d39b07080df02ba2c8de1e6d 100644 (file)
@@ -533,10 +533,11 @@ iwl_mvm_set_tx_params(struct iwl_mvm *mvm, struct sk_buff *skb,
 
                /*
                 * For data packets rate info comes from the fw. Only
-                * set rate/antenna during connection establishment.
+                * set rate/antenna during connection establishment or in case
+                * no station is given.
                 */
-               if (sta && (!ieee80211_is_data(hdr->frame_control) ||
-                           mvmsta->sta_state < IEEE80211_STA_AUTHORIZED)) {
+               if (!sta || !ieee80211_is_data(hdr->frame_control) ||
+                   mvmsta->sta_state < IEEE80211_STA_AUTHORIZED) {
                        flags |= IWL_TX_FLAGS_CMD_RATE;
                        rate_n_flags =
                                iwl_mvm_get_tx_rate_n_flags(mvm, info, sta,