ENUM MT76_TESTMODE_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

ok so enum mt76_testmode_state β€” it's the phy test state enum, bestie. that's the whole vibe. the state of your phy, but for testing. πŸ’…

quick heads up before we dive in: this page lives in the Kernel API Manual, section 9. now you know. 🫢


✨ SYNOPSIS ✨

here's the cast, in order, no cap β€” this is literally the whole enum:

enum mt76_testmode_state {
    MT76_TM_STATE_OFF ,
    MT76_TM_STATE_IDLE ,
    MT76_TM_STATE_TX_FRAMES ,
    MT76_TM_STATE_RX_FRAMES ,
    MT76_TM_STATE_TX_CONT ,
    MT76_TM_STATE_ON ,
    NUM_MT76_TM_STATES ,
    MT76_TM_STATE_MAX

};

ok the trailing space before those commas is a whole thing but we do not touch it, we respect it, we leave it exactly as it is. ✨


πŸŽ€ Constants πŸŽ€

every single one, in order, nobody gets left behind:

  • MT76_TM_STATE_OFF β€” test mode is disabled and it's just doing normal operation. boring era, but valid. 😌
  • MT76_TM_STATE_IDLE β€” test mode is enabled but just sitting there. idle. vibing. not doing anything yet. πŸ¦‹
  • MT76_TM_STATE_TX_FRAMES β€” it sends a fixed number of test frames. a set amount. not infinite. we love a boundary. πŸ”₯
  • MT76_TM_STATE_RX_FRAMES β€” it receives packets and keeps statistics. it's watching. it's counting. πŸ‘€
  • MT76_TM_STATE_TX_CONT β€” waveform tx with no time gap. continuous. back to back to back. no breaks, periodt. πŸ’€
  • MT76_TM_STATE_ON β€” test mode enabled, and this one's the version used in offload firmware. special little guy. πŸ‘‘
  • NUM_MT76_TM_STATES β€” the source literally says -- undescribed -- and honestly? same. we're not making anything up here, bestie. πŸ™ˆ
  • MT76_TM_STATE_MAX β€” also -- undescribed --. iconic mystery. no notes. ⭐
ngl, those last two show up with no description in the source at all, so don't go reading meaning into them that isn't there. i'm not out here inventing lore. 🧚

🌈 SEE ALSO 🌈

go look at these next, i'm obsessed:

  • the Kernel file ./drivers/net/wireless/mediatek/mt76/testmode.h β€” that's the enum's actual home 🏠
  • enum mt76_testmode_attr(9)
  • enum mt76_testmode_rx_attr(9)
  • enum mt76_testmode_tx_mode(9)

ok that's the page!! πŸ’– this one came from ./drivers/net/wireless/mediate... and it's dated October 2026 β€” yes, the future, don't ask, she's booked and busy. mwah, go read the header file, ily, bye πŸŽ€βœ¨

πŸ“¦ where this page comes from