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 20:52] – [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 108: Line 108:
 \\  \\ \\  \\
  
-**Toggle interface state** \\ \\+**Toggle interface state** \\ \\ 
  
-''int=wl1.3'' \\ \\+''int=wl1.3'' \\ \\ 
  
 '' [ $(wl -i $int radio | grep -Eo [0-1]$) -eq 1 ] && wl -i $int radio on || wl -i $int radio off'' '' [ $(wl -i $int radio | grep -Eo [0-1]$) -eq 1 ] && wl -i $int radio on || wl -i $int radio off''
  
- \\ \\+ \\ \\ 
  
-**Force Interface Off** \\ \\+**Force Interface Off** \\ \\ 
  
  ''int=wl1.3''\\ \\ '' wl -i $int radio off''  ''int=wl1.3''\\ \\ '' wl -i $int radio off''
  
- \\ \\+ \\ \\ 
  
 **Force Interface On** **Force Interface On**
  
- \\  ''int=wl1.3''  \\ \\+ \\  ''int=wl1.3''  \\ \\ 
  
 '' wl -i $int radio on'' '' wl -i $int radio on''
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** \\ \\ 
  
- \\+''iplink set wl1.3 down'' \\ 
  
-**Bring back up an interface:**+ \\ \\  
 + 
 +**Bring up an interface:**
  
  \\ ''iplink set wl1.3 up''  \\ ''iplink set wl1.3 up''
  
  \\  \\
 + \\ 
  
 +==== 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.1760903573.txt.gz · Last modified: by hogwild