summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/mvm/tx.c
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2013-06-02 19:54:01 +0300
committerJohannes Berg <johannes.berg@intel.com>2013-06-05 09:06:13 +0200
commit9116a3683902583a302ac5dcb283416d504d9bb4 (patch)
treedb9ea513052b246dd0126c23df7e46bfa5cc51ca /drivers/net/wireless/iwlwifi/mvm/tx.c
parent5ec42ecf497f9c5e55fbe57e894efc5ce91c47cd (diff)
downloadop-kernel-dev-9116a3683902583a302ac5dcb283416d504d9bb4.zip
op-kernel-dev-9116a3683902583a302ac5dcb283416d504d9bb4.tar.gz
iwlwifi: mvm: fix MCAST in AP mode
In multicast, there is no retries nor RTS since there is no specific recipient that can ACK or send CTS. This means that we must not use the rate scale table for multicast frames. This true for any frame that doesn't have a valid ieee80211_sta pointer. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/tx.c')
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/tx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/tx.c b/drivers/net/wireless/iwlwifi/mvm/tx.c
index f212f16..a830eb6 100644
--- a/drivers/net/wireless/iwlwifi/mvm/tx.c
+++ b/drivers/net/wireless/iwlwifi/mvm/tx.c
@@ -175,7 +175,7 @@ static void iwl_mvm_set_tx_cmd_rate(struct iwl_mvm *mvm,
* table is controlled by LINK_QUALITY commands
*/
- if (ieee80211_is_data(fc)) {
+ if (ieee80211_is_data(fc) && sta) {
tx_cmd->initial_rate_index = 0;
tx_cmd->tx_flags |= cpu_to_le32(TX_CMD_FLG_STA_RATE);
return;
OpenPOWER on IntegriCloud