]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mac80211: don't send null data packet when not associated
authorJohannes Berg <johannes.berg@intel.com>
Thu, 8 Nov 2012 13:06:28 +0000 (14:06 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 9 Nov 2012 16:31:47 +0000 (17:31 +0100)
commit20f544eea03db4b498942558b882d463ce575c3e
treeef7b66466c7a7c3257251f86c389bf7b18ec3ef0
parentcfff2f999d9baa561f20d999c8b83b03f078fb8f
mac80211: don't send null data packet when not associated

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.

Cc: stable@vger.kernel.org
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/util.c