Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 209209
b: refs/heads/master
c: fe100ac
h: refs/heads/master
i:
  209207: 630a5a2
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Aug 9, 2010
1 parent 95ac106 commit 3ce4ec3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: a9fda88b27e71d727b6c85b3792b34a8a4bebf13
refs/heads/master: fe100acddf438591ecf3582cb57241e560da70b7
8 changes: 7 additions & 1 deletion trunk/net/wireless/mlme.c
Original file line number Diff line number Diff line change
Expand Up @@ -843,13 +843,19 @@ int cfg80211_mlme_action(struct cfg80211_registered_device *rdev,
return -EINVAL;
if (mgmt->u.action.category != WLAN_CATEGORY_PUBLIC) {
/* Verify that we are associated with the destination AP */
wdev_lock(wdev);

if (!wdev->current_bss ||
memcmp(wdev->current_bss->pub.bssid, mgmt->bssid,
ETH_ALEN) != 0 ||
(wdev->iftype == NL80211_IFTYPE_STATION &&
memcmp(wdev->current_bss->pub.bssid, mgmt->da,
ETH_ALEN) != 0))
ETH_ALEN) != 0)) {
wdev_unlock(wdev);
return -ENOTCONN;
}

wdev_unlock(wdev);
}

if (memcmp(mgmt->sa, dev->dev_addr, ETH_ALEN) != 0)
Expand Down

0 comments on commit 3ce4ec3

Please sign in to comment.