DFS radar detection channel recovery - hostapd

I'm trying this out, the idea to use simple bash from https://www.signorini.ch/content/openwrt-reload-conf-when-radar-is-detected , as well as good explanation about dfs

# crontab -l
*/15 * * * * [[ $(uci get wireless.radio0.channel) -ne $(iw dev wlan0 info|awk '/channel/{print $2}') ]] && wifi down radio0 && sleep 2 && wifi up radio0
1 Like