Site Tools


toggle_radio

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
toggle_radio [2023/08/06 21:44] – [WiFi SSID-specific operation] -formatting hogwildtoggle_radio [2023/08/06 21:49] (current) – [Wireless SSID-specific operation] -change "wireless" to "WiFi" hogwild
Line 27: Line 27:
 ===== Specific Wireless chipset (2.4/5GHz) operations ===== ===== Specific Wireless chipset (2.4/5GHz) operations =====
  
-Modern routers come with two or more chipsets/WiFi interfaces. There is usually one 2.4GHz interface and one or more 5GHz interfaces. In certain case you might want to enable/disable a specific chipset via the command line.+Modern routers come with two or more chipsets/WiFi interfaces. There is usually one 2.4GHz interface and one or more 5GHz interfaces. In certain cases you might want to control a specific chipset via the command line.
  
 Once you've identified the name of the appropriate radio interface (via the [[advanced-wlanvifs|Virtual Wireless]] page): Once you've identified the name of the appropriate radio interface (via the [[advanced-wlanvifs|Virtual Wireless]] page):
Line 39: Line 39:
 \\ \\
  
-For example, using "eth1" in my the above example:+For example, using "eth1" in the above example:
  
 **Verify interface state** **Verify interface state**
Line 88: Line 88:
  \\  \\
  
-Now, let's assume you want to turn off wl1.3 which is associated to SSID "test"+Now, let's assume you want to control "wl1.3which is associated to the SSID"test"
  
  \\ \\ {{:pasted:20221127-162109.png}}  \\ \\ {{:pasted:20221127-162109.png}}
Line 96: Line 96:
  \\  \\
  
-We could perform the following tasks:\\+You could perform the following tasks:\\
  
 **Toggle interface state**\\ **Toggle interface state**\\
Line 123: Line 123:
  
  
-==== Wireless SSID specific operation ====+==== WiFi SSID-specific operation ====
  
-Let's say, as it often happens), a specific SSID you have defined is operational on multiple interfaces/sub-interfaces, you can disable the SSID everywhere as follow:\\+Often, a specific defined SSID operates on multiple interfaces/sub-interfaces
 + 
 +You can disable that SSID on all interfaces everywhereas follows:\\ 
 + 
 + \\ 
 + 
 +**Force Off** 
 + 
 + \\ \\  ''SSID=MYCOOLSSID''\\ '' nvram show | grep ssid | grep $SSID | while read line; do wl -i $(echo $line | cut -d"=" -f1 | cut -d_ -f1 ) radio off; done'' 
 + 
 + \\ 
 + 
 + \\ 
 + 
 +**Force On** 
 + 
 + \\ \\  ''SSID=MYCOOLSSID''\\ '' nvram show | grep ssid | grep $SSID | while read line; do wl -i $(echo $line | cut -d"=" -f1 | cut -d_ -f1 ) radio on; done'' 
 + 
 + \\ 
 + 
 + \\ 
 + 
 + \\
  
-**Force Off**\\ 
-''SSID=MYCOOLSSID\\ 
-nvram show | grep ssid | grep $SSID | while read line; do wl -i $(echo $line | cut -d"=" -f1 | cut -d_ -f1 ) radio off; done'' 
  
-**Force On**\\ 
-''SSID=MYCOOLSSID\\ 
-nvram show | grep ssid | grep $SSID | while read line; do wl -i $(echo $line | cut -d"=" -f1 | cut -d_ -f1 ) radio on; done'' 
toggle_radio.1691354655.txt.gz · Last modified: 2023/08/06 21:44 by hogwild