How to shutdown specific WiFi radio device(like 5GHz or 2GHz) that 'hostapd's?
I have WRT32x and runs three deamon like below.
/usr/sbin/hostapd -s -P /var/run/wifi-phy1.pid -B /var/run/hostapd-phy1.conf
/usr/sbin/hostapd -s -P /var/run/wifi-phy2.pid -B /var/run/hostapd-phy2.conf
/usr/sbin/hostapd -s -P /var/run/wifi-phy0.pid -B /var/run/hostapd-phy0.conf
I'd like to shutdown by proper script and command(like 'service wifi-1 stop')
when a condition met(like timer or so.).
Please give me an idea.
As far as I know the wireless configuration is looped over. Manipulation is done through the 'wifi' command - but for all enabled interfaces at the same time.