PDA

Bekijk de volledige versie : How can I disable radio?



maradamc
11-07-2007, 16:31
I didn't see an option to disable radio in Oleg's firmware 1.9.2.7-7g for wl500g. Am I overlooking something? I noticed a setting for EZSETUP Button "Use to turn off radio - Yes / No" Would this turn the EZSetup button into an on/off button for the radio?

Thanks

als
11-07-2007, 17:40
Where exactly do you see this option? I have the same firmware and can't find it.

Alternatively, you can turn turn the radion on and off in Status and Logs -Wireless - Enable-Disable. Or, you can turn it off in Wireless-Advanced-Enable Radio (by days of the week).


I didn't see an option to disable radio in Oleg's firmware 1.9.2.7-7g for wl500g. Am I overlooking something? I noticed a setting for EZSETUP Button "Use to turn off radio - Yes / No" Would this turn the EZSetup button into an on/off button for the radio?

Thanks

al37919
11-07-2007, 17:54
to be able to use ez-setup button for something you should put a script you wish to be executed on pushing of this button in /usr/local/sbin/ez-setup . Search again, I think I have seen an example of such script somewhere on the forum. The command to be executed from script is

wl radio [on|off]

beatmag
13-07-2007, 10:01
we posted a script a few weeks ago,
and it works fine.....

go search for it

zwitter
16-07-2007, 00:22
And i have atm proble with forceing pppoe to work - im getting same msg which ppl used to get with F version
Crap x[

maradamc
17-07-2007, 03:49
to be able to use ez-setup button for something you should put a script you wish to be executed on pushing of this button in /usr/local/sbin/ez-setup . Search again, I think I have seen an example of such script somewhere on the forum. The command to be executed from script is

wl radio [on|off]

:( Sorry, my mistake. I loaded 3 different firmware (Sveasoft, DD-WRT, and Oleg's) that day trying to accomplish my goal (still not done). I think that option was in the DD-WRT firmware.

knulp79
22-01-2008, 22:19
Hi!
I would like to add my 2 cents.
I wanted to switch off the radio by using the ez-setup button.
Here is how I approached the question.

login (via telnet or ssh)
create /usr/local/sbin/ez-setup :
----
#!/bin/sh
TIMEOUT=45
if [ $(wl radio) = "0x0000" ]; then wl radio off; exit; fi
wl radio on
C=$TIMEOUT
while [ $C -gt 0 ]; do
printf "\x02" > /dev/gpio/out
sleep 1
printf "\x00" > /dev/gpio/out
sleep 1
if [ $(wl radio) = "0x0001" ]; then exit; fi
if [ $(wl assoclist | wc -l) -gt 0 ]; then
C=$TIMEOUT
else
C=$(($C-1))
fi
done
wl radio off
----
then
chmod +x /usr/local/sbin/ez-setup
echo "sleep 25; wl radio off" >> /usr/local/sbin/post-boot
flashfs save && flashfs commit && flashfs enable && reboot

After you turn on the WL500gp, the radio is switched off. To turn it on, you have to press the ez-setup button for a few seconds. The power led starts flashing (I could not control the air led that is always on, even if the radio is off, at least with the firmware version I am using). If within 90 seconds (2*45, but you can change this value) one client connects to the ssid the connection is maintained otherwise the radio is turned off again.
As long as at least one client is connected, the radio is kept on.
After all clients are disconnected the radio is turned off again.
If you have comments or suggestions, feel free to open a discussion.
Cheers,
Luca