iwlwifi: mvm: correctly set the flags for BAR
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 2 Jun 2013 16:49:15 +0000 (19:49 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 4 Jun 2013 11:14:30 +0000 (13:14 +0200)
Somehow, the Tx flags for BAR were completely wrong.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/mvm/tx.c

index f212f16502ff43c3b446d3f99e136fbf5c4b795a..48c1891e3df6b00ce3417b7609f9c240ae36f2e4 100644 (file)
@@ -180,7 +180,8 @@ static void iwl_mvm_set_tx_cmd_rate(struct iwl_mvm *mvm,
                tx_cmd->tx_flags |= cpu_to_le32(TX_CMD_FLG_STA_RATE);
                return;
        } else if (ieee80211_is_back_req(fc)) {
-               tx_cmd->tx_flags |= cpu_to_le32(TX_CMD_FLG_STA_RATE);
+               tx_cmd->tx_flags |=
+                       cpu_to_le32(TX_CMD_FLG_ACK | TX_CMD_FLG_BAR);
        }
 
        /* HT rate doesn't make sense for a non data frame */