In this lab we will connect the WLAN Pi M4 using its in-built 6 GHz radio to a Catalyst Wi-Fi 6E AP.
Make sure you are in the "Classic" mode before proceeding.
Step 1: Modify wpa_supplicant.conf
When we want the WLAN Pi to join a Wi-Fi network we need to provide configuration details to wpa_supplicant, which is the software responsible for connecting the Pi as a client to Wi-Fi networks. The configuration file is located in /etc/wpa_supplicant/wpa_supplicant.conf.
We will connect to the 6GHz SSID WPDD 6 GHz APx, where x represents the AP number. You now know how use your WLAN Pi M4 as a Remote Sensor to scan for available 6 GHz SSIDs. Enable column Stations, which shows the current number of connected clients. Choose the AP with least clients and connect to it.
Let's modify the file configuration file using nano text editor:
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
Scroll down to the very end of the file, copy and paste the configuration below to the file. Choose the SSID with least clients (column Stations in the screenshot above).
Save changes by pressing CRTL+O (that's letter "o"), then press Enter to confirm.
Exit the text editor using CTRL+X.
To support the latest SAE configuration options (namely sae_pwe=1), we require wpa_supplicant 2.10 or newer. We have already preinstalled wpa_supplicant 2.10 for you.
Step 2: Wi-Fi connection attempt
Initiate a Wi-Fi client connection on interface wlan0:
There is even a more aesthetically pleasing tool called wavemon:
Install wavemon using the apt package manager:
sudo apt install wavemon
Execute it by entering the following command:
wavemon
Some of the information is incorrect. Please take channel number and some other details with a pinch of salt. The tool needs to be updated. It still provides great value and shows live Wi-Fi details. And we have learned how to install a new package 😉
Step 5: 6 GHz channel math
How does channel number 69 relate to the lower 6 GHz (500 MHz) spectrum available in Czech Republic? Let's use one of our CLI Power Tools and list all lower 6 GHz channels.
wifichannel -6 | grep "Lower 6 GHz"
The first part wifichannel -6 lists all 6 GHz channels and we "pipe" this output to grep, which then filters only Lower 6 GHz channels. Should produce an output like this:
Band: 6 GHz Channel: 1 Center freq: 5955 MHz PSC: No Lower 6 GHz
Band: 6 GHz Channel: 5 Center freq: 5975 MHz PSC: Yes Lower 6 GHz
Band: 6 GHz Channel: 9 Center freq: 5995 MHz PSC: No Lower 6 GHz
Band: 6 GHz Channel: 13 Center freq: 6015 MHz PSC: No Lower 6 GHz
Band: 6 GHz Channel: 17 Center freq: 6035 MHz PSC: No Lower 6 GHz
Band: 6 GHz Channel: 21 Center freq: 6055 MHz PSC: Yes Lower 6 GHz
Band: 6 GHz Channel: 25 Center freq: 6075 MHz PSC: No Lower 6 GHz
Band: 6 GHz Channel: 29 Center freq: 6095 MHz PSC: No Lower 6 GHz
Band: 6 GHz Channel: 33 Center freq: 6115 MHz PSC: No Lower 6 GHz
Band: 6 GHz Channel: 37 Center freq: 6135 MHz PSC: Yes Lower 6 GHz
Band: 6 GHz Channel: 41 Center freq: 6155 MHz PSC: No Lower 6 GHz
Band: 6 GHz Channel: 45 Center freq: 6175 MHz PSC: No Lower 6 GHz
Band: 6 GHz Channel: 49 Center freq: 6195 MHz PSC: No Lower 6 GHz
Band: 6 GHz Channel: 53 Center freq: 6215 MHz PSC: Yes Lower 6 GHz
Band: 6 GHz Channel: 57 Center freq: 6235 MHz PSC: No Lower 6 GHz
Band: 6 GHz Channel: 61 Center freq: 6255 MHz PSC: No Lower 6 GHz
Band: 6 GHz Channel: 65 Center freq: 6275 MHz PSC: No Lower 6 GHz
Band: 6 GHz Channel: 69 Center freq: 6295 MHz PSC: Yes Lower 6 GHz
Band: 6 GHz Channel: 73 Center freq: 6315 MHz PSC: No Lower 6 GHz
Band: 6 GHz Channel: 77 Center freq: 6335 MHz PSC: No Lower 6 GHz
Band: 6 GHz Channel: 81 Center freq: 6355 MHz PSC: No Lower 6 GHz
Band: 6 GHz Channel: 85 Center freq: 6375 MHz PSC: Yes Lower 6 GHz
Band: 6 GHz Channel: 89 Center freq: 6395 MHz PSC: No Lower 6 GHz
Band: 6 GHz Channel: 93 Center freq: 6415 MHz PSC: No Lower 6 GHz
How many channels are we talking? You could count them manually, or...
wifichannel -6 | grep "Lower 6 GHz" | wc -l
Word count wc command with argument -l is a useful filter commnand, which counts the number of lines in our output.
That's 24 x 20 MHz channels in total.
Bonus: 6 GHz PSC channels
Can you use the above wifichannel command example to count the total number of PSCs (Preferred Scanning Channels) in the full 6 GHz Wi-Fi spectrum?
See the correct answer by clicking the second tab.