mac80211: fix honouring rate flags in low-rate transmit
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Mon, 14 Oct 2013 08:46:55 +0000 (10:46 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 15 Oct 2013 13:16:12 +0000 (15:16 +0200)
Transmissions with the IEEE80211_TX_CTL_NO_CCK_RATE flag set
(which can come from userspace) were no longer guaranteed to
be transmitted with allowed rates since commit 2103dec14792b
("mac80211: select and adjust bitrates according to channel
mode") due to a missing rate_flags check in that commit. The
commit also introduced the need to check the 5/10 MHz flags
but accidentally didn't. Fix it by adding the missing check.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

No differences found