mirror of
https://github.com/openwrt/openwrt.git
synced 2026-11-28 23:03:53 +04:00
The ubus object of an AP MLD resolves to one link, the MLD's first BSS or else its first link (hostapd_ubus_mld_hapd()). wps_start arms the link that its link_id names, but wps_cancel takes no link_id and acts on the resolved link. With wps_independent, which is the default, hostapd_wps_cancel() reaches only that BSS, so a push button armed on another link stays active until its walk time ends. wps_cancel takes the optional link_id of wps_start and ends the push button on that link's BSS; NOT_FOUND where the object has no such link. get_features reports wps_link_cancel, so that a caller can tell a hostapd that takes the argument from one that ignores it. Refresh patches 863 and 869, whose ubus.c hunks moved by 11 lines. Signed-off-by: Felix Fietkau <nbd@nbd.name>