qcacld-3.0: Set the TxBF CBF frame rate with NSTS setting

Set the TxBF CBF frame rates to FW with user NSTS configuration
setting.

Change-Id: I553c253bddb695f5c61d889cd7ef57694d00954f
CRs-Fixed: 2281265
Este commit está contenido en:
Kiran Kumar Lokere
2018-07-18 15:34:24 -07:00
cometido por nshrivas
padre 43cb55c5cf
commit 86e855955c
Se han modificado 2 ficheros con 33 adiciones y 0 borrados

Ver fichero

@@ -2418,6 +2418,15 @@ int sme_update_he_tx_bfee_supp(tHalHandle hal, uint8_t session_id,
*/ */
int sme_update_he_tx_bfee_nsts(mac_handle_t hal, uint8_t session_id, int sme_update_he_tx_bfee_nsts(mac_handle_t hal, uint8_t session_id,
uint8_t cfg_val); uint8_t cfg_val);
/**
* sme_set_he_tx_bf_cbf_rates() - sets the HE Tx Bfee CBF frame rates to FW
* @session_id: SME session id
*
* Return: None
*/
void sme_set_he_tx_bf_cbf_rates(uint8_t session_id);
/** /**
* sme_update_he_mcs() - sets the HE MCS based on user request * sme_update_he_mcs() - sets the HE MCS based on user request
* @hal: Pointer to HAL * @hal: Pointer to HAL
@@ -2572,6 +2581,10 @@ static inline int sme_update_he_tx_bfee_nsts(mac_handle_t hal, uint8_t session_i
{ {
return 0; return 0;
} }
static inline void sme_set_he_tx_bf_cbf_rates(uint8_t session_id)
{
}
#endif #endif
/** /**

Ver fichero

@@ -12699,6 +12699,9 @@ int sme_update_tx_bfee_nsts(mac_handle_t hal, uint8_t session_id,
return -EFAULT; return -EFAULT;
} }
if (usr_cfg_val)
sme_set_he_tx_bf_cbf_rates(session_id);
return sme_update_he_tx_bfee_nsts(hal, session_id, nsts_set_val); return sme_update_he_tx_bfee_nsts(hal, session_id, nsts_set_val);
} }
#ifdef WLAN_FEATURE_11AX #ifdef WLAN_FEATURE_11AX
@@ -12883,6 +12886,23 @@ int sme_update_he_tx_bfee_nsts(mac_handle_t hal, uint8_t session_id,
cfg_val); cfg_val);
} }
void sme_set_he_tx_bf_cbf_rates(uint8_t session_id)
{
uint32_t tx_bf_cbf_rates_5g[] = {91, 1, 0, 3, 2, 4, 0};
uint32_t tx_bf_cbf_rates_2g[] = {91, 1, 1, 3, 1, 3, 0};
QDF_STATUS status;
status = wma_form_unit_test_cmd_and_send(session_id, 0x48, 7,
tx_bf_cbf_rates_5g);
if (QDF_STATUS_SUCCESS != status)
sme_err("send_unit_test_cmd returned %d", status);
status = wma_form_unit_test_cmd_and_send(session_id, 0x48, 7,
tx_bf_cbf_rates_2g);
if (QDF_STATUS_SUCCESS != status)
sme_err("send_unit_test_cmd returned %d", status);
}
int sme_update_he_tx_stbc_cap(tHalHandle hal, uint8_t session_id, int value) int sme_update_he_tx_stbc_cap(tHalHandle hal, uint8_t session_id, int value)
{ {
int ret; int ret;