Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203055
b: refs/heads/master
c: 05e48e8
h: refs/heads/master
i:
  203053: d75ba78
  203051: bf2ca8e
  203047: 11ce3aa
  203039: 3319761
v: v3
  • Loading branch information
Jouni Malinen authored and John W. Linville committed Jun 15, 2010
1 parent 4e7b478 commit 9007dcc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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: ff61638105db6f5832ef8700436ba6aa6d3a2fda
refs/heads/master: 05e48e8e437148298f4673e1efe81f9ead5f41d7
10 changes: 7 additions & 3 deletions trunk/net/mac80211/mlme.c
Original file line number Diff line number Diff line change
Expand Up @@ -2158,14 +2158,16 @@ int ieee80211_mgd_deauth(struct ieee80211_sub_if_data *sdata,
struct ieee80211_local *local = sdata->local;
struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
struct ieee80211_work *wk;
const u8 *bssid = req->bss->bssid;
u8 bssid[ETH_ALEN];
bool assoc_bss = false;

mutex_lock(&ifmgd->mtx);

memcpy(bssid, req->bss->bssid, ETH_ALEN);
if (ifmgd->associated == req->bss) {
bssid = req->bss->bssid;
ieee80211_set_disassoc(sdata, true);
ieee80211_set_disassoc(sdata, false);
mutex_unlock(&ifmgd->mtx);
assoc_bss = true;
} else {
bool not_auth_yet = false;

Expand Down Expand Up @@ -2211,6 +2213,8 @@ int ieee80211_mgd_deauth(struct ieee80211_sub_if_data *sdata,
ieee80211_send_deauth_disassoc(sdata, bssid, IEEE80211_STYPE_DEAUTH,
req->reason_code, cookie,
!req->local_state_change);
if (assoc_bss)
sta_info_destroy_addr(sdata, bssid);

ieee80211_recalc_idle(sdata->local);

Expand Down

0 comments on commit 9007dcc

Please sign in to comment.