Lines Matching refs:privcmd
1073 wma_cli_set_cmd_t *privcmd) in wma_set_priv_cfg() argument
1077 switch (privcmd->param_id) { in wma_set_priv_cfg()
1080 privcmd->param_vdev_id, in wma_set_priv_cfg()
1081 privcmd->param_value); in wma_set_priv_cfg()
1085 privcmd->param_vdev_id, in wma_set_priv_cfg()
1086 privcmd->param_value); in wma_set_priv_cfg()
1090 privcmd->param_vdev_id, in wma_set_priv_cfg()
1091 privcmd->param_value); in wma_set_priv_cfg()
1094 wma_set_smps_params(wma_handle, privcmd->param_vdev_id, in wma_set_priv_cfg()
1095 privcmd->param_value); in wma_set_priv_cfg()
1100 uint8_t mcc_channel = privcmd->param_value & 0x000000FF; in wma_set_priv_cfg()
1102 (privcmd->param_value & 0x0000FF00) >> 8; in wma_set_priv_cfg()
1119 privcmd->param_value & 0x000000FF; in wma_set_priv_cfg()
1121 (privcmd->param_value & 0x0000FF00) >> 8; in wma_set_priv_cfg()
1123 (privcmd->param_value & 0x00FF0000) >> 16; in wma_set_priv_cfg()
1137 wma_err("Invalid wma config command id:%d", privcmd->param_id); in wma_set_priv_cfg()
1221 wma_set_per_link_amsdu_cap(tp_wma_handle wma, wma_cli_set_cmd_t *privcmd, in wma_set_per_link_amsdu_cap() argument
1232 privcmd->param_value, in wma_set_per_link_amsdu_cap()
1233 privcmd->param_value, in wma_set_per_link_amsdu_cap()
1247 wma_set_per_link_amsdu_cap(tp_wma_handle wma, wma_cli_set_cmd_t *privcmd, in wma_set_per_link_amsdu_cap() argument
1262 wma_cli_set_cmd_t *privcmd) in wma_process_cli_set_cmd() argument
1264 int vid = privcmd->param_vdev_id, pps_val = 0; in wma_process_cli_set_cmd()
1285 if (privcmd->param_id >= WMI_CMDID_MAX) { in wma_process_cli_set_cmd()
1290 if (wma_set_priv_cfg(wma, privcmd)) in wma_process_cli_set_cmd()
1295 switch (privcmd->param_vp_dev) { in wma_process_cli_set_cmd()
1297 if (!wma_is_vdev_valid(privcmd->param_vdev_id)) { in wma_process_cli_set_cmd()
1302 wma_debug("vdev id %d pid %d pval %d", privcmd->param_vdev_id, in wma_process_cli_set_cmd()
1303 privcmd->param_id, privcmd->param_value); in wma_process_cli_set_cmd()
1305 privcmd->param_vdev_id, in wma_process_cli_set_cmd()
1306 privcmd->param_id, in wma_process_cli_set_cmd()
1307 privcmd->param_value); in wma_process_cli_set_cmd()
1314 wma_debug("pdev pid %d pval %d", privcmd->param_id, in wma_process_cli_set_cmd()
1315 privcmd->param_value); in wma_process_cli_set_cmd()
1316 if ((privcmd->param_id == wmi_pdev_param_rx_chain_mask) || in wma_process_cli_set_cmd()
1317 (privcmd->param_id == wmi_pdev_param_tx_chain_mask)) { in wma_process_cli_set_cmd()
1321 privcmd->param_value)) { in wma_process_cli_set_cmd()
1327 if (privcmd->param_id == wmi_pdev_param_tx_chain_mask) { in wma_process_cli_set_cmd()
1328 if (!wma_is_tx_chainmask_valid(privcmd->param_value, in wma_process_cli_set_cmd()
1334 pdev_param.param_id = privcmd->param_id; in wma_process_cli_set_cmd()
1335 pdev_param.param_value = privcmd->param_value; in wma_process_cli_set_cmd()
1336 if (privcmd->param_id == wmi_pdev_param_twt_ac_config) in wma_process_cli_set_cmd()
1341 privcmd->param_sec_value); in wma_process_cli_set_cmd()
1353 wma_debug("gen pid %d pval %d", privcmd->param_id, in wma_process_cli_set_cmd()
1354 privcmd->param_value); in wma_process_cli_set_cmd()
1356 switch (privcmd->param_id) { in wma_process_cli_set_cmd()
1364 if (privcmd->param_id == GEN_VDEV_PARAM_AMPDU) { in wma_process_cli_set_cmd()
1365 ret = cdp_aggr_cfg(soc, privcmd->param_vdev_id, in wma_process_cli_set_cmd()
1366 privcmd->param_value, 0); in wma_process_cli_set_cmd()
1371 intr[privcmd->param_vdev_id].config. in wma_process_cli_set_cmd()
1372 ampdu = privcmd->param_value; in wma_process_cli_set_cmd()
1381 ret = wma_set_per_link_amsdu_cap(wma, privcmd, in wma_process_cli_set_cmd()
1388 privcmd->param_value, in wma_process_cli_set_cmd()
1389 privcmd->param_value, in wma_process_cli_set_cmd()
1403 privcmd->param_value, in wma_process_cli_set_cmd()
1404 privcmd->param_sec_value); in wma_process_cli_set_cmd()
1407 ret = wma_capture_tsf(wma, privcmd->param_value); in wma_process_cli_set_cmd()
1410 ret = wma_reset_tsf_gpio(wma, privcmd->param_value); in wma_process_cli_set_cmd()
1414 privcmd->param_vdev_id, in wma_process_cli_set_cmd()
1415 privcmd->param_id, in wma_process_cli_set_cmd()
1416 privcmd->param_value); in wma_process_cli_set_cmd()
1419 privcmd->param_id); in wma_process_cli_set_cmd()
1425 wma_debug("dbg pid %d pval %d", privcmd->param_id, in wma_process_cli_set_cmd()
1426 privcmd->param_value); in wma_process_cli_set_cmd()
1427 switch (privcmd->param_id) { in wma_process_cli_set_cmd()
1430 privcmd->param_value); in wma_process_cli_set_cmd()
1437 privcmd->param_value, true); in wma_process_cli_set_cmd()
1444 privcmd->param_value, false); in wma_process_cli_set_cmd()
1451 privcmd->param_value, true); in wma_process_cli_set_cmd()
1458 privcmd->param_value, false); in wma_process_cli_set_cmd()
1465 privcmd->param_value); in wma_process_cli_set_cmd()
1472 privcmd->param_value); in wma_process_cli_set_cmd()
1479 privcmd->param_value); in wma_process_cli_set_cmd()
1486 privcmd->param_value); in wma_process_cli_set_cmd()
1494 privcmd->param_value, 0); in wma_process_cli_set_cmd()
1502 privcmd->param_value, in wma_process_cli_set_cmd()
1503 privcmd->param_sec_value); in wma_process_cli_set_cmd()
1512 privcmd->param_value, in wma_process_cli_set_cmd()
1513 privcmd->param_sec_value); in wma_process_cli_set_cmd()
1540 (wma->wmi_handle, privcmd->param_value, in wma_process_cli_set_cmd()
1544 privcmd->param_value); in wma_process_cli_set_cmd()
1549 wma_err("Invalid param id 0x%x", privcmd->param_id); in wma_process_cli_set_cmd()
1554 wma_debug("dbg pid %d pval %d", privcmd->param_id, in wma_process_cli_set_cmd()
1555 privcmd->param_value); in wma_process_cli_set_cmd()
1556 switch (privcmd->param_id) { in wma_process_cli_set_cmd()
1559 pps_val = ((privcmd->param_value << 31) & 0xffff0000) | in wma_process_cli_set_cmd()
1562 privcmd->param_value; in wma_process_cli_set_cmd()
1565 pps_val = ((privcmd->param_value << 31) & 0xffff0000) | in wma_process_cli_set_cmd()
1568 privcmd->param_value; in wma_process_cli_set_cmd()
1571 pps_val = ((privcmd->param_value << 31) & 0xffff0000) | in wma_process_cli_set_cmd()
1574 privcmd->param_value; in wma_process_cli_set_cmd()
1577 pps_val = ((privcmd->param_value << 31) & 0xffff0000) | in wma_process_cli_set_cmd()
1580 privcmd->param_value; in wma_process_cli_set_cmd()
1583 pps_val = ((privcmd->param_value << 31) & 0xffff0000) | in wma_process_cli_set_cmd()
1586 privcmd->param_value; in wma_process_cli_set_cmd()
1589 pps_val = ((privcmd->param_value << 31) & 0xffff0000) | in wma_process_cli_set_cmd()
1592 privcmd->param_value; in wma_process_cli_set_cmd()
1595 pps_val = ((privcmd->param_value << 31) & 0xffff0000) | in wma_process_cli_set_cmd()
1598 privcmd->param_value; in wma_process_cli_set_cmd()
1601 pps_val = ((privcmd->param_value << 31) & 0xffff0000) | in wma_process_cli_set_cmd()
1604 privcmd->param_value; in wma_process_cli_set_cmd()
1607 pps_val = ((privcmd->param_value << 31) & 0xffff0000) | in wma_process_cli_set_cmd()
1610 privcmd->param_value; in wma_process_cli_set_cmd()
1613 pps_val = ((privcmd->param_value << 31) & 0xffff0000) | in wma_process_cli_set_cmd()
1616 privcmd->param_value; in wma_process_cli_set_cmd()
1619 wma_err("Invalid param id 0x%x", privcmd->param_id); in wma_process_cli_set_cmd()
1625 wma_debug("QPOWER CLI CMD pid %d pval %d", privcmd->param_id, in wma_process_cli_set_cmd()
1626 privcmd->param_value); in wma_process_cli_set_cmd()
1627 switch (privcmd->param_id) { in wma_process_cli_set_cmd()
1630 privcmd->param_value); in wma_process_cli_set_cmd()
1634 privcmd->param_value); in wma_process_cli_set_cmd()
1637 vid, privcmd->param_value); in wma_process_cli_set_cmd()
1639 qparams->max_ps_poll_cnt = privcmd->param_value; in wma_process_cli_set_cmd()
1644 privcmd->param_value); in wma_process_cli_set_cmd()
1648 privcmd->param_value); in wma_process_cli_set_cmd()
1651 vid, privcmd->param_value); in wma_process_cli_set_cmd()
1654 privcmd->param_value; in wma_process_cli_set_cmd()
1659 privcmd->param_value); in wma_process_cli_set_cmd()
1663 privcmd->param_value); in wma_process_cli_set_cmd()
1666 vid, privcmd->param_value); in wma_process_cli_set_cmd()
1669 privcmd->param_value; in wma_process_cli_set_cmd()
1674 privcmd->param_value); in wma_process_cli_set_cmd()
1678 privcmd->param_value); in wma_process_cli_set_cmd()
1681 vid, privcmd->param_value); in wma_process_cli_set_cmd()
1684 privcmd->param_value; in wma_process_cli_set_cmd()
1689 wma_err("Invalid param id 0x%x", privcmd->param_id); in wma_process_cli_set_cmd()
1694 wma_debug("vdev id %d pid %d pval %d", privcmd->param_vdev_id, in wma_process_cli_set_cmd()
1695 privcmd->param_id, privcmd->param_value); in wma_process_cli_set_cmd()
1696 switch (privcmd->param_id) { in wma_process_cli_set_cmd()
1699 privcmd->param_value; in wma_process_cli_set_cmd()
1701 privcmd->param_vdev_id, in wma_process_cli_set_cmd()
1706 privcmd->param_value; in wma_process_cli_set_cmd()
1708 privcmd->param_vdev_id, in wma_process_cli_set_cmd()
1714 privcmd->param_value; in wma_process_cli_set_cmd()
1716 privcmd->param_vdev_id, in wma_process_cli_set_cmd()
1722 privcmd->param_value; in wma_process_cli_set_cmd()
1724 privcmd->param_vdev_id, in wma_process_cli_set_cmd()
1730 privcmd->param_value; in wma_process_cli_set_cmd()
1732 privcmd->param_vdev_id, in wma_process_cli_set_cmd()
1738 privcmd->param_value; in wma_process_cli_set_cmd()
1740 privcmd->param_vdev_id, in wma_process_cli_set_cmd()
1746 privcmd->param_value; in wma_process_cli_set_cmd()
1748 privcmd->param_vdev_id, in wma_process_cli_set_cmd()
1754 privcmd->param_value; in wma_process_cli_set_cmd()
1756 privcmd->param_vdev_id, in wma_process_cli_set_cmd()
1772 if (1 == privcmd->param_vp_dev) { in wma_process_cli_set_cmd()
1773 switch (privcmd->param_id) { in wma_process_cli_set_cmd()
1775 intr[vid].config.nss = privcmd->param_value; in wma_process_cli_set_cmd()
1778 intr[vid].config.ldpc = privcmd->param_value; in wma_process_cli_set_cmd()
1781 intr[vid].config.tx_stbc = privcmd->param_value; in wma_process_cli_set_cmd()
1784 intr[vid].config.rx_stbc = privcmd->param_value; in wma_process_cli_set_cmd()
1787 intr[vid].config.shortgi = privcmd->param_value; in wma_process_cli_set_cmd()
1790 intr[vid].config.rtscts_en = privcmd->param_value; in wma_process_cli_set_cmd()
1793 intr[vid].config.chwidth = privcmd->param_value; in wma_process_cli_set_cmd()
1796 intr[vid].config.tx_rate = privcmd->param_value; in wma_process_cli_set_cmd()
1799 intr[vid].config.erx_adjust = privcmd->param_value; in wma_process_cli_set_cmd()
1802 intr[vid].config.erx_bmiss_num = privcmd->param_value; in wma_process_cli_set_cmd()
1805 intr[vid].config.erx_bmiss_cycle = privcmd->param_value; in wma_process_cli_set_cmd()
1808 intr[vid].config.erx_slop_step = privcmd->param_value; in wma_process_cli_set_cmd()
1811 intr[vid].config.erx_init_slop = privcmd->param_value; in wma_process_cli_set_cmd()
1814 intr[vid].config.erx_adj_pause = privcmd->param_value; in wma_process_cli_set_cmd()
1817 intr[vid].config.erx_dri_sample = privcmd->param_value; in wma_process_cli_set_cmd()
1821 wma_set_he_vdev_param(&intr[vid], privcmd->param_id, in wma_process_cli_set_cmd()
1822 privcmd->param_value); in wma_process_cli_set_cmd()
1826 privcmd->param_id); in wma_process_cli_set_cmd()
1829 } else if (2 == privcmd->param_vp_dev) { in wma_process_cli_set_cmd()
1830 switch (privcmd->param_id) { in wma_process_cli_set_cmd()
1832 wma->pdevconfig.ani_enable = privcmd->param_value; in wma_process_cli_set_cmd()
1835 wma->pdevconfig.ani_poll_len = privcmd->param_value; in wma_process_cli_set_cmd()
1838 wma->pdevconfig.ani_listen_len = privcmd->param_value; in wma_process_cli_set_cmd()
1841 wma->pdevconfig.ani_ofdm_level = privcmd->param_value; in wma_process_cli_set_cmd()
1844 wma->pdevconfig.ani_cck_level = privcmd->param_value; in wma_process_cli_set_cmd()
1847 wma->pdevconfig.cwmenable = privcmd->param_value; in wma_process_cli_set_cmd()
1850 wma->pdevconfig.cts_cbw = privcmd->param_value; in wma_process_cli_set_cmd()
1853 wma->pdevconfig.txchainmask = privcmd->param_value; in wma_process_cli_set_cmd()
1856 wma->pdevconfig.rxchainmask = privcmd->param_value; in wma_process_cli_set_cmd()
1859 wma->pdevconfig.txpow2g = privcmd->param_value; in wma_process_cli_set_cmd()
1862 (uint8_t)privcmd->param_value; in wma_process_cli_set_cmd()
1867 wma->pdevconfig.txpow5g = privcmd->param_value; in wma_process_cli_set_cmd()
1870 (uint8_t)privcmd->param_value; in wma_process_cli_set_cmd()
1876 privcmd->param_id); in wma_process_cli_set_cmd()
1879 } else if (5 == privcmd->param_vp_dev) { in wma_process_cli_set_cmd()
1881 privcmd->param_vdev_id, in wma_process_cli_set_cmd()
1888 privcmd->param_id, pps_val); in wma_process_cli_set_cmd()