summaryrefslogtreecommitdiffstats
path: root/kernel/net/wireless/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/net/wireless/util.c')
-rw-r--r--kernel/net/wireless/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/net/wireless/util.c b/kernel/net/wireless/util.c
index 7e4e3fffe..baf7218ce 100644
--- a/kernel/net/wireless/util.c
+++ b/kernel/net/wireless/util.c
@@ -887,7 +887,8 @@ void cfg80211_process_wdev_events(struct wireless_dev *wdev)
case EVENT_DISCONNECTED:
__cfg80211_disconnected(wdev->netdev,
ev->dc.ie, ev->dc.ie_len,
- ev->dc.reason, true);
+ ev->dc.reason,
+ !ev->dc.locally_generated);
break;
case EVENT_IBSS_JOINED:
__cfg80211_ibss_joined(wdev->netdev, ev->ij.bssid,