[PATCH] AP: Don't pass eht_oper_puncturing_override to the driver

Jouni Malinen j at w1.fi
Wed Nov 25 13:48:39 PST 2026


On Wed, Nov 25, 2026 at 05:16:20PM +0200, Andrei Otcheretianski wrote:
> eht_oper_puncturing_override is a testing option for advertising a
> puncturing bitmap in the operation elements without actually puncturing.
> It is used for testing the station side, and some tests intentionally
> advertise a bitmap that is invalid for the operating bandwidth, so it
> must never be used for the actual channel configuration.
> 
> Since commit 9f43c1e26bc6 ("Provide punct_bitmap to
> hostapd_set_freq_params()") it is also passed to the driver as
> freq->punct_bitmap, which nl80211 rejects with -EINVAL unless the driver
> advertises NL80211_EXT_FEATURE_PUNCT, so AP setup fails.
> 
> Add an include_override argument to hostapd_get_punct_bitmap() and set
> it only where the advertised elements and channel information are built.
> Driver and channel configuration now uses the configured punct_bitmap
> only.
> 
> The eht_5ghz_80mhz_puncturing_override_{1,2,3} tests relied on the
> override reaching hostapd_set_freq_params(); convert them to the real
> punct_bitmap and rename accordingly.

Thanks, applied.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list