wifi: ath11k: fix band selection for ppdu received in channel 177 of 5 GHz
authorAditya Kumar Singh <quic_adisi@quicinc.com>
Wed, 26 Jul 2023 04:46:24 +0000 (10:16 +0530)
committerKalle Valo <quic_kvalo@quicinc.com>
Wed, 2 Aug 2023 11:48:40 +0000 (14:48 +0300)
commit72c8caf904aed2caed5d6e75233294b6159ddb5d
tree52ebbfef0c0a36c5e261522e13b8c95bc3aa7a19
parent1ad8237e971630c66a1a6194491e0837b64d00e0
wifi: ath11k: fix band selection for ppdu received in channel 177 of 5 GHz

5 GHz band channel 177 support was added with the commit e5e94d10c856 ("wifi:
ath11k: add channel 177 into 5 GHz channel list"). However, during processing
for the received ppdu in ath11k_dp_rx_h_ppdu(), channel number is checked only
till 173. This leads to driver code checking for channel and then fetching the
band from it which is extra effort since firmware has already given the channel
number in the metadata.

Fix this issue by checking the channel number till 177 since we support
it now.

Found via code review. Compile tested only.

Fixes: e5e94d10c856 ("wifi: ath11k: add channel 177 into 5 GHz channel list")
Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20230726044624.20507-1-quic_adisi@quicinc.com
drivers/net/wireless/ath/ath11k/dp_rx.c