This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3351: How to force CC3351 connected to 5G under STA_Mode

Part Number: CC3351

Tool/software:

Dear expert, 

I am testing TX/RX for CC3351 with the AM62. 

If there is 2.4 and 5 GHz WiFi signal from AP router,

How can I set up CC3351 to force it connected to 5G under STA_Mode by AM62?

Best Regards,

Eric Chen

  • Hi Eric,

    Unfortunately we don't have a script that will easily do this. So it will require a little bit of work:

    The AP will separate the two frequency bands by BSSID. You can find the BSSID in the following steps:

    1. cd /usr/share/cc33xx/
    2. ./sta_start.sh
    3. wpa_cli scan
    4. wpa_cli scan_results

    You will see an example printout such as the following:

    root@am62xx-evm:/usr/share/cc33xx# wpa_cli scan_results
    Selected interface 'wlan0'
    bssid / frequency / signal level / flags / ssid
    xx:xx:xx:xx:xx:xx       5520    -66     [WPA2-PSK-CCMP][WPS][ESS]       testAP

    Take note of the BSSID that you intend to connect to. 

    Then it's a matter of using wpa_cli commands to connect to it:

    1. ./sta_start.sh
      1. Not necessary to run if ./sta_start.sh was already executed from above steps.
    2. wpa_cli add_network
    3. wpa_cli set_network 1 bssid xx:xx:xx:xx:xx:xx
    4. wpa_cli set_network 1 psk '"passwork"'
    5. wpa_cli enable_network 1

    You can find an example printout of each of these commands here: https://docs.beagleboard.org/latest/boards/beagleplay/demos-and-tutorials/connect-wifi.html#wpa-cli-shell