diff options
Diffstat (limited to 'net/wireless/mlme.c')
-rw-r--r-- | net/wireless/mlme.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/wireless/mlme.c b/net/wireless/mlme.c index b44b6c024c14..51d5df67c632 100644 --- a/net/wireless/mlme.c +++ b/net/wireless/mlme.c | |||
@@ -149,7 +149,7 @@ static void __cfg80211_send_deauth(struct net_device *dev, | |||
149 | 149 | ||
150 | reason_code = le16_to_cpu(mgmt->u.deauth.reason_code); | 150 | reason_code = le16_to_cpu(mgmt->u.deauth.reason_code); |
151 | 151 | ||
152 | from_ap = memcmp(mgmt->da, dev->dev_addr, ETH_ALEN) == 0; | 152 | from_ap = memcmp(mgmt->sa, dev->dev_addr, ETH_ALEN) != 0; |
153 | __cfg80211_disconnected(dev, NULL, 0, reason_code, from_ap); | 153 | __cfg80211_disconnected(dev, NULL, 0, reason_code, from_ap); |
154 | } else if (wdev->sme_state == CFG80211_SME_CONNECTING) { | 154 | } else if (wdev->sme_state == CFG80211_SME_CONNECTING) { |
155 | __cfg80211_connect_result(dev, mgmt->bssid, NULL, 0, NULL, 0, | 155 | __cfg80211_connect_result(dev, mgmt->bssid, NULL, 0, NULL, 0, |
@@ -215,7 +215,7 @@ static void __cfg80211_send_disassoc(struct net_device *dev, | |||
215 | 215 | ||
216 | reason_code = le16_to_cpu(mgmt->u.disassoc.reason_code); | 216 | reason_code = le16_to_cpu(mgmt->u.disassoc.reason_code); |
217 | 217 | ||
218 | from_ap = memcmp(mgmt->da, dev->dev_addr, ETH_ALEN) == 0; | 218 | from_ap = memcmp(mgmt->sa, dev->dev_addr, ETH_ALEN) != 0; |
219 | __cfg80211_disconnected(dev, NULL, 0, reason_code, from_ap); | 219 | __cfg80211_disconnected(dev, NULL, 0, reason_code, from_ap); |
220 | } | 220 | } |
221 | 221 | ||