Re: [PATCH v4 02/10] wil6210: allow configuring scan timers
From: Kalle Valo <hidden>
Date: 2017-08-08 10:53:31
Maya Erez [off-list ref] writes:
quoted hunk ↗ jump to hunk
From: Hamad Kadmany <redacted> Allow setting scan timeout and scan dwell time through module parameters. Signed-off-by: Hamad Kadmany <redacted> Signed-off-by: Maya Erez <redacted> --- drivers/net/wireless/ath/wil6210/cfg80211.c | 17 ++++++++++++++--- drivers/net/wireless/ath/wil6210/wil6210.h | 2 +- 2 files changed, 15 insertions(+), 4 deletions(-)diff --git a/drivers/net/wireless/ath/wil6210/cfg80211.c b/drivers/net/wi=
reless/ath/wil6210/cfg80211.c
quoted hunk ↗ jump to hunk
index 77af749..d079533 100644--- a/drivers/net/wireless/ath/wil6210/cfg80211.c +++ b/drivers/net/wireless/ath/wil6210/cfg80211.c@@ -26,6 +26,14 @@ module_param(disable_ap_sme, bool, 0444); MODULE_PARM_DESC(disable_ap_sme, " let user space handle AP mode SME");=20 +static uint scan_dwell_time =3D WMI_SCAN_DWELL_TIME_MS; +module_param(scan_dwell_time, uint, 0644); +MODULE_PARM_DESC(scan_dwell_time, " Scan dwell time (msec)"); + +static uint scan_timeout =3D WIL6210_SCAN_TO_SEC; +module_param(scan_timeout, uint, 0644); +MODULE_PARM_DESC(scan_timeout, " Scan timeout (seconds)");
Module parameters are not really meant for this kind of configuration 802.11 protocol configuration. Can't you use nl80211? --=20 Kalle Valo=