wl12xx: check the vif's operstate after join
authorEliad Peller <eliad@wizery.com>
Mon, 6 Jun 2011 10:03:12 +0000 (13:03 +0300)
committerLuciano Coelho <coelho@ti.com>
Mon, 27 Jun 2011 10:56:14 +0000 (13:56 +0300)
commitef4b29e976f9e0a622dfd2722b443bb65686f47c
tree7978aecc11cd1057bb7a3e55c8538624454cc1d4
parent6bb043321569ac356c790a8d3bd759742e1f9352
wl12xx: check the vif's operstate after join

When resuming while connected (without wowlan), the interface
is already IF_OPER_UP, so we won't get the notifier callback,
and hence never complete the association (from wl12xx perspective)

This situation, among other potential problems, prevents the
station from entering psm.

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