Files
RedBear-OS/local/recipes/drivers
vasilito a1d0578bdd redbear-iwlwifi: Rust firmware command structures + builders (Phase 6.2)
Add the firmware command layer to the Rust MLD module — the #[repr(C,
packed)] structs and builder functions that produce the exact byte
payloads the firmware expects over the HCMD DMA ring.

Firmware command structures (Linux fw/api/mac-cfg.h):
  MacConfigCmd  — MAC_CONTEXT_CONFIG_CMD (MAC_CONF 0x08), VER_4
  LinkConfigCmd — LINK_CONFIG_CMD (MAC_CONF 0x09)
  StaCfgCmd     — STA_CONFIG_CMD (MAC_CONF 0x0a), VER_3
  RemoveStaCmd  — STA_REMOVE_CMD (MAC_CONF 0x0c)
  AuxStaCmd     — AUX_STA_CMD (MAC_CONF 0x0b)
  StaDisableTxCmd — STA_DISABLE_TX_CMD (MAC_CONF 0x0d)

Constants:
  MAC_TYPE_BSS/STA/GO/P2P_DEVICE/NAN
  LINK_CTX_MODIFY_ACTIVE/RATES_INFO/PROTECT_FLAGS/QOS_PARAMS

Command builders (construct payloads from mac80211 params):
  build_mac_config_client/remove — MAC context add/remove
  build_link_config — link/channel context setup
  build_sta_config — station add with MLO addr + link addr
  build_remove_sta / build_disable_tx / build_aux_sta

23 tests pass. The firmware command layer + mac80211 callback layer
+ notification dispatch + MLO RX parser + TX/scan/sta management
form a complete Rust Mini-MLD bounded driver layer.
2026-07-25 05:50:16 +09:00
..