wl12xx: check bss_conf->assoc on CHANGED_BSSID
authorEliad Peller <eliad@wizery.com>
Tue, 24 Jan 2012 16:18:42 +0000 (18:18 +0200)
committerLuciano Coelho <coelho@ti.com>
Wed, 15 Feb 2012 06:38:30 +0000 (08:38 +0200)
commit7db4ee6d0a932bb95f839d9b427899b74139a8d5
tree1097b2991aca86b6395644c67c568f460511444d
parent2c882fa47502ef201e0533fc7cc21b097f4bcdca
wl12xx: check bss_conf->assoc on CHANGED_BSSID

with the new auth/assoc redesign, we get CHANGED_BSSID
indication before CHANGED_ASSOC indication, while our
CHANGED_BSSID handling block assumes we are already
associated.

Fix it by checking we are either in ibss mode, or
already associated.

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