[][MAC80211][hostapd][Fix STA association failure when co-locating with multiple AP interfaces]

Fix STA association failure when the STA is co-locating with multiple AP interfaces.

When co-locating with AP interfaces, wpa_supplicant stops the beaconing of the co-locating AP interfaces during STA interface initialization.

However, if there are multiple AP interfaces co-locating with the STA interface, the beacon might be reset after wpa_supplicnat stopped it. The STA interface therefore cannot allocate more channel context in ieee80211_local and fails the association.

This path adds a variable 'stopped_by_supplicant' to indicate an AP interfce is currently stopped by co-locating STA interface and to prevent a beacon resetting fails STA's assocaition.


Change-Id: I54a3c6b8cb37c1614f45a423ac0b90e5a01ba8d2
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7430262
1 file changed