]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: mac80211_hwsim: advertise puncturing feature support
authorAditya Kumar Singh <aditya.kumar.singh@oss.qualcomm.com>
Fri, 17 Oct 2025 04:02:41 +0000 (09:32 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 27 Oct 2025 08:17:00 +0000 (09:17 +0100)
commita3b16dfe79eecafea0e058b038bb506ed9bd2c89
tree4fa4886ca5cfbbf52957990727532368d1c4c8fd
parenta392cde88d19af917740d27e13115447d3b21a06
wifi: mac80211_hwsim: advertise puncturing feature support

If userspace provides a puncturing bitmap via the NL80211_ATTR_PUNCT_BITMAP
attribute, the kernel with mac80211_hwsim driver currently rejects the
command with the error: "driver doesn't support puncturing", because the
driver does not advertise support for this feature.

At present, the following hwsim test cases utilize puncturing, but the
bitmap is not sent to the kernel. Instead, the puncturing information is
conveyed only through the beacon data:
 * eht_5ghz_80mhz_puncturing_override_1
 * eht_5ghz_80mhz_puncturing_override_2
 * eht_5ghz_80mhz_puncturing_override_3

A future change in hostapd will begin configuring the puncturing bitmap
explicitly, which will cause these test cases to fail unless the driver
advertises support.

To address this, update mac80211_hwsim driver to advertise puncturing
feature support.

Signed-off-by: Aditya Kumar Singh <aditya.kumar.singh@oss.qualcomm.com>
Link: https://patch.msgid.link/20251017-hwsim_set_punct_feature_bit-v1-1-3be1bb3450c0@oss.qualcomm.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/virtual/mac80211_hwsim.c