ENUM HWSIM_ATTRS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 enum hwsim_attrs(9) 🌸

okay bestie, welcome to the Kernel API Manual ✨ β€” this is the enum hwsim_attrs page, and it's literally the whole dictionary of hwsim netlink attributes. no cap, every single one matters 🫢

πŸ’– NAME πŸ’–

enum hwsim_attrs β€” hwsim netlink attributes

✨ SYNOPSIS ✨

enum hwsim_attrs {
    HWSIM_ATTR_UNSPEC ,
    HWSIM_ATTR_ADDR_RECEIVER ,
    HWSIM_ATTR_ADDR_TRANSMITTER ,
    HWSIM_ATTR_FRAME ,
    HWSIM_ATTR_FLAGS ,
    HWSIM_ATTR_RX_RATE ,
    HWSIM_ATTR_SIGNAL ,
    HWSIM_ATTR_TX_INFO ,
    HWSIM_ATTR_COOKIE ,
    HWSIM_ATTR_CHANNELS ,
    HWSIM_ATTR_RADIO_ID ,
    HWSIM_ATTR_REG_HINT_ALPHA2 ,
    HWSIM_ATTR_REG_CUSTOM_REG ,
    HWSIM_ATTR_REG_STRICT_REG ,
    HWSIM_ATTR_SUPPORT_P2P_DEVICE ,
    HWSIM_ATTR_USE_CHANCTX ,
    HWSIM_ATTR_DESTROY_RADIO_ON_CLOSE ,
    HWSIM_ATTR_RADIO_NAME ,
    HWSIM_ATTR_NO_VIF ,
    HWSIM_ATTR_FREQ ,
    HWSIM_ATTR_PAD ,
    HWSIM_ATTR_TX_INFO_FLAGS ,
    HWSIM_ATTR_PERM_ADDR ,
    HWSIM_ATTR_IFTYPE_SUPPORT ,
    HWSIM_ATTR_CIPHER_SUPPORT ,
    HWSIM_ATTR_MLO_SUPPORT ,
    HWSIM_ATTR_PMSR_SUPPORT ,
    HWSIM_ATTR_PMSR_REQUEST ,
    HWSIM_ATTR_PMSR_RESULT ,
    HWSIM_ATTR_MULTI_RADIO ,
    HWSIM_ATTR_SUPPORT_NAN_DEVICE ,
    HWSIM_ATTR_SUPPORT_BACKGROUND_RADAR ,
    __HWSIM_ATTR_MAX

};

πŸŽ€ Constants πŸŽ€

