]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
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)
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

index d1928de895f94494d6f052c095f838b143006f9d..0ea312546635488f09635ea36a6645c2d33384f7 100644 (file)
@@ -1815,6 +1815,7 @@ brcmf_cfg80211_disconnect(struct wiphy *wiphy, struct net_device *ndev,
                return -EIO;
 
        clear_bit(BRCMF_VIF_STATUS_CONNECTED, &ifp->vif->sme_state);
+       clear_bit(BRCMF_VIF_STATUS_CONNECTING, &ifp->vif->sme_state);
        cfg80211_disconnected(ndev, reason_code, NULL, 0, GFP_KERNEL);
 
        memcpy(&scbval.ea, &profile->bssid, ETH_ALEN);