mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-14 13:08:30 +04:00
wpas_dpp_chirp_start() sends each Presence Announcement with a wait time of 2000 ms. cfg80211 refuses a frame whose wait exceeds the driver's maximum remain-on-channel duration with -EINVAL (nl80211_tx_mgmt()), so on a driver with a smaller maximum, such as mac80211_hwsim with 1000 ms, no chirp is ever transmitted and the enrollee cannot be found. Clamp the wait time to max_remain_on_chan, as the other DPP transmit paths in this file do. Signed-off-by: Felix Fietkau <nbd@nbd.name>