|
@@ -175,7 +175,7 @@ static void iwl_mvm_set_tx_cmd_rate(struct iwl_mvm *mvm,
|
|
|
* table is controlled by LINK_QUALITY commands
|
|
* 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->initial_rate_index = 0;
|
|
|
tx_cmd->tx_flags |= cpu_to_le32(TX_CMD_FLG_STA_RATE);
|
|
tx_cmd->tx_flags |= cpu_to_le32(TX_CMD_FLG_STA_RATE);
|
|
|
return;
|
|
return;
|