qcacld-3.0: Replace typedef tSirSmeWmStatusChangeNtf
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 tSirSmeWmStatusChangeNtf
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: Iab453ae756ce6c54d1ddbdcbad6caea3ecc21336
CRs-Fixed: 2395003
diff --git a/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c b/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c
index 5badfca..58f4077 100644
--- a/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c
+++ b/core/mac/src/pe/lim/lim_send_sme_rsp_messages.c
@@ -1294,10 +1294,10 @@
uint32_t *status_change_info, uint16_t info_len, uint8_t session_id)
{
struct scheduler_msg msg = {0};
- tSirSmeWmStatusChangeNtf *wm_status_change_ntf;
+ struct wm_status_change_ntf *wm_status_change_ntf;
uint32_t max_info_len;
- wm_status_change_ntf = qdf_mem_malloc(sizeof(tSirSmeWmStatusChangeNtf));
+ wm_status_change_ntf = qdf_mem_malloc(sizeof(*wm_status_change_ntf));
if (!wm_status_change_ntf)
return;
@@ -1324,7 +1324,7 @@
wm_status_change_ntf->messageType =
eWNI_SME_WM_STATUS_CHANGE_NTF;
wm_status_change_ntf->statusChangeCode = status_change_code;
- wm_status_change_ntf->length = sizeof(tSirSmeWmStatusChangeNtf);
+ wm_status_change_ntf->length = sizeof(*wm_status_change_ntf);
wm_status_change_ntf->sessionId = session_id;
if (info_len <= max_info_len && status_change_info) {
qdf_mem_copy(