# CLI commands

Source: [https://docs.qualcomm.com/doc/80-58740-4/topic/cli-commands_1.html](https://docs.qualcomm.com/doc/80-58740-4/topic/cli-commands_1.html)

## wifi\_sta\_connect

Used to connect to AP. After successful connection, the assigned IP address will be
                printed out.

- The first parameter represents the ssid
- The second parameter represents pwd

## wifi\_scan

Used to scan AP, no parameters required

## ping

For pinging the network

- Fill in the ip address or domain name address in the first parameter

## wifi\_sta\_info

This command is used to query the status information of the STA (Station), such as
                RSSI (Received Signal Strength Indicator), IP address, and power table, and it does
                not require any parameters.

## wifi\_state

This command is used to query the status information of the connection to the AP
                (Access Point), and it does not require any parameters.

## wifi\_sta\_rssi

This command is used to query the RSSI (Received Signal Strength Indicator) of the
                STA (Station), and it does not require any parameters.

## wifi\_sta\_disconnect

This command is used to disconnect from the AP, and it does not require any
                parameters.

## wifi\_ap\_start

This command is used to initialize an AP.

- The first parameter represents the SSID (Service Set Identifier).
- The second parameter represents the key.
- The third parameter represents the channel.
- For example: `wifi_ap_start -s qcc74x -k qcc74x2016 -c 11`

## wifi\_ap\_stop

This command is used to close the AP, and it does not require any parameters.

## wifi\_ap\_conf\_max\_sta

This command is used to set the maximum number of STA devices that can be
                connected.

- Fill in the maximum number of connections as the first parameter.

For example: `wifi_ap_conf_max_sta 3`

## wifi\_ap\_mac\_get

This command is used to obtain the MAC address of the AP, and it does not require any
                parameters.

## wifi\_sta\_list

This command is used to query the information of the connected STA (Station) devices,
                and it does not require any parameters.

## wifi\_sniffer\_on

This command is used to turn on the sniffer mode for network packet capturing.

- The first parameter represents the interface.
- The second parameter represents the frequency.

For example: `wifi_sniffer_on -i wl1 -f 2462`

## wifi\_sniffer\_off

This command is used to turn off sniffer mode, and it does not require any
                parameters.

**Parent Topic:** [Wi-Fi 6](https://docs.qualcomm.com/doc/80-58740-4/topic/wifi6.html)

Last Published: Feb 10, 2025

[Previous Topic
API](https://docs.qualcomm.com/bundle/publicresource/80-58740-4/topics/api.md) [Next Topic
Set PowerTable](https://docs.qualcomm.com/bundle/publicresource/80-58740-4/topics/set-powertable.md)