brcmfmac: correct .disconnect() callback while connecting
authorArend van Spriel <arend@broadcom.com>
Thu, 20 Nov 2014 21:27:02 +0000 (22:27 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 25 Nov 2014 19:09:55 +0000 (14:09 -0500)
commit4f3fff148679d5850994e53c57eb798cd201c88c
treeb5aed96235f672b9964ae09e897086f91bf37ca0
parentb880c6deabacc415488984f6a79918ec0fa2e53d
brcmfmac: correct .disconnect() callback while connecting

When the driver has sent a join iovar to the firmware it waits
for the events to report result of the connection. However, the
wpa_supplicant will request a .disconnect() after a timeout. So
upon calling .disconnect() the interface state may still be
CONNECTING. Clear the CONNECTING bit as well.

Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c