Report comment

Hi Greg, I have just checked out your comment from yesterday on a pi and have tried a few things but i can't replicate the issue. The lines you commented would only run if your ssid is being broadcast, hostapd is not running, so no hotspot is running and no ip has been assigned to wlan0 by a router.
If your pi is getting the 169.254 ip then the status ip address may be not available which will cause it to run the lines you commented.

Run wpa_cli -i status wlan0 , while the network is up. You should see a line ip_address, that's what is available when your router issues an ip. Until that point the line won't appear.

Are you getting the ip from your router or the 169.254 ip still?