@john9527 I think I discovered a code bug, preventing me from enabling DFS on my AC66U.
When I set wl_dfs_enable=1 and do 'restart_wireless', I get a segmentation fault, and the command terminates prematurely. Both wifi leds turn off and only 2.4G comes on again (network stays down though).
I can recover from this, by settings wl_dfs_enable=0 and do another 'restart_wireless'.
If I were to commit the wl_dfs_enable=1 setting to nvram, and reboot, the router will not come back online again, and I have to do a clear nvram on the WPS button, to get the router back into working condition. So obviously that setting also makes the boot process/network init crash.
Could you please look at line 398 of /release/src/router/rc/lan.c
I believe that
should be
Correct me if I'm wrong. I'm not sure this is the cause of my problems, but it looks to me like its related though, since the entire block from line 394 to 404, including the above syntax error only runs if wl_dfs_enable=1
Also, where can I find the latest source code? The version at github linked in post 1 does not seem to be up to date.
Best regards,
Miwer
When I set wl_dfs_enable=1 and do 'restart_wireless', I get a segmentation fault, and the command terminates prematurely. Both wifi leds turn off and only 2.4G comes on again (network stays down though).
Code:
admin@RT-AC66U-5ED8:/tmp/home/root# nvram set wl_dfs_enable=1
admin@RT-AC66U-5ED8:/tmp/home/root# restart_wireless
restart wireless...
vlan1: cmd=14: Operation not supported
vlan1: cmd=14: Operation not supported
Segmentation fault
admin@RT-AC66U-5ED8:/tmp/home/root#
I can recover from this, by settings wl_dfs_enable=0 and do another 'restart_wireless'.
If I were to commit the wl_dfs_enable=1 setting to nvram, and reboot, the router will not come back online again, and I have to do a clear nvram on the WPS button, to get the router back into working condition. So obviously that setting also makes the boot process/network init crash.
Could you please look at line 398 of /release/src/router/rc/lan.c
I believe that
Code:
(nvram_get_int("wl1_dfs" == 1))) ||
Code:
(nvram_get_int("wl1_dfs") == 1)) ||
Correct me if I'm wrong. I'm not sure this is the cause of my problems, but it looks to me like its related though, since the entire block from line 394 to 404, including the above syntax error only runs if wl_dfs_enable=1
Also, where can I find the latest source code? The version at github linked in post 1 does not seem to be up to date.
Best regards,
Miwer
Last edited: