mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
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:
committed by
Felix Fietkau
parent
9909c0551e
commit
03ed0909f9
@@ -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
|
||||
Reference in New Issue
Block a user