Files
RedBear-OS/local
vasilito 9b4775d15d restore: expanded C headers + C MLD helpers + Rust MLD driver logic (Phase 6.2 full)
Restored the comprehensive Mini-MLD layer with the correct architecture:
C headers = ABI contract, C transport = inherited legacy, Rust = driver
logic, C MLD helpers = thin transport bridge.

Files restored from git history (commit eeddbc72fe + b22fa7e24c):

C headers (linux-kpi, ABI contract matching Linux fw/api/*.h):
  mac80211.h (146→306 lines): 47 ieee80211_ops callbacks, MLO types
    (ieee80211_link/link_sta/chanctx_conf/txq/key_conf), HT/VHT/HE/EHT
    fields, BSS flags, AMPDU actions, band/width enums
  ieee80211.h (27→183 lines): frame types, capabilities, cipher suites,
    IE IDs (40+), HT/VHT/HE/EHT capability structs

Rust driver logic (redbear-iwlwifi/src/):
  mld.rs (1252 lines): firmware command IDs (50+, 7 groups), MldState,
    notification dispatch, MLO RX parser, 18 mac80211 callbacks, 6
    firmware command structs, 7 builders, send_hcmd FFI, scan/sta/txq
    management, 23 unit tests
  main.rs: mod mld; integration

C transport bridge (redbear-iwlwifi/src/):
  linux_mld.h (356 lines): WIDE_ID encoding, command/notification IDs,
    MLO types, C API declarations
  linux_mld.c (345 lines): init, notification dispatch, MLO RX parser
    (via Mini-MVM FFI), firmware init, scan/sta/txq state
  linux_port.c: function signatures updated to match expanded mac80211.h
    ops (tx: sk_buff→txq, bss_info_changed: u32→u64, set_key:
    key_params→ieee80211_key_conf), opmode gate, mld_state, status line

Rust mac80211.rs: Ieee80211Ops with 47 callback fields, MLO Vif/Sta

build.rs: compiles linux_mld.c alongside linux_port.c + linux_mvm.c

Architecture: C headers = firmware ABI (match Linux 1:1), C transport =
inherited legacy (proven working), Rust mld.rs = driver logic, C MLD
helpers = transport bridge. 23 tests pass.
2026-07-25 18:56:29 +09:00
..