# Set PowerTable

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

int wifi_mgmr_tpc_pwr_set(rf_pwr_table_t *power_table);Copy to clipboard

## Function parameters

`power_table` is a pointer to the `rf_pwr_table_t`
                structure, which contains the transmission power settings for different Wi-Fi
                standards.

## rf\_pwr\_table\_t structure

    typedef struct rf_pwr_table {
        int8_t pwr_11b[4];
        int8_t pwr_11g[8];
        int8_t pwr_11n_ht20[8];
        int8_t pwr_11n_ht40[8];
        int8_t pwr_11ac_vht20[10];
        int8_t pwr_11ac_vht40[10];
        int8_t reserved[10];
        int8_t pwr_11ax_he20[12];
        int8_t pwr_11ax_he40[12];
        int8_t reserved2[12];
        int8_t reserved3[12];
    } rf_pwr_table_t;Copy to clipboard

## Structure member 

- `pwr_11b[4]`: Corresponds to 4 power levels (1Mbps, 2Mbps,
                    5.5Mbps, 11Mbps) for the 802.11b standard.
- `pwr_11g[8]`: Corresponds to 8 power levels for the 802.11g
                    standard.
- `pwr_11n_ht20[8]`: Corresponds to 8 power levels for the 802.11n
                    HT20 mode.
- Other members follow the same pattern.

Note: Before connecting to an Access Point (AP) or starting a
                micro Access Point (uAP), ensure to set the PowerTable. This is a crucial step to
                ensure that the device operates at the correct power levels.

## Example

Here is an example code for setting the PowerTable.

    rf_pwr_table_t power_table = {
        .pwr_11b = {20, 20, 20, 20},
        .pwr_11g = {18, 18, 18, 18, 18, 18, 16, 16},
        .pwr_11n_ht20 = {18, 18, 18, 18, 18, 16, 15, 15},
        .pwr_11n_ht40 = {18, 18, 18, 18, 18, 16, 15, 14},
        .pwr_11ac_vht20 = {18, 18, 18, 18, 18, 16, 15, 15, 15, 14},
        .pwr_11ac_vht40 = {18, 18, 18, 18, 18, 16, 15, 14, 14, 13},
        .reserved = {0},
        .pwr_11ax_he20 = {18, 18, 18, 18, 18, 16, 15, 15, 15, 14, 13, 13},
        .pwr_11ax_he40 = {18, 18, 18, 18, 18, 16, 15, 14, 14, 13, 12, 12},
        .reserved2 = {0},
        .reserved3 = {0}
    };
    wifi_mgmr_tpc_pwr_set(&power_table);Copy to clipboard

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

Last Published: Feb 10, 2025

[Previous Topic
CLI commands](https://docs.qualcomm.com/bundle/publicresource/80-58740-4/topics/cli-commands_1.md) [Next Topic
Retrieve PowerTable](https://docs.qualcomm.com/bundle/publicresource/80-58740-4/topics/retrieve-powertable.md)