]> git.baikalelectronics.ru Git - kernel.git/commit
ath11k: Fix incorrect tlvs in scan start command
authorPradeep Kumar Chitrapu <pradeepc@codeaurora.org>
Thu, 10 Dec 2020 14:05:24 +0000 (16:05 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 12 Dec 2020 04:40:23 +0000 (06:40 +0200)
commita379d45f1582b8e945ab796ae932456a5762a282
treee021775f2d7ad2a292105afdacaf62e8a5ed9ccd
parent8a135e9030293d390df2037950477926a0a29037
ath11k: Fix incorrect tlvs in scan start command

Currently 6G specific tlvs have duplicate entries which is causing
scan failures. Fix this by removing the duplicate entries of the same
tlv. This also fixes out-of-bound memory writes caused due to
adding tlvs when num_hint_bssid and num_hint_s_ssid are ZEROs.

Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.4.0.1-01386-QCAHKSWPL_SILICONZ-1

Fixes: 8a8d6148147a ("ath11k: Add support for 6g scan hint")
Reported-by: Carl Huang <cjhuang@codeaurora.org>
Signed-off-by: Pradeep Kumar Chitrapu <pradeepc@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1607609124-17250-7-git-send-email-kvalo@codeaurora.org
drivers/net/wireless/ath/ath11k/wmi.c