[PATCH] wpa_supplicant: Honor 4addr mode configuration in set_4addr_mode()

Jouni Malinen j at w1.fi
Mon Jul 27 05:58:53 PDT 2026


On Sun, Apr 12, 2026 at 03:38:11PM +0200, Baligh Gasmi wrote:
> Move the 4addr mode enablement check into wpa_supplicant_set_4addr_mode()
> to ensure the configuration is always respected. This encapsulates the
> configuration logic within the function and prevents unintended 4addr
> mode activation when the feature is disabled in the network configuration.

Could you please clarify why this would be needed and what this fixes?
The only other place that calls wpa_supplicant_set_4addr_mode() is in
multi_ap_set_4addr_mode() and Multi AP (i.e., Wi-Fi EasyMesh) cases are
likely expected to enable 4-address mode and it is possible that the
previous implementation has resulted in some configurations not
explicitly enabling that and the proposed change would then potential
break them.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list