Upstreaming OpenWrt out-of-tree hostap/wpa_supplicant patches

nick vincent at systemli.org
Fri Apr 3 01:04:24 PDT 2026


Hi,

I've been reviewing the set of out-of-tree patches that OpenWrt carries 
against hostap/wpa_supplicant [1] and wanted to check upstream interest 
in taking some of them.

As a starting point I used an AI assistant to do an initial pass over 
all patches, then went through the findings manually to confirm and 
filter the results.

After going through all ~60 patches, roughly 15-20 appear to be generic 
enough to be submitted upstream without any OpenWrt-specific dependency. 
The rest are tightly coupled to OpenWrt infrastructure (ubus, ucode, 
multicall build system, etc.) and are clearly out-of-tree forever.

The patches I believe are good upstream candidates are:

Bug fixes:
   - Fix adding back stations after a missed deauth/disassoc
     (021-fix-sta-add-after-previous-connection)
   - nl80211: Add extra IEs only if allowed by driver (check
     max_scan_ie_len capability before injecting scan IEs)
     (051-nl80211-add-extra-ies-only-if-allowed-by-driver)
   - AP: Add missing null pointer check in hostapd_free_hapd_data
     (052-AP-add-missing-null-pointer-check-in-hostapd_free_ha)
   - Add NULL checks encountered during hwsim tests
     (150-add-NULL-checks-encountered-during-tests-hwsim)
   - Don't ignore probe requests with invalid DSSS parameter set
     (762-AP-don-t-ignore-probe-requests-with-invalid-DSSS-par)
   - Fix mesh OBSS check when fixed_freq is set
     (464-fix-mesh-obss-check)
   - wpa_supplicant: Avoid stopping DPP chirp on offchannel TX failure
     (161-wpa_supplicant-avoid-stopping-DPP-chirp-when-offchan)
   - Fix OWE SSID update handling
     (180-fix_owe_ssid_update)
   - ctrl_iface: Handle UNKNOWN COMMAND response in hostapd_cli
     (381-hostapd_cli_UNKNOWN-COMMAND)
   - Make WNM_AP functions depend on CONFIG_AP (fixes linker issues)
     (211-ctrl-make-WNM_AP-functions-dependant-on-CONFIG_AP)
   - Move WLAN_SUPP_RATES_MAX definition to common defs.h
     (212-Move-definition-of-WLAN_SUPP_RATES_MAX-to-defs.h)
   - Fix wpa_supplicant forward declaration warnings
     (213-wpa_supplicant-fix-warnings)
   - 802.11be: Move ap_sta_is_mld/ap_sta_set_mld out of header
     (803-hostapd-fix-80211be-build)

Features / improvements:
   - hostapd: Update cfs0/cfs1 for 160 MHz HE operation
     (170-hostapd-update-cfs0-and-cfs1-for-160MHz)
   - hostapd: Add support for specifying the link ID in the control
     interface ADD command (802.11be MLD)
     (191-hostapd-add-support-for-specifying-the-link-id-in-th)
   - mesh: Add channel switch support via control interface
     (341-mesh-ctrl-iface-channel-switch)
   - mesh: Add mcast_rate support for 802.11s
     (463-add-mcast_rate-to-11s)
   - hostapd: Support random BSS color configuration
     (465-hostapd-config-support-random-BSS-color)

I'm happy to rebase and format these as a proper patch series for 
review. Before doing so, I wanted to check:

   1. Is upstream interested in any/all of the above?
   2. Are some of them already addressed differently?
   3. Any preference on submission order (e.g., fixes before features)?

The full set of OpenWrt patches is visible at [1].

Thanks,
Nick

[1] 
https://github.com/openwrt/openwrt/tree/main/package/network/services/hostapd/patches




More information about the Hostap mailing list