mt76: mt7915: implement testmode tx support

Support testmode tx for MT7915A, including tx streams and HE rate
settings.

Reviewed-by: Ryder Lee <[email protected]>
Signed-off-by: Shayne Chen <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Shayne Chen
2020-11-10 13:48:06 +01:00
committed by Felix Fietkau
parent 9909c0551e
commit 03ed0909f9
10 changed files with 465 additions and 9 deletions
+34
View File
@@ -0,0 +1,34 @@
// SPDX-License-Identifier: ISC
/* Copyright (C) 2020 MediaTek Inc. */
#ifndef __MT7915_TESTMODE_H
#define __MT7915_TESTMODE_H
struct mt7915_tm_trx {
u8 type;
u8 enable;
u8 band;
u8 rsv;
};
struct mt7915_tm_cmd {
u8 testmode_en;
u8 param_idx;
u8 _rsv[2];
union {
__le32 data;
struct mt7915_tm_trx trx;
u8 test[72];
} param;
} __packed;
enum {
TM_MAC_TX = 1,
TM_MAC_RX,
TM_MAC_TXRX,
TM_MAC_TXRX_RXV,
TM_MAC_RXV,
TM_MAC_RX_RXV,
};
#endif