ENUM MAC80211_SCAN_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ enum mac80211_scan_state(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– today we're doing the scan state machine, and honestly? it's giving main character energy. this is the enum that holds all the states the mac80211 scan state machine can be in. let's get into it πŸŽ€


🌸 NAME 🌸

enum mac80211_scan_state β€” the scan state machine states, periodt πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

enum mac80211_scan_state {
    SCAN_DECISION ,
    SCAN_SET_CHANNEL ,
    SCAN_SEND_PROBE ,
    SCAN_SUSPEND ,
    SCAN_RESUME ,
    SCAN_ABORT

};

like, that's the whole roster. six states, no cap πŸ”₯


πŸ‘‘ CONSTANTS πŸ‘‘

  • SCAN_DECISION β€” the main entry point to the scan state machine, iykyk. this state is literally the vibe check: it decides whether we keep on scanning or switch back to the operating channel 🧚
  • SCAN_SET_CHANNEL β€” sets the next channel to be scanned. next up on the itinerary, bestie ✨
  • SCAN_SEND_PROBE β€” sends probe requests and waits for probe responses. it's out here shooting its shot and waiting to see who replies 😭
  • SCAN_SUSPEND β€” suspends the scan and goes back to the operating channel to send out data. not me pausing the side quest to handle actual business πŸ’€
  • SCAN_RESUME β€” resumes the scan and scans the next channel. we're so back 🫢
  • SCAN_ABORT β€” aborts the scan and goes back to the operating channel. ok we're done here, closing the tab πŸ™ˆ

πŸ’œ SEE ALSO πŸ’œ

kernel file ./net/mac80211/ieee80211_i.h enum, plus the whole friend group:

  • ieee80211_bss_corrupt_data_flags(9)
  • enum ieee80211_bss_valid_data_flags(9)
  • enum ieee80211_packet_rx_flags(9)
  • enum ieee80211_rx_flags(9)
  • struct ieee80211_if_ocb(9)
  • struct ieee80211_mesh_sync_ops(9)
  • struct mesh_table(9)
  • struct mesh_tx_cache(9)
  • enum ieee80211_sub_if_data_flags(9)
  • enum ieee80211_sdata_state_bits(9)
  • enum ieee80211_chanctx_mode(9)
  • enum ieee80211_chanctx_replace_state(9)
  • struct txq_info(9)
  • struct ieee80211_if_nan(9)
  • struct ieee80211_if_nan_data(9)
  • enum mac80211_scan_flags(9)
  • ieee80211_parse_ch_switch_ie(9)
  • struct ieee80211_elems_parse_params(9)

like, a whole squad 🌈 go read them too fr fr.


πŸ’– cute sign-off: this icon lives in ./net/mac80211 and the date on it is October 2026 β€” and the page title is enum mac80211_scan_state(9), in case you forgot already 😌✨ slay, go scan some channels πŸ¦‹πŸ‘‘
πŸ“¦ where this page comes from