mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: fix copy&paste error in mt76_testmode_cmd
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+1
-1
@@ -317,7 +317,7 @@ int mt76_testmode_cmd(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
|
||||
td->tx_count = nla_get_u32(tb[MT76_TM_ATTR_TX_COUNT]);
|
||||
|
||||
if (tb[MT76_TM_ATTR_TX_LENGTH]) {
|
||||
u32 val = nla_get_u32(tb[MT76_TM_ATTR_TX_COUNT]);
|
||||
u32 val = nla_get_u32(tb[MT76_TM_ATTR_TX_LENGTH]);
|
||||
|
||||
if (val > IEEE80211_MAX_FRAME_LEN ||
|
||||
val < sizeof(struct ieee80211_hdr))
|
||||
|
||||
Reference in New Issue
Block a user