ath11k: Fix warnings that trigger during peer assoc when fixed rate is set
PATCH 1/1 ath11k: Fix warnings that trigger during peer assoc when fixed rate is set
When VHT fixed rate is set to MCS < 7, warnings are seen when a new sta gets associated while peer_assoc command is sent to firmware. This is seen since we expect tx_mcs_set sent to firmware as values corresponding to range 0-7, 0-8 or 0-9. Since the intersection of STA's VHT MCS support and current bitrate mask after fixed rate is set has MCS < 7 warning is thrown currently.
Remove these warning for these cases as it's a valid scenario. For these cases, 0-7 MCS can be sent during peer assoc to firmware as this is followed by peer fixed rate setting.
--- drivers/net/wireless/ath/ath11k/mac.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/net/wireless/ath/ath11k/mac.c +6 -6
@@ -1007,12 +1007,6 @@ ath11k_peer_assoc_h_vht_limit(u16 tx_mcs_set,case 4 :/* fall through */ case 5 :/* fall through */ case 6 :/* fall through */ -default : -WARN_ON (1 ); -/* fall through */ -case -1 : - mcs =IEEE80211_VHT_MCS_NOT_SUPPORTED ; -break ;case 7 : mcs =IEEE80211_VHT_MCS_SUPPORT_0_7 ;break ;
@@ -1022,6 +1016,12 @@ ath11k_peer_assoc_h_vht_limit(u16 tx_mcs_set,case 9 : mcs =IEEE80211_VHT_MCS_SUPPORT_0_9 ;break ; +default : +WARN_ON (1 ); +/* fall through */ +case -1 : + mcs =IEEE80211_VHT_MCS_NOT_SUPPORTED ; +break ; } tx_mcs_set &= ~(0x3 << (nss *2 ));
Signature · 7 lines
2.7.4 _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
Quoted 10 lines · Sriram R
When VHT fixed rate is set to MCS < 7, warnings are seen when a new sta gets associated while
peer_assoccommand is sent to firmware. This is seen since we expecttx_mcs_setsent to firmware as values corresponding to range 0-7, 0-8 or 0-9. Since the intersection of STA's VHT MCS support and current bitrate mask after fixed rate is set has MCS < 7 warning is thrown currently.
Remove these warning for these cases as it's a valid scenario. For these cases, 0-7 MCS can be sent during peer assoc to firmware as this is followed by peer fixed rate setting.
Quoted 2 lines
Signed-off-by Sriram R <[email protected]>Signed-off-by Kalle Valo <[email protected]>
Patch applied to ath11k-bringup branch of ath.git, thanks.
2d7490549ec1 ath11k: Fix warnings that trigger during peer assoc when fixed rate is set
Signature · 9 lines
https://patchwork.kernel.org/patch/11046187/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k