OSDN Git Service

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)
commit116b3a2e0fb79fbc2367f69167a7a84a4c864a2d
tree528ed063159f0e197c54865f3f55d73133726fbb
parent83973e0357e2b3792480aa02b672902b2aa774b0
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