Files
RedBear-OS/local
vasilito b22fa7e24c redbear-iwlwifi: wire mac80211 callbacks to firmware command transport (Phase 6.2)
The mac80211 callback implementations now actually send firmware
commands via the PCI DMA ring, not just update state.

linux_port.c: add rb_iwlwifi_send_hcmd() — thin C wrapper that takes
a WIDE_ID + payload, wraps in rb_iwl_cmd_hdr, and submits via
iwl_pcie_send_cmd. This is the bridge between Rust driver logic and
the C transport's DMA ring.

mld.rs:
  - MldState.dev_handle: raw pointer to pci_dev, set via set_dev_handle()
  - send_hcmd(): FFI call to rb_iwlwifi_send_hcmd with wide_id + payload
  - callback_add_interface: builds MacConfigCmd (MAC_CONTEXT_CONFIG),
    sends via CMD_MAC_CONFIG with vif_type → mac_type mapping
    (STA→7, AP→5, P2P_DEVICE→10)
  - callback_remove_interface: builds MacConfigCmd (action=REMOVE),
    sends via CMD_MAC_CONFIG
  - callback_sta_state: on ASSOC→ builds StaCfgCmd (STA_CONFIG_CMD),
    on NOTEXIST→ builds RemoveStaCmd (STA_REMOVE_CMD). Both sent via
    send_hcmd to the firmware command ring.

23 tests pass. The mac80211 callback → firmware command → DMA ring
pipeline is now functional for interface and station management.
2026-07-25 07:26:12 +09:00
..