hostapd: fix wpa_supplicant mac address allocation on ap+sta
authorFelix Fietkau <nbd@nbd.name>
Thu, 28 Sep 2023 08:28:43 +0000 (10:28 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 28 Sep 2023 08:32:59 +0000 (10:32 +0200)
commit02ed2b0271c5e17584884146649d7fb64a9ac35d
tree6544747c12239b2cc3d0903c11dc66702418c28d
parent186747a169fe70fb53268cc1ef45952bd75fde4e
hostapd: fix wpa_supplicant mac address allocation on ap+sta

If the full interface is restarted while bringing up an AP, it can trigger a
wpa_supplicant interface start before wpa_supplicant is notified of the
allocated mac addresses.
Fix this by moving the iface_update_supplicant_macaddr call to just after
the point where mac addresses are allocated.

Reported-by: Michael-cy Lee (李峻宇) <Michael-cy.Lee@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry picked from commit abceef120d57bf066941882630a76788eb4985a9)
package/network/services/hostapd/files/hostapd.uc