ath11k: support MAC address randomization in scan
authorCarl Huang <quic_cjhuang@quicinc.com>
Thu, 9 Dec 2021 08:17:49 +0000 (10:17 +0200)
committerKalle Valo <quic_kvalo@quicinc.com>
Mon, 13 Dec 2021 09:47:04 +0000 (11:47 +0200)
commit9cbd7fc9be82a99af690adcebd6f2cdae4c7c193
tree5e257ac6a86856e200df76fc0aa63478fbb1b172
parent5341d57bc398df62fa1e54ec7cf8e3bf9da1c597
ath11k: support MAC address randomization in scan

The driver reports NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR capability
to upper layer based on the service bit firmware reported. Driver
sets the spoofed flag in scan_ctrl_flag to firmware if upper layer
has enabled this feature in scan request.

Tested-on: QCA6390 hw2.0 PCI WLAN.HST.1.0.1-01740-QCAHSTSWPLZ_V2_TO_X86-1

Signed-off-by: Carl Huang <quic_cjhuang@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/1638948007-9609-1-git-send-email-quic_cjhuang@quicinc.com
drivers/net/wireless/ath/ath11k/mac.c
drivers/net/wireless/ath/ath11k/wmi.c
drivers/net/wireless/ath/ath11k/wmi.h