LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   Enabling/Disabling Wireless Radio. How? (https://www.linuxquestions.org/questions/linux-wireless-networking-41/enabling-disabling-wireless-radio-how-644185/)

citiz3n 05-22-2008 10:20 PM

Enabling/Disabling Wireless Radio. How?
 
Hi there guys,


Can anyone tell me whether there is any way to enable or disable the wireless radio in Linux via command line perhaps?

If tried doing some googling on this.. ended up with some saying that rfkill will do the trick. Can anyone here confirm this to me?

And secondly, can Rfkill be used to ALL wireless adapter or not?


Thanking you in advance.


Citiz3n

dr_agon 05-23-2008 04:29 AM

I don't know about rfkill. It seems to me that it's a driver for physical button enabling/disabling wireless card in some laptops.
But you can treat the wireless interface as any other with ifup/ifdown. You can also switch off the radio with
Code:

iwconfig <interface name> txpower off
Though I'm not sure if it is exactly what you need.
Good luck.

pentode 05-23-2008 12:55 PM

ifdown <interface> will disable the wireless connection. If you want to completely turn off the transmitter, I'm not sure about that.

citiz3n 05-26-2008 07:56 PM

Quote:

Originally Posted by dr_agon (Post 3162217)
I don't know about rfkill. It seems to me that it's a driver for physical button enabling/disabling wireless card in some laptops.
But you can treat the wireless interface as any other with ifup/ifdown. You can also switch off the radio with
Code:

iwconfig <interface name> txpower off
Though I'm not sure if it is exactly what you need.
Good luck.

Quote:

Originally Posted by pentode
ifdown <interface> will disable the wireless connection. If you want to completely turn off the transmitter, I'm not sure about that.

Hi Guyz,

Thanks for the info.


Citiz3n


All times are GMT -5. The time now is 04:37 AM.