wifi: mac80211: apply duration for SW scan
authorMichael-CY Lee <michael-cy.lee@mediatek.com>
Tue, 23 Jan 2024 05:47:52 +0000 (13:47 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 26 Jan 2024 08:40:42 +0000 (09:40 +0100)
commitd60277ac3fc9c9f7887ff813c98d0a71ac2abde2
tree37f0d83dc89c43b3f5a820312d0a36bb5ee2f479
parente10322810ce0d0d4a5a319458c4e1e052c6fe9be
wifi: mac80211: apply duration for SW scan

This patch makes duration in scan request be applicable when using
SW scan, but only accepts durations greater than the default value for
the following reasons:
1. Most APs have a beacoon interval of 100ms.
2. Sending and receiving probe require some delay.
3. Setting channel to HW also requires some delays

Signed-off-by: Michael-CY Lee <michael-cy.lee@mediatek.com>
Link: https://msgid.link/20240123054752.22833-1-michael-cy.lee@mediatek.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/scan.c