|
@@ -145,6 +145,9 @@ void ieee80211_sta_reset_conn_monitor(struct ieee80211_sub_if_data *sdata)
|
|
|
{
|
|
|
struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
|
|
|
|
|
|
+ if (unlikely(!sdata->u.mgd.associated))
|
|
|
+ return;
|
|
|
+
|
|
|
if (sdata->local->hw.flags & IEEE80211_HW_CONNECTION_MONITOR)
|
|
|
return;
|
|
|
|
|
@@ -1083,12 +1086,6 @@ void ieee80211_sta_rx_notify(struct ieee80211_sub_if_data *sdata,
|
|
|
if (is_multicast_ether_addr(hdr->addr1))
|
|
|
return;
|
|
|
|
|
|
- /*
|
|
|
- * In case we receive frames after disassociation.
|
|
|
- */
|
|
|
- if (!sdata->u.mgd.associated)
|
|
|
- return;
|
|
|
-
|
|
|
ieee80211_sta_reset_conn_monitor(sdata);
|
|
|
}
|
|
|
|