]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4d6192fd24b8d2a47f0fc4f53d657276a390598d
treeda9cce7ea0444ef26b84efc15337fcd09888b0b6
parent1951e35be675142c0859cfd57e25f025b76699f7
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