Commit 8df706f
FROMLIST: wifi: ath12k: fix incorrect channel survey index
A wrong channel survey index was introduced in
ath12k_mac_op_get_survey by [1], which can cause ACS to fail.
The index is decremented before being used, resulting in an
incorrect value when accessing the channel survey data.
Fix the index handling to ensure the correct survey entry is
used and avoid ACS failures.
Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c5-00302-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.115823.3
Fixes: 4f242b1 ("wifi: ath12k: support get_survey mac op for single wiphy") # [1]
Signed-off-by: Yingying Tang <yingying.tang@oss.qualcomm.com>
Signed-off-by: Miaoqing Pan <miaoqing.pan@oss.qualcomm.com>
Link: https://lore.kernel.org/linux-wireless/20260210024440.3422264-1-yingying.tang@oss.qualcomm.com/1 parent 9fe9139 commit 8df706f
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13162 | 13162 | | |
13163 | 13163 | | |
13164 | 13164 | | |
| 13165 | + | |
13165 | 13166 | | |
13166 | 13167 | | |
13167 | 13168 | | |
| |||
13196 | 13197 | | |
13197 | 13198 | | |
13198 | 13199 | | |
13199 | | - | |
| 13200 | + | |
13200 | 13201 | | |
13201 | 13202 | | |
13202 | 13203 | | |
| |||
0 commit comments