]> git.baikalelectronics.ru Git - kernel.git/commit
ath11k: fix firmware crash during channel switch
authorVenkateswara Naralasetty <quic_vnaralas@quicinc.com>
Thu, 11 Nov 2021 15:20:02 +0000 (20:50 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 15 Nov 2021 09:21:16 +0000 (11:21 +0200)
commit15faa273aebac1921f91a280c64d334b2f1a4986
tree252aabf99ab066067bc77b3454aa434d4c69adea
parentbc06063c9056b3af3e26757ae459b09c77d8dd2f
ath11k: fix firmware crash during channel switch

Currently the updated bandwidth for the peer will be configured
to the firmware after channel switch from the sta_rc_update_wk.
If the updated bandwidth is greater than the configured peer phymode
during the peer assoc may result firmware assert.

For example, initially AP is in HE40 mode and the peer phymode is
configured as MODE_11AX_HE40 during peer assoc. Now user change the
channel width to HE80 then, the peer bandwidth will be updated as
HE80 to the firmware.

This will trigger firmware assert due to peer bandwidth is greater than
the peer phymode.

Fix this issue by sending peer assoc command before setting the updated
peer bandwith to firmware.

Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.5.0.1-01100-QCAHKSWPL_SILICONZ-1

Signed-off-by: Venkateswara Naralasetty <quic_vnaralas@quicinc.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1636644002-25446-1-git-send-email-quic_vnaralas@quicinc.com
drivers/net/wireless/ath/ath11k/mac.c