]> git.baikalelectronics.ru Git - kernel.git/commit
ath6kl: Implement support for listen interval from userspace
authorRishi Panjwani <rpanjwan@qca.qualcomm.com>
Wed, 26 Oct 2011 00:26:29 +0000 (17:26 -0700)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 11 Nov 2011 10:58:55 +0000 (12:58 +0200)
commit1c3f730ddbf84c456a52fa8e0e5b8f9a73cd3409
tree78781040bd31320660b677c5d75d506e12efc8c0
parentb4ce114709a29424724fc7cac14e589cb8d1925b
ath6kl: Implement support for listen interval from userspace

In order to allow user space based control of listen interval, we use
available debugfs infrastructure. Listen interval implies how frequently
we want the WLAN chip to wake up and synchronize the beacons in case it
is in sleep mode. The command requires two parameters in the following order:

1) listen_interval_time
2) listen_interval_beacons

The user has to write the listen interval_time (in msecs) and
listen_interval_beacons (in no. of beacons) to the listen_interval file in
ath6kl debug directory.

Example:

echo "30 1" > listen_interval

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