]> git.baikalelectronics.ru Git - kernel.git/commit
wl12xx: use wiphy values for setting rts, frag thresholds on init
authorArik Nemtsov <arik@wizery.com>
Mon, 18 Apr 2011 11:15:21 +0000 (14:15 +0300)
committerLuciano Coelho <coelho@ti.com>
Mon, 2 May 2011 07:29:20 +0000 (10:29 +0300)
commitb1ae32a09f9d5415e83abea2edca4eba5cdf2e46
treeb82bf4812c6d99e0c532a71a067f8c15ecc0a4d1
parentf5d6ed87a4759bfda6d39aa4c16649c035106ee4
wl12xx: use wiphy values for setting rts, frag thresholds on init

Use the wiphy RTS and fragmentation thresholds for initializing the FW
when possible. This mitigates a bug where previously set values are
forgotten after interface down/up.

Add checks before settings these values to ensure they are valid. Use
default values when invalid thresholds are configured.

Update the default RTS threshold to the maximum value given by the
specification.

Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/acx.c
drivers/net/wireless/wl12xx/acx.h
drivers/net/wireless/wl12xx/init.c
drivers/net/wireless/wl12xx/main.c