wlcore: reconfigure sleep_auth when removing interfaces
authorArik Nemtsov <arik@wizery.com>
Sun, 10 Jun 2012 16:10:45 +0000 (19:10 +0300)
committerLuciano Coelho <coelho@ti.com>
Thu, 21 Jun 2012 09:51:55 +0000 (12:51 +0300)
commit2f18cf7c3b99779465def78318b4243d1f66cce8
treeda9cce7ea0444ef26b84efc15337fcd09888b0b6
parent66340e5b259bd7ca67cf0ca079dd3997fa198d4b
wlcore: reconfigure sleep_auth when removing interfaces

The sleep_auth value of the last interface to be set up prevailed when
an interface was removed. Take care of this by correctly configuring the
value according to the remaining STA/AP interfaces.

Take this opportunity to refactor the sleep_auth setting code for better
readability.

[Small style fix. -- Luca]

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