Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 159093
b: refs/heads/master
c: 596a07c
h: refs/heads/master
i:
  159091: bf0dc73
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Jul 24, 2009
1 parent 0f1a196 commit bcd1118
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 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: 930c06f27120fa8cf0bfb6fa000a701cfaf01ed6
refs/heads/master: 596a07c18b35c9df2fb212856241ae0dfe3162b9
8 changes: 3 additions & 5 deletions trunk/net/wireless/mlme.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,12 @@ static void __cfg80211_send_disassoc(struct net_device *dev,
bool from_ap;
bool done = false;

wdev_lock(wdev);
ASSERT_WDEV_LOCK(wdev);

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

if (!wdev->sme_state == CFG80211_SME_CONNECTED)
goto out;
if (wdev->sme_state != CFG80211_SME_CONNECTED)
return;

if (wdev->current_bss &&
memcmp(wdev->current_bss, bssid, ETH_ALEN) == 0) {
Expand All @@ -205,8 +205,6 @@ static void __cfg80211_send_disassoc(struct net_device *dev,

from_ap = memcmp(mgmt->da, dev->dev_addr, ETH_ALEN) == 0;
__cfg80211_disconnected(dev, NULL, 0, reason_code, from_ap);
out:
wdev_unlock(wdev);
}

void cfg80211_send_disassoc(struct net_device *dev, const u8 *buf, size_t len,
Expand Down

0 comments on commit bcd1118

Please sign in to comment.