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)
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>

No differences found