Skip to content

Commit 8addabf

Browse files
ngoldstelucacoelho
authored andcommitted
iwlwifi: mvm: set the RTS_MIMO_PROT bit in flag mask when sending sta to fw
Set the STA_FLG_RTS_MIMO_PROT bit in station_flags_msk of the add sta command, so that when smps mode changes, the FW will know about it. In particular, in AP mode, clients are added upon receival of an auth request, at which point there's no knowledge of the client's smps mode. When the assoc request arrives, the add_sta command is resent to modify the station parameters. At this point the driver knows the smps mode, but since the corresponding bit in the mask is not set, the fw doesn't update this field so there's no rts protection for mimo. Fixes: 5bc5aaa ("iwlwifi: mvm: set up initial SMPS/NSS station info") Signed-off-by: Naftali Goldstein <[email protected]> Signed-off-by: Luca Coelho <[email protected]>
1 parent e9fb92e commit 8addabf

File tree

1 file changed

+2
-1
lines changed
  • drivers/net/wireless/intel/iwlwifi/mvm

1 file changed

+2
-1
lines changed

drivers/net/wireless/intel/iwlwifi/mvm/sta.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ int iwl_mvm_sta_send_to_fw(struct iwl_mvm *mvm, struct ieee80211_sta *sta,
121121
.mac_id_n_color = cpu_to_le32(mvm_sta->mac_id_n_color),
122122
.add_modify = update ? 1 : 0,
123123
.station_flags_msk = cpu_to_le32(STA_FLG_FAT_EN_MSK |
124-
STA_FLG_MIMO_EN_MSK),
124+
STA_FLG_MIMO_EN_MSK |
125+
STA_FLG_RTS_MIMO_PROT),
125126
.tid_disable_tx = cpu_to_le16(mvm_sta->tid_disable_agg),
126127
};
127128
int ret;

0 commit comments

Comments
 (0)