ENUM IWL_SAP_RADIO_STATE_BITMAP(9)
π enum iwl_sap_radio_state_bitmap π
okay bestie, real talk β this page is from the Kernel API Manual, and it's about one tiny enum that tells you whether the radio is even allowed to be on. it's giving "two bits decide everything" energy and honestly? iconic. let's get into it π«Ά
β¨ NAME β¨
enum iwl_sap_radio_state_bitmap β used for %SAP_MSG_NOTIF_RADIO_STATE
like literally that's its whole job: it's the bitmap that shows up in %SAP_MSG_NOTIF_RADIO_STATE. no cap. π
π SYNOPSIS π
enum iwl_sap_radio_state_bitmap {
SAP_SW_RFKILL_DEASSERTED ,
SAP_HW_RFKILL_DEASSERTED
};
look at it. two members. zero drama. the trailing comma before the blank line and the stray }; are exactly how the original rolls, so don't come for me about formatting π
πΈ Constants πΈ
SAP_SW_RFKILL_DEASSERTEDβ if this bit is set, the SW RfKill is de-asserted π (translation: software isn't holding the radio hostage anymore)SAP_HW_RFKILL_DEASSERTEDβ if this bit is set, the HW RfKill is de-asserted β¨ (the hardware switch also said "you're free")
π¦ Description π¦
so here's the whole vibe check: if both bits are set, then the radio is on. π₯
that's it. that's the description. software rfkill de-asserted plus hardware rfkill de-asserted = radio go brrr. both. not one. both. the way that AND-logic just ate, honestly π
π SEE ALSO π
the kernel file lives here, go peek:
./drivers/net/wireless/intel/iwlwifi/mei/sap.h
and here's the entire friend group, bestie, i'm not skipping a single one β fr fr:
Introduction(9)Initial Handshake(9)Host and driver state messages(9)Ownership(9)Ownership transfer(9)Data messages(9)enum iwl_sap_me_msg_id(9)struct iwl_sap_me_msg_hdr(9)struct iwl_sap_me_msg_start(9)struct iwl_sap_me_msg_start_ok(9)enum iwl_sap_msg(9)struct iwl_sap_hdr(9)struct iwl_sap_msg_dw(9)enum iwl_sap_nic_owner(9)enum iwl_sap_wifi_cipher_alg(9)struct iwl_sap_notif_connection_info(9)enum iwl_sap_scan_request(9)struct iwl_sap_notif_conn_status(9)enum iwl_sap_notif_host_suspends_bitmap(9)struct iwl_sap_notif_country_code(9)struct iwl_sap_notif_host_link_up(9)enum iwl_sap_notif_link_down_type(9)struct iwl_sap_notif_host_link_down(9)struct iwl_sap_notif_host_nic_info(9)struct iwl_sap_notif_dw(9)struct iwl_sap_notif_sar_limits(9)enum iwl_sap_nvm_caps(9)struct iwl_sap_nvm(9)enum iwl_sap_eth_filter_flags(9)struct iwl_sap_eth_filter(9)enum iwl_sap_flex_filter_flags(9)struct iwl_sap_flex_filter(9)enum iwl_sap_ipv4_filter_flags(9)struct iwl_sap_ipv4_filter(9)enum iwl_sap_ipv6_filter_flags(9)struct iwl_sap_ipv6_filter(9)enum iwl_sap_icmpv6_filter_flags(9)enum iwl_sap_vlan_filter_flags(9)struct iwl_sap_oob_filters(9)struct iwl_sap_csme_filters(9)struct iwl_sap_cb_data(9)struct iwl_sap_pldr_data(9)enum iwl_sap_pldr_status(9)
and that's the page, bestie π§ sign-off time: this lil cutie came from ./drivers/net/wireless/intel/i... and it's dated October 2026. go forth and rfkill responsibly ππ
π¦ 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