wl12xx: set authorized AP on sta_state notification
authorEliad Peller <eliad@wizery.com>
Sun, 4 Mar 2012 08:55:48 +0000 (10:55 +0200)
committerLuciano Coelho <coelho@ti.com>
Mon, 5 Mar 2012 13:45:24 +0000 (15:45 +0200)
commit9fd6f21ba295810e36299981411f62719364d9e9
tree3f66c844233ea8550b56c404d97b862185312f3f
parent2d6cf2b51fa3492c479c6d1f86496e120b51e1d8
wl12xx: set authorized AP on sta_state notification

wl12xx currently looks for AP authorization by registering
a netdev notifier and waiting for the IF_OPER_UP notification,
which is quite cumbersome.

Use the newly introduced sta_state callback (waiting
for assoc -> auth notification) instead, in order to
simplify it.

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