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)
commit5f704d180e448d05859e1cb6572822ba27dbcdc7
treeb82bf4812c6d99e0c532a71a067f8c15ecc0a4d1
parent801f870bc0524bad7ebef9cea52d20e4d4992e4a
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