qcacld-3.0: Fix csr_api_scan.c function style issues
Many of the function signatures in csr_api_scan.c do not conform to the coding style, so make them conforming. Change-Id: I50a46c2227b639af652b4e21d3a84d62140fce2c CRs-Fixed: 2361755
This commit is contained in:
@@ -67,8 +67,8 @@ static void csr_purge_channel_power(struct mac_context *mac,
|
|||||||
static bool csr_roam_is_valid_channel(struct mac_context *mac, uint8_t channel);
|
static bool csr_roam_is_valid_channel(struct mac_context *mac, uint8_t channel);
|
||||||
|
|
||||||
/* pResult is invalid calling this function. */
|
/* pResult is invalid calling this function. */
|
||||||
void csr_free_scan_result_entry(struct mac_context *mac, struct tag_csrscan_result
|
void csr_free_scan_result_entry(struct mac_context *mac,
|
||||||
*pResult)
|
struct tag_csrscan_result *pResult)
|
||||||
{
|
{
|
||||||
if (NULL != pResult->Result.pvIes)
|
if (NULL != pResult->Result.pvIes)
|
||||||
qdf_mem_free(pResult->Result.pvIes);
|
qdf_mem_free(pResult->Result.pvIes);
|
||||||
@@ -113,6 +113,7 @@ QDF_STATUS csr_scan_close(struct mac_context *mac)
|
|||||||
ucfg_scan_set_enable(mac->psoc, false);
|
ucfg_scan_set_enable(mac->psoc, false);
|
||||||
return QDF_STATUS_SUCCESS;
|
return QDF_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
QDF_STATUS csr_scan_handle_search_for_ssid(struct mac_context *mac_ctx,
|
QDF_STATUS csr_scan_handle_search_for_ssid(struct mac_context *mac_ctx,
|
||||||
uint32_t session_id)
|
uint32_t session_id)
|
||||||
{
|
{
|
||||||
@@ -461,8 +462,7 @@ static bool csr_scan_flush_denied(struct mac_context *mac)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static bool csr_scan_save_bss_description(struct mac_context *mac,
|
static bool csr_scan_save_bss_description(struct mac_context *mac,
|
||||||
tSirBssDescription *
|
tSirBssDescription *pBSSDescription)
|
||||||
pBSSDescription)
|
|
||||||
{
|
{
|
||||||
struct tag_csrscan_result *pCsrBssDescription = NULL;
|
struct tag_csrscan_result *pCsrBssDescription = NULL;
|
||||||
uint32_t cbBSSDesc;
|
uint32_t cbBSSDesc;
|
||||||
@@ -498,12 +498,11 @@ static bool csr_scan_save_bss_description(struct mac_context *mac,
|
|||||||
bool csr_scan_append_bss_description(struct mac_context *mac,
|
bool csr_scan_append_bss_description(struct mac_context *mac,
|
||||||
tSirBssDescription *pSirBssDescription)
|
tSirBssDescription *pSirBssDescription)
|
||||||
{
|
{
|
||||||
return csr_scan_save_bss_description(mac,
|
return csr_scan_save_bss_description(mac, pSirBssDescription);
|
||||||
pSirBssDescription);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void csr_purge_channel_power(struct mac_context *mac, tDblLinkList
|
static void csr_purge_channel_power(struct mac_context *mac,
|
||||||
*pChannelList)
|
tDblLinkList *pChannelList)
|
||||||
{
|
{
|
||||||
struct csr_channel_powerinfo *pChannelSet;
|
struct csr_channel_powerinfo *pChannelSet;
|
||||||
tListElem *pEntry;
|
tListElem *pEntry;
|
||||||
@@ -748,7 +747,8 @@ void csr_clear_votes_for_country_info(struct mac_context *mac)
|
|||||||
/* caller allocated memory for pNumChn and pChnPowerInfo */
|
/* caller allocated memory for pNumChn and pChnPowerInfo */
|
||||||
/* As input, *pNumChn has the size of the array of pChnPowerInfo */
|
/* As input, *pNumChn has the size of the array of pChnPowerInfo */
|
||||||
/* Upon return, *pNumChn has the number of channels assigned. */
|
/* Upon return, *pNumChn has the number of channels assigned. */
|
||||||
static void csr_get_channel_power_info(struct mac_context *mac, tDblLinkList *list,
|
static void csr_get_channel_power_info(struct mac_context *mac,
|
||||||
|
tDblLinkList *list,
|
||||||
uint32_t *num_ch,
|
uint32_t *num_ch,
|
||||||
struct channel_power *chn_pwr_info)
|
struct channel_power *chn_pwr_info)
|
||||||
{
|
{
|
||||||
@@ -996,8 +996,8 @@ free_ie:
|
|||||||
return fRet;
|
return fRet;
|
||||||
}
|
}
|
||||||
|
|
||||||
static enum csr_scancomplete_nextcommand csr_scan_get_next_command_state(
|
static enum csr_scancomplete_nextcommand
|
||||||
struct mac_context *mac_ctx,
|
csr_scan_get_next_command_state(struct mac_context *mac_ctx,
|
||||||
uint32_t session_id,
|
uint32_t session_id,
|
||||||
eCsrScanStatus scan_status,
|
eCsrScanStatus scan_status,
|
||||||
uint8_t *chan)
|
uint8_t *chan)
|
||||||
@@ -1559,7 +1559,8 @@ error:
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void csr_set_cfg_valid_channel_list(struct mac_context *mac,
|
static void csr_set_cfg_valid_channel_list(struct mac_context *mac,
|
||||||
uint8_t *pChannelList, uint8_t NumChannels)
|
uint8_t *pChannelList,
|
||||||
|
uint8_t NumChannels)
|
||||||
{
|
{
|
||||||
uint32_t dataLen = sizeof(uint8_t) * NumChannels;
|
uint32_t dataLen = sizeof(uint8_t) * NumChannels;
|
||||||
QDF_STATUS status;
|
QDF_STATUS status;
|
||||||
@@ -1690,7 +1691,8 @@ static void csr_save_tx_power_to_cfg(struct mac_context *pMac,
|
|||||||
qdf_mem_free(p_buf);
|
qdf_mem_free(p_buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void csr_set_cfg_country_code(struct mac_context *mac, uint8_t *countryCode)
|
static void csr_set_cfg_country_code(struct mac_context *mac,
|
||||||
|
uint8_t *countryCode)
|
||||||
{
|
{
|
||||||
uint8_t cc[WNI_CFG_COUNTRY_CODE_LEN];
|
uint8_t cc[WNI_CFG_COUNTRY_CODE_LEN];
|
||||||
/* v_REGDOMAIN_t DomainId */
|
/* v_REGDOMAIN_t DomainId */
|
||||||
@@ -1740,7 +1742,8 @@ QDF_STATUS csr_get_country_code(struct mac_context *mac, uint8_t *pBuf,
|
|||||||
return QDF_STATUS_E_INVAL;
|
return QDF_STATUS_E_INVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void csr_set_cfg_scan_control_list(struct mac_context *mac, uint8_t *countryCode,
|
void csr_set_cfg_scan_control_list(struct mac_context *mac,
|
||||||
|
uint8_t *countryCode,
|
||||||
struct csr_channel *pChannelList)
|
struct csr_channel *pChannelList)
|
||||||
{
|
{
|
||||||
uint8_t i, j;
|
uint8_t i, j;
|
||||||
@@ -1784,7 +1787,8 @@ void csr_set_cfg_scan_control_list(struct mac_context *mac, uint8_t *countryCode
|
|||||||
} /* AllocateMemory */
|
} /* AllocateMemory */
|
||||||
}
|
}
|
||||||
|
|
||||||
QDF_STATUS csr_scan_abort_mac_scan(struct mac_context *mac_ctx, uint32_t vdev_id,
|
QDF_STATUS csr_scan_abort_mac_scan(struct mac_context *mac_ctx,
|
||||||
|
uint32_t vdev_id,
|
||||||
uint32_t scan_id)
|
uint32_t scan_id)
|
||||||
{
|
{
|
||||||
struct scan_cancel_request *req;
|
struct scan_cancel_request *req;
|
||||||
@@ -1877,6 +1881,7 @@ QDF_STATUS csr_remove_nonscan_cmd_from_pending_list(struct mac_context *mac,
|
|||||||
csr_ll_close(&localList);
|
csr_ll_close(&localList);
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool csr_roam_is_valid_channel(struct mac_context *mac, uint8_t channel)
|
bool csr_roam_is_valid_channel(struct mac_context *mac, uint8_t channel)
|
||||||
{
|
{
|
||||||
bool fValid = false;
|
bool fValid = false;
|
||||||
@@ -1991,6 +1996,7 @@ QDF_STATUS csr_scan_save_roam_offload_ap_to_scan_cache(struct mac_context *mac,
|
|||||||
return QDF_STATUS_SUCCESS;
|
return QDF_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* csr_get_fst_bssdescr_ptr() - This function returns the pointer to first bss
|
* csr_get_fst_bssdescr_ptr() - This function returns the pointer to first bss
|
||||||
* description from scan handle
|
* description from scan handle
|
||||||
@@ -2162,8 +2168,8 @@ end:
|
|||||||
}
|
}
|
||||||
|
|
||||||
uint8_t
|
uint8_t
|
||||||
csr_scan_get_channel_for_hw_mode_change(
|
csr_scan_get_channel_for_hw_mode_change(struct mac_context *mac_ctx,
|
||||||
struct mac_context *mac_ctx, uint32_t session_id,
|
uint32_t session_id,
|
||||||
struct csr_roam_profile *profile)
|
struct csr_roam_profile *profile)
|
||||||
{
|
{
|
||||||
tScanResultHandle result_handle = NULL;
|
tScanResultHandle result_handle = NULL;
|
||||||
@@ -2471,7 +2477,8 @@ static enum wlan_phymode csr_convert_dotllmod_phymode(eCsrPhyMode dotllmode)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static QDF_STATUS csr_prepare_scan_filter(struct mac_context *mac_ctx,
|
static QDF_STATUS csr_prepare_scan_filter(struct mac_context *mac_ctx,
|
||||||
tCsrScanResultFilter *pFilter, struct scan_filter *filter)
|
tCsrScanResultFilter *pFilter,
|
||||||
|
struct scan_filter *filter)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
uint32_t len = 0;
|
uint32_t len = 0;
|
||||||
|
Reference in New Issue
Block a user