ENUM MT76_TESTMODE_ATTR(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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), see enum 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 fr
  • MT76_TM_ATTR_TX_COUNT β€” configured number of frames to send when setting state to MT76_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, see enum 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, set 0 to 2 for 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, see enum 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 of us (u32). the little breather between packets ⭐
  • MT76_TM_ATTR_TX_TIME β€” packet transmission time, in unit of us (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.h enum mt76_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's enum 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