Skip to content
Snippets Groups Projects
Commit b935df01 authored by Pavel Roskin's avatar Pavel Roskin Committed by John W. Linville
Browse files

cfg80211: fix disassociation warning due to misuse of wdev->current_bss


WARN_ON was triggered at mlme.c:213 when dissociating from an AP.

wdev->current_bss->pub.bssid should be used in place of
wdev->current_bss for BSSID comparison.

Signed-off-by: default avatarPavel Roskin <proski@gnu.org>
Reviewed-by: default avatarJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 4af198fb
No related branches found
No related tags found
No related merge requests found
...@@ -198,7 +198,7 @@ static void __cfg80211_send_disassoc(struct net_device *dev, ...@@ -198,7 +198,7 @@ static void __cfg80211_send_disassoc(struct net_device *dev,
return; return;
if (wdev->current_bss && if (wdev->current_bss &&
memcmp(wdev->current_bss, bssid, ETH_ALEN) == 0) { memcmp(wdev->current_bss->pub.bssid, bssid, ETH_ALEN) == 0) {
for (i = 0; i < MAX_AUTH_BSSES; i++) { for (i = 0; i < MAX_AUTH_BSSES; i++) {
if (wdev->authtry_bsses[i] || wdev->auth_bsses[i]) if (wdev->authtry_bsses[i] || wdev->auth_bsses[i])
continue; continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment