mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: testmode: add support to set MAC
Add support to set SA/DA/BSSID in testmode. During mass production stage, some test scripts or test equipments need to set fixed addresses to detect or parse if a test is passed. Also, MAC setting is necessary for some tx/rx tests with rx filter, to make sure rx site only receives expected packets. Signed-off-by: Shayne Chen <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
f1520c9bb3
commit
0c489ea286
@@ -45,6 +45,8 @@
|
||||
* @MT76_TM_ATTR_TX_TIME: packet transmission time, in unit of us (u32)
|
||||
*
|
||||
* @MT76_TM_ATTR_DRV_DATA: driver specific netlink attrs (nested)
|
||||
*
|
||||
* @MT76_TM_ATTR_MAC_ADDRS: array of nested MAC addresses (nested)
|
||||
*/
|
||||
enum mt76_testmode_attr {
|
||||
MT76_TM_ATTR_UNSPEC,
|
||||
@@ -81,6 +83,8 @@ enum mt76_testmode_attr {
|
||||
|
||||
MT76_TM_ATTR_DRV_DATA,
|
||||
|
||||
MT76_TM_ATTR_MAC_ADDRS,
|
||||
|
||||
/* keep last */
|
||||
NUM_MT76_TM_ATTRS,
|
||||
MT76_TM_ATTR_MAX = NUM_MT76_TM_ATTRS - 1,
|
||||
|
||||
Reference in New Issue
Block a user