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:
Jeff Johnson
2018-12-05 08:48:54 -08:00
committed by nshrivas
parent 70fa7bb88d
commit 8c3ecdd8d8

View File

@@ -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);
/* pResult is invalid calling this function. */
void csr_free_scan_result_entry(struct mac_context *mac, struct tag_csrscan_result
*pResult)
void csr_free_scan_result_entry(struct mac_context *mac,
struct tag_csrscan_result *pResult)
{
if (NULL != 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);
return QDF_STATUS_SUCCESS;
}
QDF_STATUS csr_scan_handle_search_for_ssid(struct mac_context *mac_ctx,
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,
tSirBssDescription *
pBSSDescription)
tSirBssDescription *pBSSDescription)
{
struct tag_csrscan_result *pCsrBssDescription = NULL;
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,
tSirBssDescription *pSirBssDescription)
{
return csr_scan_save_bss_description(mac,
pSirBssDescription);
return csr_scan_save_bss_description(mac, pSirBssDescription);
}
static void csr_purge_channel_power(struct mac_context *mac, tDblLinkList
*pChannelList)
static void csr_purge_channel_power(struct mac_context *mac,
tDblLinkList *pChannelList)
{
struct csr_channel_powerinfo *pChannelSet;
tListElem *pEntry;
@@ -748,7 +747,8 @@ void csr_clear_votes_for_country_info(struct mac_context *mac)
/* caller allocated memory for pNumChn and pChnPowerInfo */
/* As input, *pNumChn has the size of the array of pChnPowerInfo */
/* 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,
struct channel_power *chn_pwr_info)
{
@@ -996,8 +996,8 @@ free_ie:
return fRet;
}
static enum csr_scancomplete_nextcommand csr_scan_get_next_command_state(
struct mac_context *mac_ctx,
static enum csr_scancomplete_nextcommand
csr_scan_get_next_command_state(struct mac_context *mac_ctx,
uint32_t session_id,
eCsrScanStatus scan_status,
uint8_t *chan)
@@ -1559,7 +1559,8 @@ error:
}
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;
QDF_STATUS status;
@@ -1690,7 +1691,8 @@ static void csr_save_tx_power_to_cfg(struct mac_context *pMac,
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];
/* 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;
}
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)
{
uint8_t i, j;
@@ -1784,7 +1787,8 @@ void csr_set_cfg_scan_control_list(struct mac_context *mac, uint8_t *countryCode
} /* 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)
{
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);
return status;
}
bool csr_roam_is_valid_channel(struct mac_context *mac, uint8_t channel)
{
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;
}
#endif
/**
* csr_get_fst_bssdescr_ptr() - This function returns the pointer to first bss
* description from scan handle
@@ -2037,7 +2043,7 @@ tpSirBssDescription csr_get_fst_bssdescr_ptr(tScanResultHandle result_handle)
*
* Return: first bss descriptor from the scan handle.
*/
tSirBssDescription*
tSirBssDescription *
csr_get_bssdescr_from_scan_handle(tScanResultHandle result_handle,
tSirBssDescription *bss_descr)
{
@@ -2162,8 +2168,8 @@ end:
}
uint8_t
csr_scan_get_channel_for_hw_mode_change(
struct mac_context *mac_ctx, uint32_t session_id,
csr_scan_get_channel_for_hw_mode_change(struct mac_context *mac_ctx,
uint32_t session_id,
struct csr_roam_profile *profile)
{
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,
tCsrScanResultFilter *pFilter, struct scan_filter *filter)
tCsrScanResultFilter *pFilter,
struct scan_filter *filter)
{
int i;
uint32_t len = 0;