mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-14 10:57:56 +04:00
The links of an AP MLD share one interface name. Each asked for the object of that name, the first link got it, and the others failed. The object, its subscribers, and the state a subscriber set through it belonged to that one link: - the object went away with that link, although other links remained, and a subscriber took the removal for the end of the AP MLD and of every station on it; - notify_response, the BSS Transition Management Query answer flag and the bans applied to that link only, while each link read its own; - bss_mgmt_enable and the rrm_nr methods changed the capabilities and the neighbor report database of that link only. Keep one object per AP MLD, from its first link to its last. A method runs on a link that is there: the AP MLD's first link once its setup has added it to the object, or, once the last link has left the AP MLD and before its BSS frees the object, a link the object still counts. A link is counted once. Notifications of every link go through it. notify_response, the BTM query answer and the bans are the AP MLD's, and every link reads them. bss_mgmt_enable, the implicit neighbor report enable of the rrm_nr methods and rrm_nr_set apply to every link, and a link that joins later takes the flags and the neighbor list set before. The methods that name a station act on the link that holds it: get_clients lists the stations of every link, a non-AP MLD once with the station of its association link, and rrm_beacon_req, rrm_lm_req and update_airtime find the station on any link, as del_client and bss_transition_request already did. They answered for the first link only, and after that link left the AP MLD, for another one. Signed-off-by: Felix Fietkau <nbd@nbd.name>