Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 213988
b: refs/heads/master
c: 3f3b6a8
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Aug 16, 2010
1 parent 5c87a50 commit 4cae2b5
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 2bff8ebf32a7c5ec9e5f5eeffef94a8cb622f5f0
refs/heads/master: 3f3b6a8d90b6e762e2bb83e6a9e86d9534b56cdc
5 changes: 3 additions & 2 deletions trunk/net/wireless/mlme.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void __cfg80211_send_deauth(struct net_device *dev,
struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)buf;
const u8 *bssid = mgmt->bssid;
int i;
bool found = false;
bool found = false, was_current = false;

ASSERT_WDEV_LOCK(wdev);

Expand All @@ -159,6 +159,7 @@ void __cfg80211_send_deauth(struct net_device *dev,
cfg80211_put_bss(&wdev->current_bss->pub);
wdev->current_bss = NULL;
found = true;
was_current = true;
} else for (i = 0; i < MAX_AUTH_BSSES; i++) {
if (wdev->auth_bsses[i] &&
memcmp(wdev->auth_bsses[i]->pub.bssid, bssid, ETH_ALEN) == 0) {
Expand All @@ -183,7 +184,7 @@ void __cfg80211_send_deauth(struct net_device *dev,

nl80211_send_deauth(rdev, dev, buf, len, GFP_KERNEL);

if (wdev->sme_state == CFG80211_SME_CONNECTED) {
if (wdev->sme_state == CFG80211_SME_CONNECTED && was_current) {
u16 reason_code;
bool from_ap;

Expand Down

0 comments on commit 4cae2b5

Please sign in to comment.