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

No differences found