I can recommend assigning one of the two buttons on the router to perform the required functionality...
for example:
uci show | grep button
system.@button[0]=button
system.@button[0].action='released'
system.@button[0].min='0'
system.@button[0].max='3'
system.@button[0].button='rfkill'
system.@button[0].handler='logger "button WLAN push 0-3s; exec /root/switch_wifi"; /root/switch_wifi'
system.@button[1]=button
system.@button[1].action='released'
system.@button[1].min='30'
system.@button[1].max='100'
system.@button[1].button='rfkill'
system.@button[1].handler='logger "button WLAN push 30-100s; exec /root/repair_network"; /root/repair_network'
system.@button[2]=button
system.@button[2].button='wps'
system.@button[2].action='released'
system.@button[2].min='0'
system.@button[2].max='3'
system.@button[2].handler='logger "button WPS push 0-3s; exec /root/switch_wifi"; /root/switch_wifi'
system.@button[3]=button
system.@button[3].button='wps'
system.@button[3].action='released'
system.@button[3].min='30'
system.@button[3].max='100'
system.@button[3].handler='logger "button WPS push 30-100s; exec /root/repair_network"; /root/repair_network'
you see: