Bringup wifi after hostapd terminates

I am running hostapd in global socket mode and boot up time it starts and post that network restart or wifi down/up bringup's wifi .

My case, after hostapd crash or termination for any reason, proceed restarts hostapd but wifi interfaces are not coming up. I need to execute wifi again manually.

is there any script or setting which I can use to bringup wifi on such scenario.