diff options
| author | Amar Singhal <asinghal@qca.qualcomm.com> | 2015-03-30 15:41:45 -0700 |
|---|---|---|
| committer | AnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com> | 2015-04-01 15:11:15 +0530 |
| commit | e2eec5d4608bbcf090403ad3dfd35a419907f910 (patch) | |
| tree | 2edb57f1f88405ae801ec4f8ac0ae89cfd55b011 | |
| parent | 9616a508c26837510dcc27a67a16da7bd4c206f3 (diff) | |
qcacld-2.0: Add iwpriv support for WMI_PDEV_PARAM_CTS_CBW
Add iwpriv support for WMI_PDEV_PARAM_CTS_BW
Change-Id: I53890e11251ae2cfb4b04a87da423ef68932665d
CRs-Fixed: 815410
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_wext.c | 15 | ||||
| -rw-r--r-- | CORE/SERVICES/WMA/wma.c | 6 | ||||
| -rw-r--r-- | CORE/SERVICES/WMA/wma.h | 1 |
3 files changed, 22 insertions, 0 deletions
diff --git a/CORE/HDD/src/wlan_hdd_wext.c b/CORE/HDD/src/wlan_hdd_wext.c index e3390fa36b75..b198f53887c6 100644 --- a/CORE/HDD/src/wlan_hdd_wext.c +++ b/CORE/HDD/src/wlan_hdd_wext.c @@ -239,6 +239,7 @@ static const hdd_freq_chan_map_t freq_chan_map[] = { {2412, 1}, {2417, 2}, #define WE_SET_EARLY_RX_DRIFT_SAMPLE 82 /* Private ioctl for packet power save */ #define WE_PPS_5G_EBT 83 +#define WE_SET_CTS_CBW 84 /* Private ioctls and their sub-ioctls */ #define WLAN_PRIV_SET_NONE_GET_INT (SIOCIWFIRSTPRIV + 1) @@ -5880,6 +5881,15 @@ static int __iw_setint_getnone(struct net_device *dev, break; } + case WE_SET_CTS_CBW: + { + hddLog(LOG1, "WE_SET_CTS_CBW val %d", set_value); + ret = process_wma_set_command((int)pAdapter->sessionId, + (int)WMI_PDEV_PARAM_CTS_CBW, + set_value, PDEV_CMD); + break; + } + case WE_SET_11N_RATE: { u_int8_t preamble = 0, nss = 0, rix = 0; @@ -10487,6 +10497,11 @@ static const struct iw_priv_args we_private_args[] = { 0, "cwmenable" }, + { WE_SET_CTS_CBW, + IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 1, + 0, + "cts_cbw" }, + { WE_SET_GTX_HT_MCS, IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 1, 0, diff --git a/CORE/SERVICES/WMA/wma.c b/CORE/SERVICES/WMA/wma.c index bae68b77e6ec..6fa478adb867 100644 --- a/CORE/SERVICES/WMA/wma.c +++ b/CORE/SERVICES/WMA/wma.c @@ -12500,6 +12500,9 @@ static void wma_process_cli_set_cmd(tp_wma_handle wma, case WMI_PDEV_PARAM_DYNAMIC_BW: wma->pdevconfig.cwmenable = privcmd->param_value; break; + case WMI_PDEV_PARAM_CTS_CBW: + wma->pdevconfig.cts_cbw = privcmd->param_value; + break; case WMI_PDEV_PARAM_TX_CHAIN_MASK: wma->pdevconfig.txchainmask = privcmd->param_value; break; @@ -12664,6 +12667,9 @@ int wma_cli_get_command(void *wmapvosContext, int vdev_id, case WMI_PDEV_PARAM_DYNAMIC_BW: ret = wma->pdevconfig.cwmenable; break; + case WMI_PDEV_PARAM_CTS_CBW: + ret = wma->pdevconfig.cts_cbw; + break; case WMI_PDEV_PARAM_TX_CHAIN_MASK: ret = wma->pdevconfig.txchainmask; break; diff --git a/CORE/SERVICES/WMA/wma.h b/CORE/SERVICES/WMA/wma.h index a419219322c3..07320e182e8c 100644 --- a/CORE/SERVICES/WMA/wma.h +++ b/CORE/SERVICES/WMA/wma.h @@ -380,6 +380,7 @@ typedef struct { u_int32_t ani_ofdm_level; u_int32_t ani_cck_level; u_int32_t cwmenable; + u_int32_t cts_cbw; u_int32_t txchainmask; u_int32_t rxchainmask; u_int32_t txpow2g; |
