mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
mac80211: don't send null data packet when not associated
commit 20f544eea0
upstream.
On resume or firmware recovery, mac80211 sends a null
data packet to see if the AP is still around and hasn't
disconnected us. However, it always does this even if
it wasn't even connected before, leading to a warning
in the new channel context code. Fix this by checking
that it's associated.
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1cbc74e7ed
commit
ab4e547760
1 changed files with 2 additions and 0 deletions
|
@ -1341,6 +1341,8 @@ int ieee80211_reconfig(struct ieee80211_local *local)
|
|||
list_for_each_entry(sdata, &local->interfaces, list) {
|
||||
if (sdata->vif.type != NL80211_IFTYPE_STATION)
|
||||
continue;
|
||||
if (!sdata->u.mgd.associated)
|
||||
continue;
|
||||
|
||||
ieee80211_send_nullfunc(local, sdata, 0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue