# QCLI sub-group: WLAN

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This section demonstrates the commands related to Wi‑Fi operation.

## Help 

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command displays a command list or the usage instructions of a command. It's the first command in the list for each menu level.

## Up

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command is used to navigate up one group level. For instance, if the command is executed from within the “MyDemo\SubPart1” command group, QCLI navigates to the “MyDemo” command group.		This command is only available within a group or subgroup.

## Root

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command is used to immediately navigate to the root group level. It's only available within a group or subgroup.

## Enable

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command enables the WLAN module. WLAN needs to be enabled before using WLAN related commands enlisted		in this section such as scan, connect, disconnect, and networking commands such as DHCP, ping, and running traffic. This command also performs the following operations after			WLAN is enabled.

	
- Registers application callback with WLAN driver. This driver notifies various asynchronous events to application through this callback function.
- Perform any other initialization operation in application, which is necessary for a completely functional WLAN subsystem.

## Disable

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command disables the WLAN module by de-registering the WLAN virtual devices from the networking stack and bringing down the			WLAN driver. This command turns off the WLAN subsystem, and no WLAN operation can be performed		afterward unless WLAN is enabled again.

## Info

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command displays network service set identifier (SSID), physical mode, power mode, MAC address, and operating mode for the currently selected device. If there are multiple devices, use the		SetDevice command to change the device in use.

## Scan

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command is used to scan for APs when the device is in station mode.

	

| Parameter name | Type/Range | Description |
| --- | --- | --- |
| mode (optional) | 1 – 2 | <ul class="ul" id="concept_pmp_gt4_dzb__ul_ams_4j1_4gc">							<li class="li"><code class="ph codeph">1</code>: Blocking mode. Application blocks until the scan operation completes and scan results are received. This is the default scan mode if no input parameter is given.</li><br>							<li class="li"><code class="ph codeph">2</code>: Non-blocking scan mode. Application doesn't block; the host driver buffers the results. After the scanning procedure completes, host driver invokes the callback registered by the application, which can retrieve the results. </li><br>						</ul> |
| ssid (optional) | String | Network SSID for a directed scan. The scan mode must be given as the first parameter for using the SSID parameter. |

	
This command doesn't apply to device if it's configured as a soft-AP. For mode 1 and 2, the maximum number of BSSs than can be buffered on WLAN driver is 12.

## Connect

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command is used to connect to network.

	

| Parameter name | Type/Range | Description |
| :---: | :---: | :---: |
| ssid | String | SSID for the network |
| bssid (optional) | String | BSSID for the specified SSID<br><br>						<br>Applicable only, whenever device under test (DUT) is operating in station (STA) mode |

	
The `bssid` parameter can be used when multiple BSSs operate with the same SSID and you want to connect to a particular access point (AP). This is an optional parameter and is only		used in the STA mode.

	
Prerequisites:

- Set the operating mode for the device to be connected. For example, if device 0 is configured as a soft-AP, it starts the AP operation with this command. Default is			Infra-STA mode.
- If Security mode is required, key must be set using commands such as SetWpaPassphrase and SetWpaParameters before using the connect command.

## SetCountryCode

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command sets the country code to operate. Country code must be two characters.

	

| Parameter name | Type/Range | Description |
| :---: | :---: | :---: |
| country\_code\_string | String | Country code to be set |

	
**Example**:

	

    SetCountryCode USCopy to clipboard

	
Note: Don't make this command available to end users.

## GetCountryCode

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command gets the country code of the current device.

## SetWpaPassphrase

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command configures the Wi-Fi protected access (WPA) or WPA2 Security Passphrase. This must be done before connecting to an AP or starting a Soft-AP.

	

| Parameter name | Type/Range | Description |
| :---: | :---: | :---: |
| passphrase | String | Security passphrase |

	
**Example:**

	

    SetWpaPassphrase 12345678Copy to clipboard

## SetWpaParameters

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command configures 802.11 security parameters for WPA-Personal and WPA-Enterprise modes. QCC730 supports WPA/WPA2/SAE/SAE\_WPA2 Personal and WPA/WPA2/WPA3 Enterprise security. Mixed mode for unicast and multicast cipher isn't supported. QCC730 WLAN can either be a pure WPA/WPA2/SAE device, or a WPA2-SAE mixed mode device.

	
Version: WPA/WPA2/SAE/SAE\_WPA2/WPACERT/WPA2CERT/WPA3CERT/WPA2\_WPA3CERT

	
Chiper: CCMP/TKIP

	

| Parameter name | Type/Range | Description |
| :---: | :---: | --- |
| version | String | Version. The string for WPA security version can be:<br><ul class="ul" id="concept_t2l_r54_dzb__ul_vvk_3yn_jjc">							<li class="li"><code class="ph codeph">WPA</code>: WPA Personal</li><br>							<li class="li"><code class="ph codeph">WPA2</code>: WPA2 Personal </li><br>							<li class="li"><code class="ph codeph">WPACERT</code>: WPA Enterprise (EAP/802.1X) </li><br>							<li class="li"><code class="ph codeph">WPA2CERT</code>: WPA2 Enterprise (EAP/802.1X) </li><br>							<li class="li"><code class="ph codeph">WPA3CERT</code>: WPA3 Enterprise (EAP/802.1X with SHA-256, PMF required) </li><br>							<li class="li"><code class="ph codeph">WPA2_WPA3_CERT</code>: WPA3 Enterprise transition mode (EAP/802.1X)</li><br>							<li class="li"><code class="ph codeph">SAE</code>: WPA3 Personal (SAE)</li><br>							<li class="li"><code class="ph codeph">WPA2_WPA</code>: Mixed mode, WPA2 + WPA </li><br>							<li class="li"><code class="ph codeph">SAE_WPA2</code>: Mixed mode, WPA3 SAE + WPA2 Personal</li><br>							<li class="li"><code class="ph codeph">SAE_WPA2_WPA</code>: Mixed mode, WPA3 SAE + WPA2 + WPA</li><br>						</ul> |
| ucipher | String | Type of unicast cipher |
| mcipher | String | Type of multicast cipher |

	
**Example:**

	

    SetWpaParameters WPA2 CCMP CCMP
    SetWpaParameters WPA2CERT CCMP CCMPCopy to clipboard

	
For details about WPS enterprise options, see [WPA2/WPA3 Enterprise](https://docs.qualcomm.com/doc/80-Y8730-2/topic/wpa2_wpa3_enterprise.html).

## SetWpaCertParameters

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command configures 802.1X/EAP credentials for WPA Enterprise authentication. It must be called after `SetWpaParameters` with an Enterprise version (WPACERT/WPA2CERT/WPA3CERT/WPA2\_WPA3\_CERT) and before issuing a connect command. Supported EAP methods: TLS, TTLS-MSCHAPV2, PEAP-MSCHAPV2.

| Parameter name | Type/Range | Description |
| :---: | :---: | --- |
| method | String | EAP method: TLS / TTLS-MSCHAPV2 / PEAP-MSCHAPV2 |
| id | String | Phase 1 outer identity (for example, anonymous or username) |
| username | String | Phase 2 inner identity/username (N/A for EAP-TLS) |
| password | String | Phase 2 password (N/A for EAP-TLS) |
| dbglevel | Integer [0-5] | EAP supplicant debug level |
| ca\_path | String | LFS path to CA root certificate. For example, /lfs/ca.crt |
| cert\_path | String | LFS path to client certificate (EAP-TLS only). For example,  /lfs/client.crt |
| key\_path | String | LFS path to client private key (EAP-TLS only). For example, /lfs/client.key |
| key\_pwd | String | Password for private key (optional, EAP-TLS only) |

**Example:**

    # EAP-PEAP-MSCHAPv2
    wlan SetWpaParameters WPA2CERT
    wlan SetWpaCertParameters PEAP-MSCHAPV2 testuser testuser testpass 0
    # EAP-TLS
    wlan SetWpaParameters WPA2CERT
    wlan SetWpaCertParameters TLS 0 0 0 0 /lfs/ca.crt /lfs/client.crt /lfs/client.keyCopy to clipboard

For details about WPS enterprise options, see [WPA2/WPA3 Enterprise](https://docs.qualcomm.com/doc/80-Y8730-2/topic/wpa2_wpa3_enterprise.html).

## Disconnect

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command disconnects the device from the BSS. This command can be used to disconnect from the network irrespective of the operating mode (AP/Infra STA/IBSS).

## SetChannel

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command configures the channel on which WLAN operates. Application must ensure that the channel complies with the regulatory domain restrictions. In station mode, this command also sets the channel hint.

	
Different regulatory restriction applies.

	

| Parameter name | Type/Range | Description |
| --- | --- | --- |
| Channel | 1 – 14\*<br><br>						<br>36 – 165\* | Set channel for the given device |
| is\_6g\_index | 0 – 1 | <ul class="ul" id="concept_eb2_554_dzb__ul_pvv_mmw_m2c">							<li class="li"><code class="ph codeph">0</code>: Not 6G channel</li><br>							<li class="li"><code class="ph codeph">1</code>: 6G channel</li><br>						</ul> |

## SetPhyMode

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command configures the physical mode in which WLAN operates. By default, the device operates in 11n if g mode is selected.

	

| Parameter name | Type/Range | Description |
| :---: | :---: | :---: |
| Mode | a/b/g/ag/gonly | Set WLAN operating mode |

## Set11nHTCap

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command allows user to enable/disable 11n. When 11n is enabled, QCC730		WLAN only supports HT20 mode of operation.

	

| Parameter name | Type/Range | Description |
| :---: | :---: | :---: |
| HTCap | String | Set 11n HT parameter.<br><ul class="ul" id="concept_oxm_w54_dzb__ul_bg2_pkf_q1c">							<li class="li">Disable: Disables 11n</li><br>							<li class="li">HT20: Enables 11n and configures the same in 20Mhz mode.</li><br>						</ul> |

## GetRssi 

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command is used to get Received Signal Strength Indicator (RSSI) of current operating device in the STA mode.

## SetOperatingMode

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command sets the operating mode for a particular device. The device can operate in the AP or station mode.

	

| Parameter name | Type/Range | Description |
| :---: | :---: | :---: |
| Mode | String | Set operating mode<br><br>						<br>Allowed values:<br><ul class="ul" id="concept_rtl_x54_dzb__ul_ypp_qkf_q1c">							<li class="li">ap</li><br>							<li class="li">station</li><br>						</ul> |

## EnableXpa

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command enables external power amplifier (PA) for corresponding 2G/ 5G band of current operating device in the STA or AP mode.

	

| Parameter ame | Type/Range | Description |
| :---: | :---: | :---: |
| Mode | Number [0,1] | <ul class="ul" id="enablexpa__ul_xx5_tr2_4cc">							<li class="li"><code class="ph codeph">1</code>: Enable xPA</li><br>							<li class="li"><code class="ph codeph">0</code>: Disable xPA</li><br>						</ul> |
| Band | Number [0,1] | <ul class="ul" id="enablexpa__ul_bw4_tr2_4cc">							<li class="li"><code class="ph codeph">1</code>: 2G band</li><br>							<li class="li"><code class="ph codeph">0</code>: 5G band</li><br>						</ul> |

## setSTAListenInterval

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command sets the long listen interval, which rounds up or down to multiples of the delivery traffic indication map (DTIM) interval from the AP, so that the device can sleep for the specified interval periodically. Use this command before establishing the WLAN connection.

| Parameter name | Type/Range | Description |
| --- | --- | --- |
| listen\_interval\_in\_TU | Number [0,65535] | Listen interval in TU, 1 TU = 1024 μs |
| Round type | Number [0,1] | <ul class="ul" id="setstalisteninterval__ul_gr5_5r2_4cc"><br>                                <li class="li"><code class="ph codeph">1</code>: Round down</li><br><br>                                <li class="li"><code class="ph codeph">0</code>: Round up</li><br><br>                            </ul> |

## getSTAListenInterval

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command gets the long listen interval, which rounds up or down to multiples of the DTIM interval from the AP. Use this command after establishing the WLAN connection.

## setApplicationIe

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command configures the application-specified IE in the given frame type. The IE data is taken as a string, and each character is converted to its ASCII value (in hexadecimal format)
            before being placed in the frame.

Note: In the current demo, it's only supported in association response frame.

| Parameter name | Type/Range | Description |
| --- | --- | --- |
| Management frame type | Number [0,3] | <ul class="ul" id="setapplicationie__ul_dph_ss2_4cc"><br>                                <li class="li"><code class="ph codeph">0</code>: beacon</li><br><br>                                <li class="li"><code class="ph codeph">1</code>: probe request</li><br><br>                                <li class="li"><code class="ph codeph">2</code>: probe response</li><br><br>                                <li class="li"><code class="ph codeph">3</code>: association response</li><br><br>                            </ul> |
| IE data | String | IE data string, starting with `dd`. |

**Example:**

The character '1' appears as '0x31' in the frame because the ASCII value of '1' converted to hexadecimal is 31.

## sendRawFrame

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command sends Wi-Fi raw packets including beacon, probe request, Quality of Service (QoS), and 4-addr data frame.

| Parameter name | Type/Range | Description |
| --- | --- | --- |
| rate\_index | Number [0,31] | Data rate.<br><br><br>                            <br>While connected, this parameter doesn't take effect. |
| num\_tries | Number [0,14] | Number of times for sending.<br><br><br>                            <br>A broadcast frame is always sent once, regardless of the value of this parameter. |
| num\_bytes | Number [0,1400] | Payload size in bytes.<br><br><br>                            <br>This parameter doesn't take effect when using self-defined frame.<br><br><br>                            <br>The payload size of a MGMT frame should not be smaller than 10 bytes. |
| channel | Number | The channel used for sending:<br><ul class="ul" id="sendrawframe__ul_e5t_tp2_4cc"><br>                                <li class="li">2G: 1 – 11</li><br><br>                                <li class="li">5G: 36, 40, 42 … 165</li><br><br>                            </ul><br><br>                            <br>While connected, this parameter doesn't take effect. |
| type | Number | Header type:<br><ul class="ul" id="sendrawframe__ul_hmk_kr2_4cc"><br>                                <li class="li"><code class="ph codeph">0</code>: beacon</li><br><br>                                <li class="li"><code class="ph codeph">1</code>: probe request</li><br><br>                                <li class="li"><code class="ph codeph">2</code>: QoS data</li><br><br>                                <li class="li"><code class="ph codeph">3</code>: 4-addr data</li><br><br>                                <li class="li"><code class="ph codeph">ff</code>: self-defined. A defined Probe Request packet is sent when using self-defined frame.</li><br><br>                            </ul> |
| addr1-4 | String | The format is `xx:xx:xx:xx:xx:xx`.<br><br><br>                            <br>The following default values are used if this parameter isn't specified:<br><ul class="ul" id="sendrawframe__ul_psy_jr2_4cc"><br>                                <li class="li">addr1: <code class="ph codeph">ff:ff:ff:ff:ff:ff</code>; <code class="ph codeph">00:03:7f:dd:dd:dd</code> for QoS</li><br><br>                                <li class="li">addr2: <code class="ph codeph">00:03:7f:dd:dd:dd</code></li><br><br>                                <li class="li">addr3: <code class="ph codeph">00:03:7f:dd:dd:dd</code>; <code class="ph codeph">00:03:7f:aa:aa:aa</code> for QoS</li><br><br>                                <li class="li">addr4: <code class="ph codeph">00:03:7f:ee:ee:ee</code></li><br><br>                            </ul> |

## setMgmtFilter

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command enables or disables WLAN management frames filter. When enabled, application receives the corresponding WLAN management frames. Now the filter only supports association
            response and probe response frames.

| Parameter name | Type/Range | Description |
| --- | --- | --- |
| Management frame filter | Number | <ul class="ul" id="setmgmtfilter__ul_vmm_zmf_4cc"><br>                                <li class="li"><code class="ph codeph">0</code>: Disable WLAN management filter</li><br><br>                                <li class="li"><code class="ph codeph">1</code>: Enable association response frame</li><br><br>                                <li class="li"><code class="ph codeph">2</code>: Enable probe response frame</li><br><br>                                <li class="li"><code class="ph codeph">3</code>: Enable association response and probe response frames</li><br><br>                                <li class="li"><code class="ph codeph">-1</code>: Print the latest 10 management frames</li><br><br>                            </ul> |

## setEdcaParam

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command sets the parameters related to Enhanced Distributed Channel Access (EDCA), a mechanism defined in IEEE 802.11 standard to provide QoS in WLANs.

| Parameter name | Type/Range | Description |
| --- | --- | --- |
| qtid | Number<br><br><br>                            <br>[0, 7] or 255 | Set EDCA parameters for certain QTID, and 255 applies to all QTIDs. |
| aifsn | Number | Number of time slots |
| cwmin | Number | Minimum contention window, (2^cwmin^ −1) us |
| cwmax | Number | Maximum contention window, (2^cwmax^ −1) us |
| txop\_limit | number | Transmission opportunity limit, (txop\_limit \* 32) us |

**Example:**

    setEdcaParam 0 3 4 7 100Copy to clipboard

## getEdcaParam

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command gets the EDCA parameters, including AIFS, minimum contention window, maximum contention window, and transmission opportunity limit.

| Parameter name | Type/Range | Description |
| --- | --- | --- |
| qtid | Number<br><br><br>                            <br>[0, 7] or 255 | Get EDCA parameters for certain QTID |

## setEdccaThreshold

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command sets the Energy Detect Clear Channel Assessment (EDCCA) threshold in dBm to filter non-Wi-Fi signals.

| Parameter name | Type/Range | Description |
| --- | --- | --- |
| EDCCA threshold | Number | EDCCA threshold in dBm, equals the real value plus 100. |

## getEdccaThreshold

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command gets the EDCCA threshold in dBm.

## SetTxPower

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command sets the transmit power in dBm. The default policy is SAFETY (SAFETY is the
            minimum value among reg domain, CTL, and target power). Set the value to 100 to restore
            default settings.

Transmit power range:

- xPA: 10 to SAFETY
- iPA: 3 to SAFETY

| Parameter name | Type/Range | Description |
| --- | --- | --- |
| txPower | Number | Transmit power in dBm |
| Policy | Number | 0: set transmit power in SAFETY policy. The power should be less than<br>                            reg domain, CTL, and target power. |

Due to the limited DAC gain range with one designated Tx gain index, Tx power can't be changed from 10 dBm to SAFETY under one Tx gain setting in the 5 GHz band. To do that, the power mode in BDF needs to be changed while setting the Tx power using this command. In the 2.4 GHz band, there is no need to change the power mode.

This command changes the relative Tx power based on the default power of the current power mode but can't guarantee that the absolute power matches the set power. There is a gap between the set power and the real power. Since the gap varies across different channels and different boards, direct compensation isn't feasible. The following table lists the empirical gap values tested on the dev board on channel 36.

|  | Real power | Power set in command |
| --- | --- | --- |
| Power mode 1<br><br><br>                            <br>(Default power mode) | 17 | 14 |
| Power mode 1<br><br><br>                            <br>(Default power mode) | 16 | 13 |
| Power mode 2 | 15 | 15 |
| Power mode 2 | 14 | 14 |
| Power mode 2 | 13 | 13 |
| Power mode 0 | 12 | 15 |
| Power mode 0 | 11 | 14 |
| Power mode 0 | 10 | 13 |
|  |  |  |
|  |  |  |

## GetTxPower

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command gets real transmit power, CTL power, reg domain power, and target power in
            dBm. If the transmit power hasn't been set by the SetTxPower command, the default real
            power is 100.

## WpsPush

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command sets up and starts a Wi-Fi protected setup (WPS) connection. This command performs the same function as pressing the physical WPS button.

| Parameter name | Type/Range | Description |
| --- | --- | --- |
| connectFlag | Number | WPS connection flag.<br><br><br>                            <br>This parameter must be set to 1 to set up a connection after WPS initiation is successful. |
| ssid (optional) | String | SSID |
| mac (optional) | uint32\_t | MAC Address |
| channel (optional) | uint32\_t | Channel number |

Currently, WPS is only supported in the STA mode and not supported in the Soft AP mode.

**Example:**

    WpsPush 1
    WpsPush 1 linksys_WPS 845dd741e083 1Copy to clipboard

## SetAggregationParameters

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command sets aggregation on Rx, Tx, or both. Aggregation is controlled by a TID bitmask (0x00–0xFF) and is enabled by default for all TIDs.

| Parameter name | Type/Range | Description |
| --- | --- | --- |
| tx\_tid\_mask | Number | TID bitmask (0X00-0XFF) |
| rx\_tid\_mask | Number | TID bitmask (0X00-0XFF) |

**Example:**

Disable aggregation for all TIDs:

    SetAggregationParameters 0 0Copy to clipboard

Enable aggregation for all TIDs:

    SetAggregationParameters 0xff 0xffCopy to clipboard

## SetAMSDU

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command enables or disables AMSDU reception.

| Parameter name | Type/Range | Description |
| --- | --- | --- |
| rx | String | Use `rx` for this option because this command only supports Rx |
| enable|disable | String | Enable or disable AMSDU reception |

**Example:**

    SetAMSDU rx enableCopy to clipboard

## SetRate

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command sets the fixed Tx rate or enables rate adaption.

| Parameter name | Type/Range | Description |
| --- | --- | --- |
| sta\_id/auto/htOnly | Number/String | `sta_id`: Value of STA ID<br><br><br>                            <br>`auto`: Enable rate adaption<br><br><br>                            <br>`htOnly`: Set HT rates only enabled or disabled |
| rate\_1/enable/disable | Number/String | Index of primary Tx rate<br><br><br>                            <br>`enable`: HT rates only enabled<br><br><br>                            <br>`disable`: HT rates only disabled |
| rate\_2 | Number | Index of secondary Tx rate |
| rate\_3 | Number | Index of tertiary Tx rate |

**Example:**

    SetRate auto
    SetRate 1 8 8 8Copy to clipboard

## GetRate

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command gets the fixed Tx rate.

| Parameter name | Type/Range | Description |
| --- | --- | --- |
| sta\_id | Number | Value of STA ID |

**Example:**

    GetRate 1Copy to clipboard

## setRspRate

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command sets the ACK and BA rate in station mode.

| Parameter name | Type/Range | Description |
| --- | --- | --- |
| rate\_idx | Number<br><br><br>                            <br>8 or 16 | Index of RSP rate:<br><ul class="ul" id="setrsprate__ul_tgy_g14_jjc"><br>                                <li class="li"><code class="ph codeph">8</code>: 6Mbps</li><br><br>                                <li class="li"><code class="ph codeph">16</code>: 6.5Mbps</li><br><br>                            </ul><br><br>                            <br>Other rate indexes aren't supported. |

**Example:**

    setRspRate 8Copy to clipboard

## EnableCtsToSelf

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command enables or disables CTS to self.

| Parameter name | Type/Range | Description |
| --- | --- | --- |
| enable | Number<br><br><br>                            <br>0 or 1 | `0`: Disable CTS to self<br><br><br>                            <br>`1`: Enable CTS to self |

**Example:**

    EnableCtsToSelf 1Copy to clipboard

## setBaWinSize

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command sets BA window size in station mode. The actual AMPDU size will be impacted by this parameter and other parameters together.

| Parameter name | Type/Range | Description |
| --- | --- | --- |
| tx\_ba\_window\_size | Number<br><br><br>                            <br>[0 , 64] | The size of BA window size for Tx |
| rx\_ba\_window\_size | Number<br><br><br>                            <br>[0 , 64] | The size of BA window size for Rx |

**Example:**

    setBaWinSize 4 6Copy to clipboard

## P2P commands

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

The P2P commands configure the P2P group client function and start the P2P connection with an android device. Enable WLAN before using the P2P commands.

### p2p on

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command enables the P2P group client function. Run this command to enable P2P before using the P2P commands enlisted in this section such as `find`, `listnodes`, `connect`, and `setconfig`.

### p2p find

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command starts a P2P scan. It discovers nearby P2P devices and makes the device discoverable to others.

### p2p listnodes

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command displays information about discovered P2P devices, such as the device name, device address, and device capabilities.

### p2p connect

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command forms a P2P group using the negotiation method and then operates as a group client.

| Parameter name | Type/Range | Description |
| --- | --- | --- |
| peer\_dev\_mac | uint32\_t | P2P device address |
| wps\_method | string | WPS method, including `push`/`display`/`keypad`. Currently, only `push` is supported. |

**Example**: 

    p2p connect f2:2d:1b:7f:d8:29 pushCopy to clipboard

### p2p setconfig

Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-wlan.html)

This command configures the P2P-related parameters.

| Parameter name | Type/Range | Description |
| --- | --- | --- |
| GO\_intent | uint32\_t | Go intent, always set to `0` |
| listen channel | uint32\_t | Listening channel |
| operation channel | uint32\_t | Operation channel |
| country | string | Country code |
| node\_timeout | uint32\_t | Node life time (unit: second) |

**Example**:

    p2p setconfig 0 1 36 US 300Copy to clipboard

Last Published: Jun 03, 2026

[Previous Topic
QCLI internal commands](https://docs.qualcomm.com/bundle/publicresource/80-Y8730-2/topics/qcli-internal-commands.md) [Next Topic
QCLI sub-group: Platform](https://docs.qualcomm.com/bundle/publicresource/80-Y8730-2/topics/qcli-sub-group-platform.md)