mirror of
https://github.com/openwrt/openwrt.git
synced 2026-12-05 08:46:08 +04:00
hostapd.uc tests NL80211_EXT_FEATURE_ENABLE_FTM_RESPONDER as bit 33 and NL80211_EXT_FEATURE_RADAR_BACKGROUND as bit 61. In nl80211.h they are 32 and 60; bits 33 and 61 are AIRTIME_FAIRNESS and POWERED_ADDR_CHANGE. The values had no effect until commit28c6f5e6f7("wifi-scripts: fix extended-feature bit test"). Since then mt76 radios, which set AIRTIME_FAIRNESS, read as FTM responders, and mac80211_hwsim, which has an FTM responder, does not. Every mac80211 radio sets POWERED_ADDR_CHANGE, so every 5 GHz radio reads as capable of background radar. Use the values of nl80211.h. Fixes:218f3884d2("wifi-scripts: add ucode based scripts") Signed-off-by: Felix Fietkau <nbd@nbd.name>