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:03] – [Control Specific WiFi SSIDs] 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 132: Line 132:
 The //iplink //command is another reliable tool, allowing you to disable any interface or change its MAC address. The //iplink //command is another reliable tool, allowing you to disable any interface or change its MAC address.
  \\   \\ 
-For example: +For example: \\ \\ 
- \\ +
- \\   \\ **Take down an interface** \\ \\  +
- \\  +
-''iplink set wl1.3 down''+
  
- \\+**Take down an interface** \\ \\ 
  
-**Bring back up an interface:**+''iplink set wl1.3 down'' \\ 
  
- \\ ''iplink set wl1.3 up''+ \\ \\ 
  
- \\+**Bring up an interface:**
  
- + \\ ''iplink set wl1.3 up''
-==== 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:\\+
  
  \\  \\
 + \\ 
  
-**Force Off**+==== Specific WiFi SSID Operation ====
  
- \\ \\  ''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''+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 On**+''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 on; 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.1760904203.txt.gz · Last modified: by hogwild