mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: testmode: add support for HE rate modes
Extend enum mt76_testmode_tx_mode to support various HE rate modes. Reviewed-by: Ryder Lee <[email protected]> Signed-off-by: Shayne Chen <[email protected]> Signed-off-by: Felix Fietkau <[email protected]> [update tools/]
This commit is contained in:
committed by
Felix Fietkau
parent
88ebccfe8a
commit
9909c0551e
+5
-1
@@ -84,6 +84,10 @@ mt76_testmode_tx_init(struct mt76_dev *dev)
|
||||
info->flags = IEEE80211_TX_CTL_INJECTED |
|
||||
IEEE80211_TX_CTL_NO_ACK |
|
||||
IEEE80211_TX_CTL_NO_PS_BUFFER;
|
||||
|
||||
if (td->tx_rate_mode > MT76_TM_TX_MODE_VHT)
|
||||
goto out;
|
||||
|
||||
rate = &info->control.rates[0];
|
||||
rate->count = 1;
|
||||
rate->idx = td->tx_rate_idx;
|
||||
@@ -152,7 +156,7 @@ mt76_testmode_tx_init(struct mt76_dev *dev)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
out:
|
||||
skb_set_queue_mapping(skb, IEEE80211_AC_BE);
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user