FROMGIT: wifi: ath11k: add support to configure channel dwell time
Add support to configure channel dwell time during scan.
Dwell time help to stay on the channel for a specified duration
during scan and aid userspace in finding WiFi networks. Very
useful in passive scans where longer dwell times are needed
to find the WiFi networks.
Configure channel dwell time from duration of the scan request
received from mac80211 when the duration is non-zero. When the
scan request does not have duration value, use the default ones,
the current implementation.
Advertise corresponding feature flag NL80211_EXT_FEATURE_SET_SCAN_DWELL
to enable the feature.
Change is applicable for all ath11k hardware.
Tested-on: WCN6750 hw1.0 AHB WLAN.MSL.1.0.1-00887-QCAMSLSWPLZ-1
Signed-off-by: Manikanta Pubbisetty <quic_mpubbise@quicinc.com>
Reviewed-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20221007051130.6067-1-quic_mpubbise@quicinc.com
(cherry picked from commit c362daa213cdeb0a9e7c2ed84849544c24505720
https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git ath-next)
BUG=b:248457431, b:177043467
TEST=emerge-herobrine chromeos-kernel-5_15; deploy and test basic WiFi
functionalities on herobrine device.
TEST=suite:wifi_matfunc results are consistent with lab results.
Signed-off-by: Jun Yu <junyuu@chromium.org>
Change-Id: I33c9262bce1fb22930315e1f62eb3440c3d43d5e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/3969603
Reviewed-by: Abhishek Kumar <kuabhs@chromium.org>
Reviewed-by: Sean Paul <sean@poorly.run>
Reviewed-by: Kevin Lund <kglund@google.com>
1 file changed