wl12xx: configure sleep_policy according to active roles
commita4e4130dcea01f3e0dfcbfeaf0d815b971e6e515
authorEliad Peller <eliad@wizery.com>
Tue, 11 Oct 2011 09:49:15 +0000 (11 11:49 +0200)
committerLuciano Coelho <coelho@ti.com>
Tue, 11 Oct 2011 12:04:23 +0000 (11 15:04 +0300)
treebfc84bbad4246630300677ef4b8a9a1098b3a7a7
parenta32d0cdfcb7e5d41f210e13cbc78dc86a5a85a08
wl12xx: configure sleep_policy according to active roles

If there is an active AP role, stay always on.
Otherwise, allow chip to enter elp.

(Note that this is a global configuration, so if the
device is already configured according to our policy,
we don't have to configure it again)

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/init.c
drivers/net/wireless/wl12xx/main.c
drivers/net/wireless/wl12xx/wl12xx.h