nl80211: Mark state disassociated on local deauth/disassoc
This commit is contained in:
parent
c3dc92e85f
commit
13405f3542
1 changed files with 2 additions and 0 deletions
|
@ -1753,6 +1753,7 @@ static int wpa_driver_nl80211_deauthenticate(void *priv, const u8 *addr,
|
|||
{
|
||||
struct wpa_driver_nl80211_data *drv = priv;
|
||||
wpa_printf(MSG_DEBUG, "%s", __func__);
|
||||
drv->associated = 0;
|
||||
return wpa_driver_nl80211_mlme(drv, addr, NL80211_CMD_DEAUTHENTICATE,
|
||||
reason_code);
|
||||
}
|
||||
|
@ -1763,6 +1764,7 @@ static int wpa_driver_nl80211_disassociate(void *priv, const u8 *addr,
|
|||
{
|
||||
struct wpa_driver_nl80211_data *drv = priv;
|
||||
wpa_printf(MSG_DEBUG, "%s", __func__);
|
||||
drv->associated = 0;
|
||||
return wpa_driver_nl80211_mlme(drv, addr, NL80211_CMD_DISASSOCIATE,
|
||||
reason_code);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue