6️⃣ Wi-Fi 6E Client
Time for some High Efficiency Wi-Fi in the 6 GHz band
Objective
In this lab we will connect the WLAN Pi M4 using its in-built 6 GHz radio to a Catalyst Wi-Fi 6E AP.
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:
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.
Step 2: Wi-Fi connection attempt
Initiate a Wi-Fi client connection on interface wlan0:
It takes about 20 seconds to associate. Please be patient. If your association was successful, you should see output similar to the following:
Step 3: Verify client connection
Open a fresh browser tab
Command + L, Command + Shift Enter
Confirm that you are indeed connected to a 6 GHz radio:
Note the channel number and band 😎
Step 4: What is our Tx and Rx current data rate?
There is even a more aesthetically pleasing tool called wavemon:
Install wavemon using the apt package manager:
Execute it by entering the following command:

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.
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:
How many channels are we talking? You could count them manually, or...
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.
Here is the correct answer:
wifichannel -6 | grep "PSC: Yes" | wc -l
That's 15 PSC channels.
Last updated
Was this helpful?