|
@@ -6163,709 +6163,604 @@ QDF_STATUS hdd_hex_string_to_u16_array(char *str,
|
|
|
|
|
|
/**
|
|
|
* hdd_update_ht_cap_in_cfg() - to update HT cap in global CFG
|
|
|
- * @pHddCtx: pointer to hdd context
|
|
|
+ * @hdd_ctx: pointer to hdd context
|
|
|
*
|
|
|
* This API will update the HT config in CFG after taking intersection
|
|
|
* of INI and firmware capabilities provided reading CFG
|
|
|
*
|
|
|
* Return: true or false
|
|
|
*/
|
|
|
-static bool hdd_update_ht_cap_in_cfg(hdd_context_t *pHddCtx)
|
|
|
+static bool hdd_update_ht_cap_in_cfg(hdd_context_t *hdd_ctx)
|
|
|
{
|
|
|
- bool fStatus = true;
|
|
|
+ bool status = true;
|
|
|
uint32_t val;
|
|
|
uint16_t val16;
|
|
|
- struct hdd_config *pConfig = pHddCtx->config;
|
|
|
- tSirMacHTCapabilityInfo *phtCapInfo;
|
|
|
+ struct hdd_config *config = hdd_ctx->config;
|
|
|
+ tSirMacHTCapabilityInfo *ht_cap_info;
|
|
|
|
|
|
- if (sme_cfg_get_int(pHddCtx->hHal, WNI_CFG_HT_CAP_INFO,
|
|
|
+ if (sme_cfg_get_int(hdd_ctx->hHal, WNI_CFG_HT_CAP_INFO,
|
|
|
&val) ==
|
|
|
QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hdd_err("Could not pass on WNI_CFG_HT_CAP_INFO to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_HT_CAP_INFO to CFG");
|
|
|
}
|
|
|
- if (pConfig->ShortGI20MhzEnable)
|
|
|
+ if (config->ShortGI20MhzEnable)
|
|
|
val |= HT_CAPS_SHORT_GI20;
|
|
|
else
|
|
|
val &= ~(HT_CAPS_SHORT_GI20);
|
|
|
|
|
|
- if (pConfig->ShortGI40MhzEnable)
|
|
|
+ if (config->ShortGI40MhzEnable)
|
|
|
val |= HT_CAPS_SHORT_GI40;
|
|
|
else
|
|
|
val &= ~(HT_CAPS_SHORT_GI40);
|
|
|
|
|
|
- if (sme_cfg_set_int(pHddCtx->hHal, WNI_CFG_HT_CAP_INFO,
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_HT_CAP_INFO,
|
|
|
val) ==
|
|
|
QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hdd_err("Could not pass on WNI_CFG_HT_CAP_INFO to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_HT_CAP_INFO to CFG");
|
|
|
}
|
|
|
- sme_cfg_get_int(pHddCtx->hHal, WNI_CFG_HT_CAP_INFO, &val);
|
|
|
+ sme_cfg_get_int(hdd_ctx->hHal, WNI_CFG_HT_CAP_INFO, &val);
|
|
|
val16 = (uint16_t) val;
|
|
|
- phtCapInfo = (tSirMacHTCapabilityInfo *) &val16;
|
|
|
- phtCapInfo->rxSTBC = pConfig->enableRxSTBC;
|
|
|
- phtCapInfo->advCodingCap = pConfig->enableRxLDPC;
|
|
|
+ ht_cap_info = (tSirMacHTCapabilityInfo *) &val16;
|
|
|
+ ht_cap_info->rxSTBC = config->enableRxSTBC;
|
|
|
+ ht_cap_info->advCodingCap = config->enableRxLDPC;
|
|
|
val = val16;
|
|
|
- if (sme_cfg_set_int(pHddCtx->hHal, WNI_CFG_HT_CAP_INFO, val)
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_HT_CAP_INFO, val)
|
|
|
== QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE, "Could not pass on WNI_CFG_HT_CAP_INFO to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_HT_CAP_INFO to CFG");
|
|
|
}
|
|
|
|
|
|
- return fStatus;
|
|
|
+ return status;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* hdd_update_vht_cap_in_cfg() - to update VHT cap in global CFG
|
|
|
- * @pHddctx: pointer to hdd context
|
|
|
+ * @hdd_ctx: pointer to hdd context
|
|
|
*
|
|
|
* This API will update the VHT config in CFG after taking intersection
|
|
|
* of INI and firmware capabilities provided reading CFG
|
|
|
*
|
|
|
* Return: true or false
|
|
|
*/
|
|
|
-static bool hdd_update_vht_cap_in_cfg(hdd_context_t *pHddCtx)
|
|
|
+static bool hdd_update_vht_cap_in_cfg(hdd_context_t *hdd_ctx)
|
|
|
{
|
|
|
- bool fStatus = true;
|
|
|
+ bool status = true;
|
|
|
uint32_t val;
|
|
|
- struct hdd_config *pConfig = pHddCtx->config;
|
|
|
+ struct hdd_config *config = hdd_ctx->config;
|
|
|
|
|
|
- if (sme_cfg_set_int(pHddCtx->hHal, WNI_CFG_VHT_ENABLE_TXBF_20MHZ,
|
|
|
- pConfig->enableTxBFin20MHz) ==
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_VHT_ENABLE_TXBF_20MHZ,
|
|
|
+ config->enableTxBFin20MHz) ==
|
|
|
QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not set value for WNI_CFG_VHT_ENABLE_TXBF_20MHZ");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't set value for WNI_CFG_VHT_ENABLE_TXBF_20MHZ");
|
|
|
}
|
|
|
/* Based on cfg.ini, update the Basic MCS set, RX/TX MCS map
|
|
|
* in the cfg.dat. Valid values are 0(MCS0-7), 1(MCS0-8), 2(MCS0-9)
|
|
|
* we update only the least significant 2 bits in the
|
|
|
* corresponding fields.
|
|
|
*/
|
|
|
- if ((pConfig->dot11Mode == eHDD_DOT11_MODE_AUTO) ||
|
|
|
- (pConfig->dot11Mode == eHDD_DOT11_MODE_11ac_ONLY) ||
|
|
|
- (pConfig->dot11Mode == eHDD_DOT11_MODE_11ac)) {
|
|
|
+ if ((config->dot11Mode == eHDD_DOT11_MODE_AUTO) ||
|
|
|
+ (config->dot11Mode == eHDD_DOT11_MODE_11ac_ONLY) ||
|
|
|
+ (config->dot11Mode == eHDD_DOT11_MODE_11ac)) {
|
|
|
/* Currently shortGI40Mhz is used for shortGI80Mhz */
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_VHT_SHORT_GI_80MHZ,
|
|
|
- pConfig->ShortGI40MhzEnable) ==
|
|
|
- QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass WNI_VHT_SHORT_GI_80MHZ to CFG");
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_VHT_SHORT_GI_80MHZ,
|
|
|
+ config->ShortGI40MhzEnable) == QDF_STATUS_E_FAILURE) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass WNI_VHT_SHORT_GI_80MHZ to CFG");
|
|
|
}
|
|
|
/* Hardware is capable of doing
|
|
|
* 128K AMPDU in 11AC mode */
|
|
|
- if (sme_cfg_set_int(pHddCtx->hHal,
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal,
|
|
|
WNI_CFG_VHT_AMPDU_LEN_EXPONENT,
|
|
|
- pConfig->fVhtAmpduLenExponent) ==
|
|
|
+ config->fVhtAmpduLenExponent) ==
|
|
|
QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_VHT_AMPDU_LEN_EXPONENT to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_VHT_AMPDU_LEN_EXPONENT to CFG");
|
|
|
}
|
|
|
/* Change MU Bformee only when TxBF is enabled */
|
|
|
- if (pConfig->enableTxBF) {
|
|
|
- sme_cfg_get_int(pHddCtx->hHal,
|
|
|
+ if (config->enableTxBF) {
|
|
|
+ sme_cfg_get_int(hdd_ctx->hHal,
|
|
|
WNI_CFG_VHT_MU_BEAMFORMEE_CAP, &val);
|
|
|
|
|
|
- if (val != pConfig->enableMuBformee) {
|
|
|
- if (sme_cfg_set_int(pHddCtx->hHal,
|
|
|
+ if (val != config->enableMuBformee) {
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal,
|
|
|
WNI_CFG_VHT_MU_BEAMFORMEE_CAP,
|
|
|
- pConfig->enableMuBformee
|
|
|
+ config->enableMuBformee
|
|
|
) == QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_VHT_MU_BEAMFORMEE_CAP to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_VHT_MU_BEAMFORMEE_CAP to CFG");
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- if (sme_cfg_set_int(pHddCtx->hHal, WNI_CFG_VHT_MAX_MPDU_LENGTH,
|
|
|
- pConfig->vhtMpduLen) == QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_VHT_MAX_MPDU_LENGTH to CFG");
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_VHT_MAX_MPDU_LENGTH,
|
|
|
+ config->vhtMpduLen) == QDF_STATUS_E_FAILURE) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_VHT_MAX_MPDU_LENGTH to CFG");
|
|
|
}
|
|
|
|
|
|
- if (pConfig->enable2x2 && pConfig->enable_su_tx_bformer) {
|
|
|
- if (sme_cfg_set_int(pHddCtx->hHal,
|
|
|
+ if (config->enable2x2 && config->enable_su_tx_bformer) {
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal,
|
|
|
WNI_CFG_VHT_SU_BEAMFORMER_CAP,
|
|
|
- pConfig->enable_su_tx_bformer) ==
|
|
|
+ config->enable_su_tx_bformer) ==
|
|
|
QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
+ status = false;
|
|
|
hdd_err("set SU_BEAMFORMER_CAP to CFG failed");
|
|
|
}
|
|
|
- if (sme_cfg_set_int(pHddCtx->hHal,
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal,
|
|
|
WNI_CFG_VHT_NUM_SOUNDING_DIMENSIONS,
|
|
|
NUM_OF_SOUNDING_DIMENSIONS) ==
|
|
|
QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
+ status = false;
|
|
|
hdd_err("failed to set NUM_OF_SOUNDING_DIM");
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int(pHddCtx->hHal, WNI_CFG_VHT_RXSTBC,
|
|
|
- pConfig->enableRxSTBC) == QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE, "Could not pass on WNI_CFG_VHT_RXSTBC to CFG");
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_VHT_RXSTBC,
|
|
|
+ config->enableRxSTBC) == QDF_STATUS_E_FAILURE) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_VHT_RXSTBC to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int(pHddCtx->hHal, WNI_CFG_VHT_TXSTBC,
|
|
|
- pConfig->enableTxSTBC) == QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE, "Could not pass on WNI_CFG_VHT_TXSTBC to CFG");
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_VHT_TXSTBC,
|
|
|
+ config->enableTxSTBC) == QDF_STATUS_E_FAILURE) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_VHT_TXSTBC to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int(pHddCtx->hHal, WNI_CFG_VHT_LDPC_CODING_CAP,
|
|
|
- pConfig->enableRxLDPC) == QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_VHT_LDPC_CODING_CAP to CFG");
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_VHT_LDPC_CODING_CAP,
|
|
|
+ config->enableRxLDPC) == QDF_STATUS_E_FAILURE) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_VHT_LDPC_CODING_CAP to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int(pHddCtx->hHal,
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal,
|
|
|
WNI_CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED,
|
|
|
- pConfig->txBFCsnValue) ==
|
|
|
+ config->txBFCsnValue) ==
|
|
|
QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_VHT_CSN_BEAMFORMEE_ANT_SUPPORTED to CFG");
|
|
|
}
|
|
|
- return fStatus;
|
|
|
+ return status;
|
|
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * hdd_update_config_dat() - scan the string and convery to u8 array
|
|
|
- * @str: the pointer to the string
|
|
|
- * @intArray: the pointer of buffer to store the u8 value
|
|
|
- * @len: size of the buffer
|
|
|
+ * hdd_update_config_cfg() - API to update INI setting based on hw/fw caps
|
|
|
+ * @hdd_ctx: pointer to hdd_ctx
|
|
|
*
|
|
|
- * Return: QDF_STATUS_SUCCESS if the configuration could be updated corectly,
|
|
|
- * otherwise QDF_STATUS_E_INVAL
|
|
|
+ * This API reads the cfg file which is updated with hardware/firmware
|
|
|
+ * capabilities and intersect it with INI setting provided by user. After
|
|
|
+ * taking intersection it adjust cfg it self. For example, if user has enabled
|
|
|
+ * RX LDPC through INI but hardware/firmware doesn't support it then disable
|
|
|
+ * it in CFG file here.
|
|
|
+ *
|
|
|
+ * Return: true or false based on outcome.
|
|
|
*/
|
|
|
-bool hdd_update_config_dat(hdd_context_t *pHddCtx)
|
|
|
+bool hdd_update_config_cfg(hdd_context_t *hdd_ctx)
|
|
|
{
|
|
|
- bool fStatus = true;
|
|
|
+ bool status = true;
|
|
|
uint32_t val;
|
|
|
- struct hdd_config *pConfig = pHddCtx->config;
|
|
|
+ struct hdd_config *config = hdd_ctx->config;
|
|
|
|
|
|
/*
|
|
|
* During the initialization both 2G and 5G capabilities should be same.
|
|
|
* So read 5G HT capablity and update 2G and 5G capablities.
|
|
|
*/
|
|
|
- if (!hdd_update_ht_cap_in_cfg(pHddCtx)) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE, "Could not set HT CAP in cfg");
|
|
|
+ if (!hdd_update_ht_cap_in_cfg(hdd_ctx)) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't set HT CAP in cfg");
|
|
|
}
|
|
|
|
|
|
- if (!hdd_update_vht_cap_in_cfg(pHddCtx)) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE, "Could not set VHT CAP in cfg");
|
|
|
+ if (!hdd_update_vht_cap_in_cfg(hdd_ctx)) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't set VHT CAP in cfg");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int(pHddCtx->hHal, WNI_CFG_FIXED_RATE, pConfig->TxRate)
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_FIXED_RATE, config->TxRate)
|
|
|
== QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE, "Could not pass on WNI_CFG_FIXED_RATE to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_FIXED_RATE to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int(pHddCtx->hHal, WNI_CFG_MAX_RX_AMPDU_FACTOR,
|
|
|
- pConfig->MaxRxAmpduFactor) ==
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_MAX_RX_AMPDU_FACTOR,
|
|
|
+ config->MaxRxAmpduFactor) ==
|
|
|
QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_HT_AMPDU_PARAMS_MAX_RX_AMPDU_FACTOR to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_HT_AMPDU_PARAMS_MAX_RX_AMPDU_FACTOR to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int(pHddCtx->hHal, WNI_CFG_MPDU_DENSITY,
|
|
|
- pConfig->ht_mpdu_density) ==
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_MPDU_DENSITY,
|
|
|
+ config->ht_mpdu_density) ==
|
|
|
QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_MPDU_DENSITY to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_MPDU_DENSITY to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_SHORT_PREAMBLE,
|
|
|
- pConfig->fIsShortPreamble) == QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_SHORT_PREAMBLE to CFG");
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_SHORT_PREAMBLE,
|
|
|
+ config->fIsShortPreamble) == QDF_STATUS_E_FAILURE) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_SHORT_PREAMBLE to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int(pHddCtx->hHal,
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal,
|
|
|
WNI_CFG_PASSIVE_MINIMUM_CHANNEL_TIME,
|
|
|
- pConfig->nPassiveMinChnTime)
|
|
|
+ config->nPassiveMinChnTime)
|
|
|
== QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_PASSIVE_MINIMUM_CHANNEL_TIME"
|
|
|
- " to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_PASSIVE_MINIMUM_CHANNEL_TIME to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int(pHddCtx->hHal,
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal,
|
|
|
WNI_CFG_PASSIVE_MAXIMUM_CHANNEL_TIME,
|
|
|
- pConfig->nPassiveMaxChnTime)
|
|
|
+ config->nPassiveMaxChnTime)
|
|
|
== QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_PASSIVE_MAXIMUM_CHANNEL_TIME"
|
|
|
- " to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_PASSIVE_MAXIMUM_CHANNEL_TIME to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_BEACON_INTERVAL,
|
|
|
- pConfig->nBeaconInterval) == QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_BEACON_INTERVAL to CFG");
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_BEACON_INTERVAL,
|
|
|
+ config->nBeaconInterval) == QDF_STATUS_E_FAILURE) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_BEACON_INTERVAL to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_MAX_PS_POLL,
|
|
|
- pConfig->nMaxPsPoll) == QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE, "Could not pass on WNI_CFG_MAX_PS_POLL to CFG");
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_MAX_PS_POLL,
|
|
|
+ config->nMaxPsPoll) == QDF_STATUS_E_FAILURE) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_MAX_PS_POLL to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int (pHddCtx->hHal, WNI_CFG_LOW_GAIN_OVERRIDE,
|
|
|
- pConfig->fIsLowGainOverride) == QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_LOW_GAIN_OVERRIDE to HAL");
|
|
|
+ if (sme_cfg_set_int (hdd_ctx->hHal, WNI_CFG_LOW_GAIN_OVERRIDE,
|
|
|
+ config->fIsLowGainOverride) == QDF_STATUS_E_FAILURE) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_LOW_GAIN_OVERRIDE to HAL");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_RSSI_FILTER_PERIOD,
|
|
|
- pConfig->nRssiFilterPeriod) == QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_RSSI_FILTER_PERIOD to CFG");
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_RSSI_FILTER_PERIOD,
|
|
|
+ config->nRssiFilterPeriod) == QDF_STATUS_E_FAILURE) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_RSSI_FILTER_PERIOD to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_IGNORE_DTIM,
|
|
|
- pConfig->fIgnoreDtim) == QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_IGNORE_DTIM to CFG");
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_IGNORE_DTIM,
|
|
|
+ config->fIgnoreDtim) == QDF_STATUS_E_FAILURE) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_IGNORE_DTIM to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_PS_ENABLE_HEART_BEAT,
|
|
|
- pConfig->fEnableFwHeartBeatMonitoring)
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_PS_ENABLE_HEART_BEAT,
|
|
|
+ config->fEnableFwHeartBeatMonitoring)
|
|
|
== QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_PS_HEART_BEAT to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_PS_HEART_BEAT to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_PS_ENABLE_BCN_FILTER,
|
|
|
- pConfig->fEnableFwBeaconFiltering) ==
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_PS_ENABLE_BCN_FILTER,
|
|
|
+ config->fEnableFwBeaconFiltering) ==
|
|
|
QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_PS_BCN_FILTER to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_PS_BCN_FILTER to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_PS_ENABLE_RSSI_MONITOR,
|
|
|
- pConfig->fEnableFwRssiMonitoring) ==
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_PS_ENABLE_RSSI_MONITOR,
|
|
|
+ config->fEnableFwRssiMonitoring) ==
|
|
|
QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_PS_RSSI_MONITOR to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_PS_RSSI_MONITOR to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_PS_DATA_INACTIVITY_TIMEOUT,
|
|
|
- pConfig->nDataInactivityTimeout) == QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_PS_DATA_INACTIVITY_TIMEOUT to CFG");
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_PS_DATA_INACTIVITY_TIMEOUT,
|
|
|
+ config->nDataInactivityTimeout) == QDF_STATUS_E_FAILURE) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_PS_DATA_INACTIVITY_TIMEOUT to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_ENABLE_LTE_COEX,
|
|
|
- pConfig->enableLTECoex) == QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_ENABLE_LTE_COEX to CFG");
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_ENABLE_LTE_COEX,
|
|
|
+ config->enableLTECoex) == QDF_STATUS_E_FAILURE) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_ENABLE_LTE_COEX to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_AP_KEEP_ALIVE_TIMEOUT,
|
|
|
- pConfig->apKeepAlivePeriod) == QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_AP_KEEP_ALIVE_TIMEOUT to CFG");
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_AP_KEEP_ALIVE_TIMEOUT,
|
|
|
+ config->apKeepAlivePeriod) == QDF_STATUS_E_FAILURE) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_AP_KEEP_ALIVE_TIMEOUT to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_GO_KEEP_ALIVE_TIMEOUT,
|
|
|
- pConfig->goKeepAlivePeriod) == QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_GO_KEEP_ALIVE_TIMEOUT to CFG");
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_GO_KEEP_ALIVE_TIMEOUT,
|
|
|
+ config->goKeepAlivePeriod) == QDF_STATUS_E_FAILURE) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_GO_KEEP_ALIVE_TIMEOUT to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_AP_LINK_MONITOR_TIMEOUT,
|
|
|
- pConfig->apLinkMonitorPeriod) == QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_AP_LINK_MONITOR_TIMEOUT to CFG");
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_AP_LINK_MONITOR_TIMEOUT,
|
|
|
+ config->apLinkMonitorPeriod) == QDF_STATUS_E_FAILURE) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_AP_LINK_MONITOR_TIMEOUT to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_GO_LINK_MONITOR_TIMEOUT,
|
|
|
- pConfig->goLinkMonitorPeriod) == QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_GO_LINK_MONITOR_TIMEOUT to CFG");
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_GO_LINK_MONITOR_TIMEOUT,
|
|
|
+ config->goLinkMonitorPeriod) == QDF_STATUS_E_FAILURE) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_GO_LINK_MONITOR_TIMEOUT to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_MCAST_BCAST_FILTER_SETTING,
|
|
|
- pConfig->mcastBcastFilterSetting) == QDF_STATUS_E_FAILURE)
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_MCAST_BCAST_FILTER_SETTING to CFG");
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_MCAST_BCAST_FILTER_SETTING,
|
|
|
+ config->mcastBcastFilterSetting) == QDF_STATUS_E_FAILURE)
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_MCAST_BCAST_FILTER_SETTING to CFG");
|
|
|
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_SINGLE_TID_RC,
|
|
|
- pConfig->bSingleTidRc) == QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_SINGLE_TID_RC to CFG");
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_SINGLE_TID_RC,
|
|
|
+ config->bSingleTidRc) == QDF_STATUS_E_FAILURE) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_SINGLE_TID_RC to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_TELE_BCN_WAKEUP_EN,
|
|
|
- pConfig->teleBcnWakeupEn) == QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_TELE_BCN_WAKEUP_EN to CFG");
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_TELE_BCN_WAKEUP_EN,
|
|
|
+ config->teleBcnWakeupEn) == QDF_STATUS_E_FAILURE) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_TELE_BCN_WAKEUP_EN to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_TELE_BCN_TRANS_LI,
|
|
|
- pConfig->nTeleBcnTransListenInterval) ==
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_TELE_BCN_TRANS_LI,
|
|
|
+ config->nTeleBcnTransListenInterval) ==
|
|
|
QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_TELE_BCN_TRANS_LI to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_TELE_BCN_TRANS_LI to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_TELE_BCN_MAX_LI,
|
|
|
- pConfig->nTeleBcnMaxListenInterval) ==
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_TELE_BCN_MAX_LI,
|
|
|
+ config->nTeleBcnMaxListenInterval) ==
|
|
|
QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_TELE_BCN_MAX_LI to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_TELE_BCN_MAX_LI to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_TELE_BCN_TRANS_LI_IDLE_BCNS,
|
|
|
- pConfig->nTeleBcnTransLiNumIdleBeacons) ==
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_TELE_BCN_TRANS_LI_IDLE_BCNS,
|
|
|
+ config->nTeleBcnTransLiNumIdleBeacons) ==
|
|
|
QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_TELE_BCN_TRANS_LI_IDLE_BCNS to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_TELE_BCN_TRANS_LI_IDLE_BCNS to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_TELE_BCN_MAX_LI_IDLE_BCNS,
|
|
|
- pConfig->nTeleBcnMaxLiNumIdleBeacons) ==
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_TELE_BCN_MAX_LI_IDLE_BCNS,
|
|
|
+ config->nTeleBcnMaxLiNumIdleBeacons) ==
|
|
|
QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_TELE_BCN_MAX_LI_IDLE_BCNS to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_TELE_BCN_MAX_LI_IDLE_BCNS to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_RF_SETTLING_TIME_CLK,
|
|
|
- pConfig->rfSettlingTimeUs) == QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_RF_SETTLING_TIME_CLK to CFG");
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_RF_SETTLING_TIME_CLK,
|
|
|
+ config->rfSettlingTimeUs) == QDF_STATUS_E_FAILURE) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_RF_SETTLING_TIME_CLK to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_INFRA_STA_KEEP_ALIVE_PERIOD,
|
|
|
- pConfig->infraStaKeepAlivePeriod) ==
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_INFRA_STA_KEEP_ALIVE_PERIOD,
|
|
|
+ config->infraStaKeepAlivePeriod) ==
|
|
|
QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_INFRA_STA_KEEP_ALIVE_PERIOD to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_INFRA_STA_KEEP_ALIVE_PERIOD to CFG");
|
|
|
}
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_DYNAMIC_PS_POLL_VALUE,
|
|
|
- pConfig->dynamicPsPollValue) == QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_DYNAMIC_PS_POLL_VALUE to CFG");
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_DYNAMIC_PS_POLL_VALUE,
|
|
|
+ config->dynamicPsPollValue) == QDF_STATUS_E_FAILURE) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_DYNAMIC_PS_POLL_VALUE to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_PS_NULLDATA_AP_RESP_TIMEOUT,
|
|
|
- pConfig->nNullDataApRespTimeout) == QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_PS_NULLDATA_DELAY_TIMEOUT to CFG");
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_PS_NULLDATA_AP_RESP_TIMEOUT,
|
|
|
+ config->nNullDataApRespTimeout) == QDF_STATUS_E_FAILURE) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_PS_NULLDATA_DELAY_TIMEOUT to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_AP_DATA_AVAIL_POLL_PERIOD,
|
|
|
- pConfig->apDataAvailPollPeriodInMs) ==
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_AP_DATA_AVAIL_POLL_PERIOD,
|
|
|
+ config->apDataAvailPollPeriodInMs) ==
|
|
|
QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_AP_DATA_AVAIL_POLL_PERIOD to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_AP_DATA_AVAIL_POLL_PERIOD to CFG");
|
|
|
}
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_FRAGMENTATION_THRESHOLD,
|
|
|
- pConfig->FragmentationThreshold) == QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_FRAGMENTATION_THRESHOLD to CFG");
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_FRAGMENTATION_THRESHOLD,
|
|
|
+ config->FragmentationThreshold) == QDF_STATUS_E_FAILURE) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_FRAGMENTATION_THRESHOLD to CFG");
|
|
|
}
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_RTS_THRESHOLD,
|
|
|
- pConfig->RTSThreshold) == QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_RTS_THRESHOLD to CFG");
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_RTS_THRESHOLD,
|
|
|
+ config->RTSThreshold) == QDF_STATUS_E_FAILURE) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_RTS_THRESHOLD to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_11D_ENABLED,
|
|
|
- pConfig->Is11dSupportEnabled) == QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_11D_ENABLED to CFG");
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_11D_ENABLED,
|
|
|
+ config->Is11dSupportEnabled) == QDF_STATUS_E_FAILURE) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_11D_ENABLED to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int(pHddCtx->hHal, WNI_CFG_DFS_MASTER_ENABLED,
|
|
|
- pConfig->enableDFSMasterCap) ==
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_DFS_MASTER_ENABLED,
|
|
|
+ config->enableDFSMasterCap) ==
|
|
|
QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Failure: Could not set value for WNI_CFG_DFS_MASTER_ENABLED");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Failure: Couldn't set value for WNI_CFG_DFS_MASTER_ENABLED");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_HEART_BEAT_THRESHOLD,
|
|
|
- pConfig->HeartbeatThresh24) == QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_HEART_BEAT_THRESHOLD to CFG");
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_HEART_BEAT_THRESHOLD,
|
|
|
+ config->HeartbeatThresh24) == QDF_STATUS_E_FAILURE) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_HEART_BEAT_THRESHOLD to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_AP_DATA_AVAIL_POLL_PERIOD,
|
|
|
- pConfig->apDataAvailPollPeriodInMs) ==
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_AP_DATA_AVAIL_POLL_PERIOD,
|
|
|
+ config->apDataAvailPollPeriodInMs) ==
|
|
|
QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_AP_DATA_AVAIL_POLL_PERIOD to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_AP_DATA_AVAIL_POLL_PERIOD to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_ENABLE_MC_ADDR_LIST,
|
|
|
- pConfig->fEnableMCAddrList) == QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_ENABLE_MC_ADDR_LIST to CFG");
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_ENABLE_MC_ADDR_LIST,
|
|
|
+ config->fEnableMCAddrList) == QDF_STATUS_E_FAILURE) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_ENABLE_MC_ADDR_LIST to CFG");
|
|
|
}
|
|
|
|
|
|
#ifdef WLAN_SOFTAP_VSTA_FEATURE
|
|
|
- if (pConfig->fEnableVSTASupport) {
|
|
|
- sme_cfg_get_int(pHddCtx->hHal, WNI_CFG_ASSOC_STA_LIMIT, &val);
|
|
|
+ if (config->fEnableVSTASupport) {
|
|
|
+ sme_cfg_get_int(hdd_ctx->hHal, WNI_CFG_ASSOC_STA_LIMIT, &val);
|
|
|
if (val <= WNI_CFG_ASSOC_STA_LIMIT_STADEF)
|
|
|
val = WNI_CFG_ASSOC_STA_LIMIT_STAMAX;
|
|
|
} else {
|
|
|
- val = pConfig->maxNumberOfPeers;
|
|
|
+ val = config->maxNumberOfPeers;
|
|
|
|
|
|
}
|
|
|
- if (sme_cfg_set_int(pHddCtx->hHal, WNI_CFG_ASSOC_STA_LIMIT, val) ==
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_ASSOC_STA_LIMIT, val) ==
|
|
|
QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_ASSOC_STA_LIMIT to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_ASSOC_STA_LIMIT to CFG");
|
|
|
}
|
|
|
#endif
|
|
|
- if (sme_cfg_set_int(pHddCtx->hHal, WNI_CFG_ENABLE_LPWR_IMG_TRANSITION,
|
|
|
- pConfig->enableLpwrImgTransition)
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_ENABLE_LPWR_IMG_TRANSITION,
|
|
|
+ config->enableLpwrImgTransition)
|
|
|
== QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_ENABLE_LPWR_IMG_TRANSITION to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_ENABLE_LPWR_IMG_TRANSITION to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_ENABLE_MCC_ADAPTIVE_SCHED,
|
|
|
- pConfig->enableMCCAdaptiveScheduler) ==
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_ENABLE_MCC_ADAPTIVE_SCHED,
|
|
|
+ config->enableMCCAdaptiveScheduler) ==
|
|
|
QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_ENABLE_MCC_ADAPTIVE_SCHED to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_ENABLE_MCC_ADAPTIVE_SCHED to CFG");
|
|
|
}
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_DISABLE_LDPC_WITH_TXBF_AP,
|
|
|
- pConfig->disableLDPCWithTxbfAP) == QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_DISABLE_LDPC_WITH_TXBF_AP to CFG");
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_DISABLE_LDPC_WITH_TXBF_AP,
|
|
|
+ config->disableLDPCWithTxbfAP) == QDF_STATUS_E_FAILURE) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_DISABLE_LDPC_WITH_TXBF_AP to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_DYNAMIC_THRESHOLD_ZERO,
|
|
|
- pConfig->retryLimitZero) == QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_DYNAMIC_THRESHOLD_ZERO to CFG");
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_DYNAMIC_THRESHOLD_ZERO,
|
|
|
+ config->retryLimitZero) == QDF_STATUS_E_FAILURE) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_DYNAMIC_THRESHOLD_ZERO to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_DYNAMIC_THRESHOLD_ONE,
|
|
|
- pConfig->retryLimitOne) == QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_DYNAMIC_THRESHOLD_ONE to CFG");
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_DYNAMIC_THRESHOLD_ONE,
|
|
|
+ config->retryLimitOne) == QDF_STATUS_E_FAILURE) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_DYNAMIC_THRESHOLD_ONE to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_DYNAMIC_THRESHOLD_TWO,
|
|
|
- pConfig->retryLimitTwo) == QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_DYNAMIC_THRESHOLD_TWO to CFG");
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_DYNAMIC_THRESHOLD_TWO,
|
|
|
+ config->retryLimitTwo) == QDF_STATUS_E_FAILURE) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_DYNAMIC_THRESHOLD_TWO to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int
|
|
|
- (pHddCtx->hHal, WNI_CFG_MAX_MEDIUM_TIME,
|
|
|
- pConfig->cfgMaxMediumTime) == QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_MAX_MEDIUM_TIME to CFG");
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_MAX_MEDIUM_TIME,
|
|
|
+ config->cfgMaxMediumTime) == QDF_STATUS_E_FAILURE) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_MAX_MEDIUM_TIME to CFG");
|
|
|
}
|
|
|
#ifdef FEATURE_WLAN_TDLS
|
|
|
|
|
|
- if (sme_cfg_set_int(pHddCtx->hHal, WNI_CFG_TDLS_QOS_WMM_UAPSD_MASK,
|
|
|
- pConfig->fTDLSUapsdMask) == QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_TDLS_QOS_WMM_UAPSD_MASK to CFG");
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_TDLS_QOS_WMM_UAPSD_MASK,
|
|
|
+ config->fTDLSUapsdMask) == QDF_STATUS_E_FAILURE) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_TDLS_QOS_WMM_UAPSD_MASK to CFG");
|
|
|
}
|
|
|
- if (sme_cfg_set_int(pHddCtx->hHal, WNI_CFG_TDLS_BUF_STA_ENABLED,
|
|
|
- pConfig->fEnableTDLSBufferSta) ==
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_TDLS_BUF_STA_ENABLED,
|
|
|
+ config->fEnableTDLSBufferSta) ==
|
|
|
QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_TDLS_BUF_STA_ENABLED to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_TDLS_BUF_STA_ENABLED to CFG");
|
|
|
}
|
|
|
- if (sme_cfg_set_int(pHddCtx->hHal, WNI_CFG_TDLS_PUAPSD_INACT_TIME,
|
|
|
- pConfig->fTDLSPuapsdInactivityTimer) ==
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_TDLS_PUAPSD_INACT_TIME,
|
|
|
+ config->fTDLSPuapsdInactivityTimer) ==
|
|
|
QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_TDLS_PUAPSD_INACT_TIME to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_TDLS_PUAPSD_INACT_TIME to CFG");
|
|
|
}
|
|
|
- if (sme_cfg_set_int(pHddCtx->hHal, WNI_CFG_TDLS_RX_FRAME_THRESHOLD,
|
|
|
- pConfig->fTDLSRxFrameThreshold) ==
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_TDLS_RX_FRAME_THRESHOLD,
|
|
|
+ config->fTDLSRxFrameThreshold) ==
|
|
|
QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_TDLS_RX_FRAME_THRESHOLD to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_TDLS_RX_FRAME_THRESHOLD to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int(pHddCtx->hHal, WNI_CFG_TDLS_OFF_CHANNEL_ENABLED,
|
|
|
- pConfig->fEnableTDLSOffChannel) ==
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_TDLS_OFF_CHANNEL_ENABLED,
|
|
|
+ config->fEnableTDLSOffChannel) ==
|
|
|
QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_TDLS_BUF_STA_ENABLED to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_TDLS_BUF_STA_ENABLED to CFG");
|
|
|
}
|
|
|
- if (sme_cfg_set_int(pHddCtx->hHal, WNI_CFG_TDLS_WMM_MODE_ENABLED,
|
|
|
- pConfig->fEnableTDLSWmmMode) ==
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_TDLS_WMM_MODE_ENABLED,
|
|
|
+ config->fEnableTDLSWmmMode) ==
|
|
|
QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_TDLS_WMM_MODE_ENABLED to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_TDLS_WMM_MODE_ENABLED to CFG");
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
- if (sme_cfg_set_int(pHddCtx->hHal, WNI_CFG_ENABLE_ADAPT_RX_DRAIN,
|
|
|
- pConfig->fEnableAdaptRxDrain) ==
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_ENABLE_ADAPT_RX_DRAIN,
|
|
|
+ config->fEnableAdaptRxDrain) ==
|
|
|
QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_ENABLE_ADAPT_RX_DRAIN to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_ENABLE_ADAPT_RX_DRAIN to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int(pHddCtx->hHal, WNI_CFG_ANTENNA_DIVESITY,
|
|
|
- pConfig->antennaDiversity) ==
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_ANTENNA_DIVESITY,
|
|
|
+ config->antennaDiversity) ==
|
|
|
QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_ANTENNA_DIVESITY to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_ANTENNA_DIVESITY to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int(pHddCtx->hHal,
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal,
|
|
|
WNI_CFG_DEFAULT_RATE_INDEX_24GHZ,
|
|
|
- pConfig->defaultRateIndex24Ghz) ==
|
|
|
+ config->defaultRateIndex24Ghz) ==
|
|
|
QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_DEFAULT_RATE_INDEX_24GHZ to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_DEFAULT_RATE_INDEX_24GHZ to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int(pHddCtx->hHal,
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal,
|
|
|
WNI_CFG_DEBUG_P2P_REMAIN_ON_CHANNEL,
|
|
|
- pConfig->debugP2pRemainOnChannel) ==
|
|
|
+ config->debugP2pRemainOnChannel) ==
|
|
|
QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_DEBUG_P2P_REMAIN_ON_CHANNEL to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_DEBUG_P2P_REMAIN_ON_CHANNEL to CFG");
|
|
|
}
|
|
|
#ifdef WLAN_FEATURE_11W
|
|
|
- if (sme_cfg_set_int(pHddCtx->hHal, WNI_CFG_PMF_SA_QUERY_MAX_RETRIES,
|
|
|
- pConfig->pmfSaQueryMaxRetries) ==
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_PMF_SA_QUERY_MAX_RETRIES,
|
|
|
+ config->pmfSaQueryMaxRetries) ==
|
|
|
QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_SA_QUERY_MAX_RETRIES to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_SA_QUERY_MAX_RETRIES to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int(pHddCtx->hHal, WNI_CFG_PMF_SA_QUERY_RETRY_INTERVAL,
|
|
|
- pConfig->pmfSaQueryRetryInterval) ==
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_PMF_SA_QUERY_RETRY_INTERVAL,
|
|
|
+ config->pmfSaQueryRetryInterval) ==
|
|
|
QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_SA_QUERY_RETRY_INTERVAL to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_SA_QUERY_RETRY_INTERVAL to CFG");
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
- if (sme_cfg_set_int(pHddCtx->hHal, WNI_CFG_IBSS_ATIM_WIN_SIZE,
|
|
|
- pConfig->ibssATIMWinSize) ==
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_IBSS_ATIM_WIN_SIZE,
|
|
|
+ config->ibssATIMWinSize) ==
|
|
|
QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_IBSS_ATIM_WIN_SIZE to CFG");
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_IBSS_ATIM_WIN_SIZE to CFG");
|
|
|
}
|
|
|
|
|
|
- if (sme_cfg_set_int(pHddCtx->hHal, WNI_CFG_TGT_GTX_USR_CFG,
|
|
|
- pConfig->tgt_gtx_usr_cfg) == QDF_STATUS_E_FAILURE) {
|
|
|
- fStatus = false;
|
|
|
- hddLog(LOGE,
|
|
|
- "Could not pass on WNI_CFG_TGT_GTX_USR_CFG to CCM");
|
|
|
+ if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_TGT_GTX_USR_CFG,
|
|
|
+ config->tgt_gtx_usr_cfg) == QDF_STATUS_E_FAILURE) {
|
|
|
+ status = false;
|
|
|
+ hdd_err("Couldn't pass on WNI_CFG_TGT_GTX_USR_CFG to CCM");
|
|
|
}
|
|
|
- return fStatus;
|
|
|
+ return status;
|
|
|
}
|
|
|
#ifdef FEATURE_WLAN_SCAN_PNO
|
|
|
/**
|