STRUCT IWL_PHY_CONTEXT_CMD(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct iwl_phy_context_cmd(9) πŸ’…

okay bestie, so we're in the Kernel API Manual and today's main character is struct iwl_phy_context_cmd β€” literally the config of the PHY context (and it's PHY_CONTEXT_CMD = 0x8, iykyk). no cap, she's iconic. πŸŽ€


✨ NAME ✨

struct iwl_phy_context_cmd β€” the config of the PHY context (because PHY_CONTEXT_CMD = 0x8, periodt). πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

struct iwl_phy_context_cmd {
    __le32 id_and_color;
    __le32 action;
    struct iwl_fw_channel_info ci;
    __le32 lmac_id;
    union {
      __le32 rxchain_info;
      struct {
        u8 sbb_bandwidth;
        u8 sbb_ctrl_channel_loc;
        __le16 puncture_mask;
      };
    };
    __le32 dsp_cfg_flags;
    u8 secondary_ctrl_chnl_loc;
    u8 reserved[3];
 };

like, look at her. absolutely serving struct energy. 🌸


πŸ‘‘ Members πŸ‘‘

  • id_and_color β€” the ID and color of the relevant Binding. yes bestie, structs have a whole color-coding moment going on. πŸ’–
  • action β€” the action to perform, see enum iwl_ctxt_action. she's got options fr.
  • ci β€” channel info. the whole who/what/where of the channel. πŸ“‘
  • lmac_id β€” the lmac id that the phy context belongs to. gotta know which one she's riding with. 🫢
  • {unnamed_union} β€” anonymous. no name, all vibes. πŸ™ˆ
  • rxchain_info β€” ???. genuinely nobody wrote it down, that's what the original says, we're not gonna pretend otherwise 😭 (lowkey mysterious of her ngl)
  • {unnamed_struct} β€” anonymous again. nested. mysterious. main character energy. ✨
  • sbb_bandwidth β€” 0 disabled, 1 - 40Mhz ... 4 - 320MHz. the way she scales. πŸ”₯
  • sbb_ctrl_channel_loc β€” location of the control channel. πŸ“
  • puncture_mask β€” bitmap of punctured subchannels. punctured!! like a pierced ear but for subchannels πŸ’€
  • dsp_cfg_flags β€” set to 0. that's it, that's the whole instruction, do not get creative bestie. 🌈
  • secondary_ctrl_chnl_loc β€” location of secondary control channel. the sequel. 🎬
  • reserved β€” reserved to align to 64 bit. she's just there for the ~aesthetic~ alignment and honestly? respect. ⭐

πŸ” SEE ALSO πŸ”

  • Kernel file ./drivers/net/wireless/intel/iwlwifi/fw/api/phy-ctxt.h β€” go read it, fr fr πŸ“–
  • struct iwl_phy_context_cmd_tail(9)
  • struct iwl_phy_context_cmd_v1(9)

ok that's the whole page bestie, go slay your firmware dev era πŸ’œ

mwah πŸ’‹ this came from <code>./drivers/net/wireless/intel/i...</code> and it's dated <code>October 2026</code>, same as the <code>struct iwl_phy_context_cmd(9)</code> header up top. bye babe, see u in the next manpage πŸ¦‹βœ¨

πŸ“¦ where this page comes from