ENUM MT76_TESTMODE_STATE(9)
πΈ 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
- 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