The actual issue (practical, not technical) is that the STAtion interface is NOT disabled. If you open the wireless file and look at the wifi-iface for the STAtion, you will find that the "option disabled [value]" is either 0 or the line does not exist. Setting this value to 1, (disabled) allows the AP side to resume functioning (after appropriate restart). I think a better description is that the wireless is "hanging" as it can not connect to the STAtion, but both sides are technically enabled.
There are a few types of solutions to the problem.
1 - Remove the iface section or update with the "option disabled '1'
2 - Swap the wireless config file with another (1 enabled file, 1 disabled file)
3 - Use some type of "wifi manager"
For option 1 there are a couple of approaches.
1 - Remove the STAtion on boot (add to the Startup => Local Startup)
2 - Remove the STAtion based on a button action (works if you have a button or switch)
The first is best if you frequently change STAtions. I use this: https://forum.openwrt.org/viewtopic.php … 30#p278230 and have run it both ways. I prefer the button action.
I consider the second more of an issue, as one needs to maintain multiple files, and the code is more complicated. You will still probably need to SCAN and select the new STAtion. You need a trigger action like above.
The third is to use some type of "wifi manager". I use this:
http://www.gl-inet.com/forums/topic/wif … saved-aps/
which is based upon work done by dabyd64 here: https://forum.openwrt.org/viewtopic.php … 52&p=3
One can also use a second radio, which eliminates the issue (which is related to the single radio running both sides of the connection). Most have reported it is not as fast as the above solutions and that you get better performance with the USB radio separated from the device by some distance.
If you have a button, try the first reference and put it into a script (/usr/bin/wifireset) and call it from the button (/etc/rc.button/reset usually). Below is my modified reset file as an example.
.....
if [ "$SEEN" -lt 2 ]
then
echo "Wifi On Off from button" >>/tmp/startup.log
/usr/bin/wifionoff
elif [ "$SEEN" -ge 5 ] && [ "$SEEN" -lt 15 ]
then
logger "Removing STA interface"
/usr/bin/wifireset
elif [ "$SEEN" -gt 30 ]
then
echo "FACTORY RESET" > /dev/console
/usr/bin/flashleds &
jffs2reset -y && reboot &
fi
Below are a number of other references to the issue. There are a few variations to the first ref I have given, including the one referred to by nenekofi:
https://forum.openwrt.org/viewtopic.php … 25#p188725
https://forum.openwrt.org/viewtopic.php … 32#p311832
https://forum.openwrt.org/viewtopic.php?id=59678
https://forum.openwrt.org/viewtopic.php?id=56758
http://www.gl-inet.com/forums/topic/switching-configs/
https://forum.openwrt.org/viewtopic.php … 50#p323650
https://forum.openwrt.org/viewtopic.php?id=60291
https://wiki.openwrt.org/doc/recipes/ap_sta