qcacld-3.0: Replace typedef tSirRoamOffloadScanRsp

The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The tSirRoamOffloadScanRsp typedef
does not meet any of those criteria, so replace it (and the "tp"
variant) with a reference to the underlying struct.

Further note the Linux Coding Style frowns upon mixed-case names and
so-called Hungarian notation, so in conjunction rename the underlying
struct to be in compliance.

Change-Id: I8c9a3680d7b78e99fecd64d8dee095b28a502ce1
CRs-Fixed: 2396067
This commit is contained in:
Jeff Johnson 2019-02-06 22:36:42 -08:00 • committed by nshrivas
commit d686ba7411
4 changed files with 8 additions and 8 deletions

View file

@ -2347,10 +2347,10 @@ struct roam_offload_scan_req {
struct wmi_bss_load_config bss_load_config;
};
typedef struct sSirRoamOffloadScanRsp {
struct roam_offload_scan_rsp {
uint8_t sessionId;
uint32_t reason;
} tSirRoamOffloadScanRsp, *tpSirRoamOffloadScanRsp;
};
/*---------------------------------------------------------------------------
Packet Filtering Parameters

View file

@ -1009,11 +1009,11 @@ QDF_STATUS csr_add_to_channel_list_front(uint8_t *pChannelList,
uint8_t channel);
#if defined(WLAN_FEATURE_HOST_ROAM) || defined(WLAN_FEATURE_ROAM_OFFLOAD)
QDF_STATUS csr_roam_offload_scan_rsp_hdlr(struct mac_context *mac,
tpSirRoamOffloadScanRsp scanOffloadRsp);
struct roam_offload_scan_rsp *scanOffloadRsp);
#else
static inline QDF_STATUS csr_roam_offload_scan_rsp_hdlr(
struct mac_context *mac,
tpSirRoamOffloadScanRsp scanOffloadRsp)
struct roam_offload_scan_rsp *scanOffloadRsp)
{
return QDF_STATUS_E_NOSUPPORT;
}

View file

@ -18929,9 +18929,9 @@ csr_roam_offload_scan(struct mac_context *mac_ctx, uint8_t session_id,
return status;
}
QDF_STATUS csr_roam_offload_scan_rsp_hdlr(struct mac_context *mac,
tpSirRoamOffloadScanRsp
scanOffloadRsp)
QDF_STATUS
csr_roam_offload_scan_rsp_hdlr(struct mac_context *mac,
struct roam_offload_scan_rsp *scanOffloadRsp)
{
switch (scanOffloadRsp->reason) {
case 0:

View file

@ -1788,7 +1788,7 @@ QDF_STATUS wma_process_roaming_config(tp_wma_handle wma_handle,
if (roam_req->reason ==
REASON_OS_REQUESTED_ROAMING_NOW) {
struct scheduler_msg cds_msg = {0};
tSirRoamOffloadScanRsp *scan_offload_rsp;
struct roam_offload_scan_rsp *scan_offload_rsp;
scan_offload_rsp =
qdf_mem_malloc(sizeof(*scan_offload_rsp));