mac80211: Send the management frame at requested rate
Whenever the scan request or tx_mgmt is requesting not to use CCK rate for managemet frames through NL80211_ATTR_TX_NO_CCK_RATE attribute, then mac80211 should select appropriate least non-CCK rate. This could help to send P2P probes and P2P action frames at non 11b rates without diabling 11b rates globally. Cc: Jouni Malinen <jouni@qca.qualcomm.com> Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
e9f935e3e8
commit
aad14ceb45
@@ -363,6 +363,9 @@ struct ieee80211_bss_conf {
|
||||
* @IEEE80211_TX_INTFL_TKIP_MIC_FAILURE: Marks this packet to be used for TKIP
|
||||
* testing. It will be sent out with incorrect Michael MIC key to allow
|
||||
* TKIP countermeasures to be tested.
|
||||
* @IEEE80211_TX_CTL_NO_CCK_RATE: This frame will be sent at non CCK rate.
|
||||
* This flag is actually used for management frame especially for P2P
|
||||
* frames not being sent at CCK rate in 2GHz band.
|
||||
*
|
||||
* Note: If you have to add new flags to the enumeration, then don't
|
||||
* forget to update %IEEE80211_TX_TEMPORARY_FLAGS when necessary.
|
||||
@@ -393,6 +396,7 @@ enum mac80211_tx_control_flags {
|
||||
IEEE80211_TX_CTL_STBC = BIT(23) | BIT(24),
|
||||
IEEE80211_TX_CTL_TX_OFFCHAN = BIT(25),
|
||||
IEEE80211_TX_INTFL_TKIP_MIC_FAILURE = BIT(26),
|
||||
IEEE80211_TX_CTL_NO_CCK_RATE = BIT(27),
|
||||
};
|
||||
|
||||
#define IEEE80211_TX_CTL_STBC_SHIFT 23
|
||||
|
Reference in New Issue
Block a user