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 revisionBoth sides next revision
toggle_radio [2023/08/06 21:32] – [Wireless chipset (2.4/5GHz) specific operation] hogwildtoggle_radio [2023/08/06 21:40] – [Wireless SSID-specific operation] -clarity, formatting hogwild
Line 70: Line 70:
  
  
-===== Wireless SSID-specific operation =====+===== WiFi SSID-specific operation =====
  
-In some cases, you don'want to adjust the radio chipset, just restrict access to only one specific SSID. This can be achieved as follows:+In some cases, you might want to just restrict access to only one specific SSID or change settings specific to only one WiFi interface. This can be achieved as follows:
  
- - Identify the SSID virtual interface you want to control.+First, identify the SSID virtual interface you want to control.
  
-Remember: virtual interfaces are always defined as main wireless interface name ] + [.] + [number 0-3]+The full list of WiFi interfaces on your router and all its sub-interfaces can be found in the [[advanced-wireless|Virtual Wireless]] menu.
  
-so e.g. "wl0.1". The full list of wireless interfaces available on your router and the all their sub-interfaces once again can be found under [[advanced-wlanvifs|Virtual Wireless]]+Virtual interfaces are always defined as: ''main wireless interface name ] + [.] + [number 0-3]''
  
-For example:+For example, on this router, in the Virtual Wireless menu, we can see the  2.4GHz interface named"wl0.1".
  
- \\ \\  {{:pasted:20221127-163344.png}}+ \\ \\ {{:pasted:20221127-163344.png}}
  
  \\  \\
Line 88: Line 88:
  \\  \\
  
-Now let's assume you want to turn off wl1.3 which is associated to SSID "test"\\  {{:pasted:20221127-162109.png}}+Nowlet's assume you want to turn off wl1.3 which is associated to SSID "test" 
 + 
 + \\ \\ {{:pasted:20221127-162109.png}}
  
  \\  \\
Line 94: Line 96:
  \\  \\
  
-Now, we can perform the following:\\+We could perform the following tasks:\\
  
-**Toggle**\\+**Toggle interface state**\\
  
 ''int=wl1.3''\\ '' [ $(wl -i $int radio | grep -Eo [0-1]$) -eq 1 ] && wl -i $int radio on || wl -i $int radio off'' ''int=wl1.3''\\ '' [ $(wl -i $int radio | grep -Eo [0-1]$) -eq 1 ] && wl -i $int radio on || wl -i $int radio off''
Line 104: Line 106:
  \\  \\
  
-**Force Off**+**Force Interface Off**
  
  \\ \\  ''int=wl1.3''\\ '' wl -i $int radio off''  \\ \\  ''int=wl1.3''\\ '' wl -i $int radio off''
Line 112: Line 114:
  \\  \\
  
-**Force On**+**Force Interface On**
  
  \\ \\  ''int=wl1.3''\\ '' wl -i $int radio on''  \\ \\  ''int=wl1.3''\\ '' wl -i $int radio on''
toggle_radio.txt · Last modified: 2023/08/06 21:49 by hogwild