[PATCH] nl80211: do not send zero HE OBSS PD offsets
Jouni Malinen
j at w1.fi
Fri Oct 2 06:57:35 PDT 2026
On Thu, Oct 01, 2026 at 11:04:08AM +0200, github at singe.za.net wrote:
> The kernel treats omitted HE OBSS-PD offset attributes as zero. Omit
> zero-valued offsets in the nl80211 AP setup request so zero remains usable
> with kernels that reject explicit zero attributes.
>
> Add a hwsim regression test covering zero for all three offsets.
>
> Johannes Berg confirmed this is the intended kernal ABI upstream.
> https://lore.kernel.org/linux-wireless/a5f74bb1113b5841a4a5359ba615cc114f41a1cd.camel@sipsolutions.net/
Thanks, applied with a modified commit message. I do not think this is
really the intended nl80211 kernel interface since the values 0-20
(inclusive) are valid and there is no point in rejecting one of the
valid values and require that to be addressed differently. Anyway, the
pragmatic approach here is indeed to do this workaround in hostapd so
that this will work both with older and newer kernels (assuming cfg80211
policy for the attributes is going to be updated).
--
Jouni Malinen PGP id EFC895FA
More information about the Hostap
mailing list