ENUM MT76_TESTMODE_ATTR(9)
π enum mt76_testmode_attr(9)
okay so bestie, we're in the Kernel API Manual, section 9, and today's main character is enum mt76_testmode_attr β the enum that holds all the testmode attributes living inside NL80211_ATTR_TESTDATA. it's giving "netlink but make it wifi lab equipment" β¨
πΈ NAME
enum mt76_testmode_attr β the testmode attributes that live inside NL80211_ATTR_TESTDATA π
π¦ SYNOPSIS
enum mt76_testmode_attr {
MT76_TM_ATTR_UNSPEC ,
MT76_TM_ATTR_RESET ,
MT76_TM_ATTR_STATE ,
MT76_TM_ATTR_MTD_PART ,
MT76_TM_ATTR_MTD_OFFSET ,
MT76_TM_ATTR_TX_COUNT ,
MT76_TM_ATTR_TX_LENGTH ,
MT76_TM_ATTR_TX_RATE_MODE ,
MT76_TM_ATTR_TX_RATE_NSS ,
MT76_TM_ATTR_TX_RATE_IDX ,
MT76_TM_ATTR_TX_RATE_SGI ,
MT76_TM_ATTR_TX_RATE_LDPC ,
MT76_TM_ATTR_TX_RATE_STBC ,
MT76_TM_ATTR_TX_LTF ,
MT76_TM_ATTR_TX_ANTENNA ,
MT76_TM_ATTR_TX_POWER_CONTROL ,
MT76_TM_ATTR_TX_POWER ,
MT76_TM_ATTR_FREQ_OFFSET ,
MT76_TM_ATTR_STATS ,
MT76_TM_ATTR_TX_SPE_IDX ,
MT76_TM_ATTR_TX_DUTY_CYCLE ,
MT76_TM_ATTR_TX_IPG ,
MT76_TM_ATTR_TX_TIME ,
MT76_TM_ATTR_DRV_DATA ,
MT76_TM_ATTR_MAC_ADDRS ,
NUM_MT76_TM_ATTRS ,
MT76_TM_ATTR_MAX
};
β¨ Constants β¨
like, every single one, no skips, we don't do that here π«Ά
MT76_TM_ATTR_UNSPECβ the (invalid attribute). it's the placeholder bestie, it does not slay, it is not invited to the party πMT76_TM_ATTR_RESETβ reset parameters to default (flag). hit it and everything goes back to factory-fresh π§MT76_TM_ATTR_STATEβ test state (u32), seeenum mt76_testmode_state. this is the vibe check for what the test is even doing rn πMT76_TM_ATTR_MTD_PARTβ mtd partition used for eeprom data (string). literally just which partition your eeprom data is chilling in πMT76_TM_ATTR_MTD_OFFSETβ offset of eeprom data within the partition (u32). where inside that partition the data starts, fr frMT76_TM_ATTR_TX_COUNTβ configured number of frames to send when setting state toMT76_TM_STATE_TX_FRAMES(u32). so like, how many frames we're yeeting π₯MT76_TM_ATTR_TX_LENGTHβ packet tx mpdu length (u32)MT76_TM_ATTR_TX_RATE_MODEβ packet tx mode (u8, seeenum mt76_testmode_tx_mode)MT76_TM_ATTR_TX_RATE_NSSβ packet tx number of spatial streams (u8)MT76_TM_ATTR_TX_RATE_IDXβ packet tx rate/MCS index (u8)MT76_TM_ATTR_TX_RATE_SGIβ packet tx use short guard interval (u8)MT76_TM_ATTR_TX_RATE_LDPCβ packet tx enable LDPC (u8)MT76_TM_ATTR_TX_RATE_STBCβ packet tx enable STBC (u8)MT76_TM_ATTR_TX_LTFβ packet tx LTF, set0to2for 1x, 2x, and 4x LTF (u8). three little values, three little LTF flavors, iykyk πΈMT76_TM_ATTR_TX_ANTENNAβ tx antenna mask (u8)MT76_TM_ATTR_TX_POWER_CONTROLβ enable tx power control (u8)MT76_TM_ATTR_TX_POWERβ per-antenna tx power array (nested, u8 attrs). yes it's nested, yes it's per-antenna, yes she's that girl πMT76_TM_ATTR_FREQ_OFFSETβ RF frequency offset (u32)MT76_TM_ATTR_STATSβ statistics (nested, seeenum mt76_testmode_stats_attr). numbers go brrr πMT76_TM_ATTR_TX_SPE_IDXβ tx spatial extension index (u8)MT76_TM_ATTR_TX_DUTY_CYCLEβ packet tx duty cycle (u8)MT76_TM_ATTR_TX_IPGβ tx inter-packet gap, in unit ofus(u32). the little breather between packets βMT76_TM_ATTR_TX_TIMEβ packet transmission time, in unit ofus(u32)MT76_TM_ATTR_DRV_DATAβ driver specific netlink attrs (nested). driver's own little corner of the netlink universe π¦MT76_TM_ATTR_MAC_ADDRSβ array of nested MAC addresses (nested). nested in nested, we love a recursive moment πNUM_MT76_TM_ATTRSβ-- undescribed --. yeah bestie the manpage literally gives us nothing here, so i'm not gonna invent lore πMT76_TM_ATTR_MAXβ-- undescribed --. same situation, the source said-- undescribed --and we respect the source π
π SEE ALSO
- Kernel file
./drivers/net/wireless/mediatek/mt76/testmode.henummt76_testmode_rx_attr(9),enum mt76_testmode_state(9),enum mt76_testmode_tx_mode(9)
go read those, they're the supporting cast and honestly they ate π
lowkey a friendly reminder from your girl: this page came from./drivers/net/wireless/mediate..., dated October 2026, and it'senum mt76_testmode_attr(9)all the way down. that's the whole footer, bestie, i didn't skip a crumb π«Άπ
kay bye, go forth and test that mode β¨π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms