mac80211: don't call mgd_prepare_tx when associated
commit8c7d857c4a4a552d8d3e1b2e24e1864ec2989285
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 24 Jul 2012 22:42:36 +0000 (25 01:42 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 31 Jul 2012 14:10:59 +0000 (31 16:10 +0200)
tree8fb6920044ee856549cb4d969ef4d4ae78374e08
parent7eeff74c29259e9cb7765e3845c0b74057f744da
mac80211: don't call mgd_prepare_tx when associated

This doesn't make any sense since we are expected to be on
the medium or at least to Tx only when we are on the right
channel and the AP/GO can hear us.

Move the call to mgd_prepare_tx() for deauth to be only
done in case we're sending a deauth while not associated.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c