]> git.baikalelectronics.ru Git - kernel.git/commit
wimax/i2400m: allow control of the base-station idle mode timeout
authorInaky Perez-Gonzalez <inaky@linux.intel.com>
Sat, 28 Feb 2009 23:42:50 +0000 (23:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Mar 2009 11:10:25 +0000 (03:10 -0800)
commit9d57adf66d7c2e333486f0a3141192fd789825c4
tree92da0abdf6a29aa60ec5aff6250b1937d4c264d6
parent873ec0c0b619875a25f4b58517929260b2142ccc
wimax/i2400m: allow control of the base-station idle mode timeout

For power saving reasons, WiMAX links can be put in idle mode while
connected after a certain time of the link not being used for tx or
rx. In this mode, the device pages the base-station regularly and when
data is ready to be transmitted, the link is revived.

This patch allows the user to control the time the device has to be
idle before it decides to go to idle mode from a sysfs
interace.

It also updates the initialization code to acknowledge the module
variable 'idle_mode_disabled' when the firmware is a newer version
(upcoming 1.4 vs 2.6.29's v1.3).

The method for setting the idle mode timeout in the older firmwares is
much more limited and can be only done at initialization time. Thus,
the sysfs file will return -ENOSYS on older ones.

Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wimax/i2400m/Makefile
drivers/net/wimax/i2400m/control.c
drivers/net/wimax/i2400m/debug-levels.h
drivers/net/wimax/i2400m/driver.c
drivers/net/wimax/i2400m/i2400m.h
drivers/net/wimax/i2400m/sysfs.c [new file with mode: 0644]
include/linux/wimax/i2400m.h