]> git.baikalelectronics.ru Git - kernel.git/commit
ath6kl: Implement support for power parameter control from userspace
authorRishi Panjwani <rpanjwan@qca.qualcomm.com>
Wed, 26 Oct 2011 02:52:41 +0000 (19:52 -0700)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 11 Nov 2011 10:58:55 +0000 (12:58 +0200)
commit0b08c0fb1c4055100a87851440ef0042ad0033cc
treeab18ccdc164f0e01dd352b54d157614cb0023ec9
parent1c3f730ddbf84c456a52fa8e0e5b8f9a73cd3409
ath6kl: Implement support for power parameter control from userspace

In order to allow user space based control of power parameters, we use
available debugfs infrastructure. With these features user can control
power consumption by adjusting various sleep/wake up related parameters.
The feature has been added for testing purposes. All 5 parameters are
mandatory in correct order. They have to be written to the power_params
file. These are:

1) idle_period
2) no_of_pspoll
3) dtim_policy
4) tx_wakeup_policy
5) no_tx_to_wakeup

Example:

echo "200 1 0 1 1" > power_params

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