wifi: ath11k: Set ext passive scan flag to adjust passive scan start time
authorTamizh Chelvam Raja <quic_tamizhr@quicinc.com>
Wed, 15 Feb 2023 18:31:36 +0000 (20:31 +0200)
committerKalle Valo <quic_kvalo@quicinc.com>
Fri, 17 Feb 2023 15:56:01 +0000 (17:56 +0200)
commitcf8f3d4deb02a8fdc806c46d4112b69868544697
tree96b936d9ac74b9a6ee9287501e8d93dbc28310fd
parent3caf31e7b18a90b74a2709d761a0dfa423f2c2e4
wifi: ath11k: Set ext passive scan flag to adjust passive scan start time

Set the WMI_SCAN_FLAG_EXT_PASSIVE_SCAN_START_TIME_ENHANCE flag
while sending the scan command.  If this flag is enabled when the
incoming scan request comes with a strict start time and its duration
overlaps with next TBTT, then target adjust the start time accordingly
for passive scan. Target supporting this feature will advertise
WMI_TLV_SERVICE_PASSIVE_SCAN_START_TIME_ENHANCE.

Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.4.0.1-01467-QCAHKSWPL_SILICONZ-1

Signed-off-by: Tamizh Chelvam Raja <quic_tamizhr@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20221222131720.11368-1-quic_tamizhr@quicinc.com
drivers/net/wireless/ath/ath11k/wmi.c
drivers/net/wireless/ath/ath11k/wmi.h