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:30:14 +0000 (10:30 +0200)
commitabceef120d57bf066941882630a76788eb4985a9
treeee5f73371162801039102ccc2dcc17a39a5f8ca5
parent0e8641d3b08bf8b9eac8e3338faf11cc058a5124
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>
package/network/services/hostapd/files/hostapd.uc