like, the full roster, no skips, iykyk πŸ’…

  • HWSIM_ATTR_UNSPEC β€” the unspecified attribute, there purely to catch errors πŸ‘€
  • HWSIM_ATTR_ADDR_RECEIVER β€” MAC address of the radio device that the frame is broadcasted to πŸ“‘
  • HWSIM_ATTR_ADDR_TRANSMITTER β€” MAC address of the radio device that the frame was broadcasted from πŸ›°οΈ
  • HWSIM_ATTR_FRAME β€” a Data array, literally just data πŸ“
  • HWSIM_ATTR_FLAGS β€” mac80211 transmission flags, used to process properly the frame at user space 🚩
  • HWSIM_ATTR_RX_RATE β€” estimated rx rate index for this frame at user space πŸ“Ά
  • HWSIM_ATTR_SIGNAL β€” estimated RX signal for this frame at user space πŸ“ˆ
  • HWSIM_ATTR_TX_INFO β€” an ieee80211_tx_rate array 🌈
  • HWSIM_ATTR_COOKIE β€” sk_buff cookie to identify the frame πŸͺ
  • HWSIM_ATTR_CHANNELS β€” a u32 attribute used with the HWSIM_CMD_NEW_RADIO command, giving the number of channels supported by the new radio πŸ“»
  • HWSIM_ATTR_RADIO_ID β€” a u32 attribute used with HWSIM_CMD_DESTROY_RADIO only, to destroy a radio πŸ’€
  • HWSIM_ATTR_REG_HINT_ALPHA2 β€” alpha2 for regulatory driver hint (nla string, length 2) 🌍
  • HWSIM_ATTR_REG_CUSTOM_REG β€” custom regulatory domain index (u32 attribute) πŸ—ΊοΈ
  • HWSIM_ATTR_REG_STRICT_REG β€” requests REGULATORY_STRICT_REG (flag attribute) 🚨
  • HWSIM_ATTR_SUPPORT_P2P_DEVICE β€” support P2P Device virtual interface (flag) 🫢
  • HWSIM_ATTR_USE_CHANCTX β€” used with the HWSIM_CMD_NEW_RADIO command to force use of channel contexts even when only a single channel is supported πŸ”’
  • HWSIM_ATTR_DESTROY_RADIO_ON_CLOSE β€” used with the HWSIM_CMD_NEW_RADIO command to force radio removal when the process that created the radio dies 😭
  • HWSIM_ATTR_RADIO_NAME β€” Name of radio, e.g. phy666 πŸ‘‘
  • HWSIM_ATTR_NO_VIF β€” Do not create vif (wlanX) when creating radio. πŸ™ˆ
  • HWSIM_ATTR_FREQ β€” Frequency at which packet is transmitted or received. πŸ“‘
  • HWSIM_ATTR_PAD β€” padding attribute for 64-bit values, ignore 🧚
  • HWSIM_ATTR_TX_INFO_FLAGS β€” additional flags for corresponding rates of HWSIM_ATTR_TX_INFO 🏴
  • HWSIM_ATTR_PERM_ADDR β€” permanent mac address of new radio πŸͺͺ
  • HWSIM_ATTR_IFTYPE_SUPPORT β€” u32 attribute of supported interface types bits πŸ”’
  • HWSIM_ATTR_CIPHER_SUPPORT β€” u32 array of supported cipher types πŸ”
  • HWSIM_ATTR_MLO_SUPPORT β€” claim MLO support (exact parameters TBD) for the new radio πŸ§ͺ
  • HWSIM_ATTR_PMSR_SUPPORT β€” nested attribute used with HWSIM_CMD_NEW_RADIO to provide peer measurement capabilities. (nl80211_peer_measurement_attrs) πŸ“
  • HWSIM_ATTR_PMSR_REQUEST β€” nested attribute used with HWSIM_CMD_START_PMSR to provide details about peer measurement request (nl80211_peer_measurement_attrs) πŸ“¨
  • HWSIM_ATTR_PMSR_RESULT β€” nested attributed used with HWSIM_CMD_REPORT_PMSR to provide peer measurement result (nl80211_peer_measurement_attrs) πŸ“Š
  • HWSIM_ATTR_MULTI_RADIO β€” Register multiple wiphy radios (flag). Adds one radio for each band. Number of supported channels will be set for each radio instead of for the wiphy. 🎚️
  • HWSIM_ATTR_SUPPORT_NAN_DEVICE β€” support NAN Device virtual interface (flag) πŸ¦‹
  • HWSIM_ATTR_SUPPORT_BACKGROUND_RADAR β€” background radar/CAC support (flag) πŸ”₯
  • __HWSIM_ATTR_MAX β€” enum limit, the final boss 🏁

πŸ‘€ SEE ALSO πŸ‘€

Kernel file ./drivers/net/wireless/virtual/mac80211_hwsim.h, then: enum hwsim_tx_control_flags(9), Frame transmission/registration support(9), enum hwsim_commands(9), struct hwsim_tx_rate(9), enum hwsim_tx_rate_flags(9), struct hwsim_tx_rate_flag(9), Frame transmission support over virtio(9), enum hwsim_vqs(9), enum hwsim_rate_info_attributes(9) πŸ’œ


bestie this is kernel source territory β€” go read the actual header before you go poking at radios, k? 🫢

and that's the whole page fr fr πŸ’… this came from ./drivers/net/wireless/virtual, dated October 2026 β€” iconic, mwah 😘

πŸ“¦ where this page comes from