]> git.baikalelectronics.ru Git - kernel.git/commit
ath6kl: Implement support for background scan control from userspace
authorRishi Panjwani <rpanjwan@qca.qualcomm.com>
Wed, 19 Oct 2011 00:20:06 +0000 (17:20 -0700)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 11 Nov 2011 10:50:57 +0000 (12:50 +0200)
commita00d7e0f955cf9e218b3becb611b32567bcc3a43
tree528ed063159f0e197c54865f3f55d73133726fbb
parent11ad878ece51a92ac3917a89c6c48e8dac8d199e
ath6kl: Implement support for background scan control from userspace

In order to allow user space based control of background scan interval,
we use available debugfs infrastructure. The feature has been added for
testing purposes. The user has to write the bgscan interval (in secs) to
the bgscan_interval file in ath6kl debug directory. To disable bgscan,
a '0' is to be written to the bgscan_interval file.

Example:

echo "2" > bgscan_interval

This will make the background scan interval as 2 seconds

kvalo: changed implementation so that there's only one call to
ath6kl_wmi_scanparams_cmd()

Signed-off-by: Rishi Panjwani <rpanjwan@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/debug.c