]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Nov 2012 20:14:05 +0000 (12:14 -0800)
commitf79b61dcf47fc54e5a4c8307bad659bc1f352a3d
tree420ea947167e2d46951cd3cd2e53ca61339b815f
parenta64e7f53c0f5d061ccbd8b28fa09b51b32b7ec53
mac80211: don't send null data packet when not associated

commit 20f544eea03db4b498942558b882d463ce575c3e 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>
net/mac80211/util.c