softmac: don't reassociate if user asked for deauthentication
Subsystems (2)
PATCH 1/1 softmac: don't reassociate if user asked for deauthentication
When wpa_supplicant exits, it uses SIOCSIWMLME to request deauthentication. softmac then tries to reassociate without any user intervention, which isn't the desired behaviour of this signal.
This change makes softmac only attempt reassociation if the remote network itself deauthenticated us.
Signed-off-by Daniel Drake <[email protected]>
Acked-by Johannes Berg <[email protected]>
net/ieee80211/softmac/ieee80211softmac_auth.c +3 -2
@@ -301,8 +301,6 @@ ieee80211softmac_deauth_from_net(struct/* can't transmit data right now... */ netif_carrier_off (mac->dev); -/* let's try to re-associate */ -schedule_work (&mac->associnfo.work);spin_unlock_irqrestore (&mac->lock, flags); }
@@ -363,5 +361,8 @@ ieee80211softmac_deauth_resp(struct net_ }ieee80211softmac_deauth_from_net (mac, net); + +/* let's try to re-associate */ +schedule_work (&mac->associnfo.work);return 0 ; }