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 [2025/10/19 21:16] – [WiFi SSID-specific operation] hogwildtoggle_radio [2025/10/19 21:22] (current) – [Control Specific Wireless Chipsets (2.4/5GHz)] hogwild
Line 51: Line 51:
  \\ ''int=eth1''  \\ ''int=eth1''
  
- \\ '' [ $(wl -i $int radio | grep -Eo [0-1]$) -eq 1 ] && echo "radio $int is off" || echo "radio $int is on"''+ \\ '' [ $(wl -i $int radio | grep -Eo [0-1]$) -eq 1 ] && echo "radio $int is off" || echo "radio $int is on"'' \\ 
  
- \\ \\+ \\ \\ 
  
 \\ **Toggle interface state:** \\ **Toggle interface state:**
Line 135: Line 135:
  
 **Take down an interface** \\ \\  **Take down an interface** \\ \\ 
 +
 +''iplink set wl1.3 down'' \\ 
  
  \\ \\   \\ \\ 
-''iplink set wl1.3 down'' 
- 
- \\ 
  
 **Bring up an interface:** **Bring up an interface:**
Line 146: Line 145:
  
  \\  \\
 + \\ 
  
 +==== Specific WiFi SSID Operation ====
  
-==== WiFi SSID-specific operation ==== +Often, a specific defined SSID operates on multiple interfaces/sub-interfaces. You can disable that SSID on all interfaces everywhere, as follows:\\
- +
-Often, a specific defined SSID operates on multiple interfaces/sub-interfaces. +
- +
-You can disable that SSID on all interfaces everywhere, as follows:\\+
  
  \\  \\
  
-**Force Off**+**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''+''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** \\ \\ 
  
-**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''
  
- \\ \\  ''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.1760904973.txt.gz · Last modified: by hogwild