Fritzbox 4040: wifitoggle

Has any one gotten wifitoggle to run on the 4040 yet? I followed the wiki, and both buttons are recognized according to logread:

Sun Dec 15 22:33:42 2019 user.notice root: the button was wps and the action was pressed
Sun Dec 15 22:33:42 2019 user.notice root: the button was wps and the action was released
Sun Dec 15 22:34:26 2019 user.notice root: the button was rfkill and the action was pressed
Sun Dec 15 22:34:27 2019 user.notice root: the button was rfkill and the action was released

But nothing happens: wifi does not get toggled.

But logread also tells me:

Sun Dec 15 22:33:43 2019 user.notice mac80211: Failed command: iw phy phy0 set antenna all all
Sun Dec 15 22:33:43 2019 user.notice mac80211: Failed command: iw phy phy1 set antenna all all
Sun Dec 15 22:33:43 2019 daemon.notice netifd: radio0 (9735): command failed: Not supported (-95)

Do I simply need to wait for this to be fixed or is there something I missed on the wiki's page?

I don't have wifitoggle installed but, when I press the button, the wifi state changes immediately on my 4040.

You're right: as soon as I uninstall the package wifitoggle the button works.

This is strange... But thanks for the hint!

Doing some tests I discovered that the button labeled "wlan" only toggles the state of any of the two radios, which has not been deactivated manually via GUI. Which makes sense. Sadly though, the LED only corresponds to radio0.

Do both buttons work on your 4040 or just the one labeled "wlan"?

I'd like to make the button labeled "wlan" to toggle the guest net on radio0, while the one labeled "wps" should toggle my private wifi on radio1. Do you know how to do this?

1 Like

Somehow I don't think you can do that: the WLAN button acts directly at the HW level, afaik.
The WPS button is most likely scriptable but I haven't tried it.

Well, syslog tells us the wps button is recognized as an event, both when pressed and when released. So there should be some way of making use of it. :thinking:

1 Like