From: Jussi Kivilinna Date: Fri, 28 Aug 2009 09:59:05 +0000 (+0300) Subject: rndis_wlan: increase scan timer delay X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b1d25a67647efacf2a9f2a1800f0c8195827f923;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git rndis_wlan: increase scan timer delay Increase scan delay from 1 sec to 6 sec. Spec says that scan by OID_802_11_BSSID_LIST_SCAN completes in 6 seconds. Before rfkill patch too short delay was not problem as device was always active (radio on) and performing background scanning. Signed-off-by: Jussi Kivilinna Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/rndis_wlan.c b/drivers/net/wireless/rndis_wlan.c index 2309ad2214a0..cb362b086ff6 100644 --- a/drivers/net/wireless/rndis_wlan.c +++ b/drivers/net/wireless/rndis_wlan.c @@ -1607,7 +1607,7 @@ static int rndis_get_tx_power(struct wiphy *wiphy, int *dbm) } -#define SCAN_DELAY_JIFFIES (HZ) +#define SCAN_DELAY_JIFFIES (6 * HZ) static int rndis_scan(struct wiphy *wiphy, struct net_device *dev, struct cfg80211_scan_request *request) {