When starting, hostapd resets the wireless interface, clearing its address. What is the least perversive way of reconfiguring the interface after hostapd has started? I can think of another service dependant on hostapd, maybe that's the true way?
In fact it reeks of XY-problem, first of all I cannot understand why it needs to reset the interface:
nl80211: interface wlan0 in phy phy0 nl80211: Set mode ifindex 4 iftype 3 (AP) nl80211: Failed to set interface 4 to mode 3: -16 (Device or resource busy) nl80211: Try mode change after setting interface down nl80211: Set mode ifindex 4 iftype 3 (AP) nl80211: Mode change succeeded while interface is down nl80211: Setup AP(wlan0) - device_ap_sme=0 use_monitor=0
Maybe that's because it's a USB device, or maybe because of the driver (rt2800usb)…