Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122329
b: refs/heads/master
c: 5925d97
h: refs/heads/master
i:
  122327: 38f762d
v: v3
  • Loading branch information
Vivek Natarajan authored and John W. Linville committed Nov 26, 2008
1 parent fc68896 commit ec9ac3e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e2f367f269fe19375f10e63efe0f2a6d3ddef8e6
refs/heads/master: 5925d976fbe99859d636e7075e5304625503c5fe
8 changes: 6 additions & 2 deletions trunk/net/mac80211/mlme.c
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,10 @@ static void ieee80211_authenticate(struct ieee80211_sub_if_data *sdata,
mod_timer(&ifsta->timer, jiffies + IEEE80211_AUTH_TIMEOUT);
}

/*
* The disassoc 'reason' argument can be either our own reason
* if self disconnected or a reason code from the AP.
*/
static void ieee80211_set_disassoc(struct ieee80211_sub_if_data *sdata,
struct ieee80211_if_sta *ifsta, bool deauth,
bool self_disconnected, u16 reason)
Expand Down Expand Up @@ -848,7 +852,7 @@ static void ieee80211_set_disassoc(struct ieee80211_sub_if_data *sdata,

ieee80211_sta_send_apinfo(sdata, ifsta);

if (self_disconnected)
if (self_disconnected || reason == WLAN_REASON_DISASSOC_STA_HAS_LEFT)
ifsta->state = IEEE80211_STA_MLME_DISABLED;

sta_info_unlink(&sta);
Expand Down Expand Up @@ -1163,7 +1167,7 @@ static void ieee80211_rx_mgmt_disassoc(struct ieee80211_sub_if_data *sdata,
IEEE80211_RETRY_AUTH_INTERVAL);
}

ieee80211_set_disassoc(sdata, ifsta, false, false, 0);
ieee80211_set_disassoc(sdata, ifsta, false, false, reason_code);
}


Expand Down

0 comments on commit ec9ac3e

Please sign in to comment.