qcacld-3.0: Fix 80 columns issue introduced in tSirMsgQ clean up
Fix code exceeding 80 columns introduced after replacing tSirMsgQ
message types in mac with converged scheduler apis.
Change-Id: I8fe87318fd913d6fa8dbabdb7ebfaa96fd57d959
CRs-Fixed: 1114457
diff --git a/core/mac/src/pe/include/lim_admit_control.h b/core/mac/src/pe/include/lim_admit_control.h
index 5e364f8..c25c088 100644
--- a/core/mac/src/pe/include/lim_admit_control.h
+++ b/core/mac/src/pe/include/lim_admit_control.h
@@ -101,6 +101,7 @@
uint8_t tspecIdx,
tSirDeltsReqInfo delts,
uint8_t sessionId, uint8_t *bssId);
-void lim_process_hal_add_ts_rsp(tpAniSirGlobal pMac, struct scheduler_msg *limMsg);
+void lim_process_hal_add_ts_rsp(tpAniSirGlobal pMac,
+ struct scheduler_msg *limMsg);
#endif
diff --git a/core/mac/src/pe/include/lim_api.h b/core/mac/src/pe/include/lim_api.h
index 21c47cf..21e19c0 100644
--- a/core/mac/src/pe/include/lim_api.h
+++ b/core/mac/src/pe/include/lim_api.h
@@ -167,7 +167,8 @@
extern void lim_cleanup(tpAniSirGlobal);
/* / Function to post messages to LIM thread */
extern uint32_t lim_post_msg_api(tpAniSirGlobal, struct scheduler_msg *);
-uint32_t lim_post_msg_high_priority(tpAniSirGlobal mac, struct scheduler_msg *msg);
+uint32_t lim_post_msg_high_priority(tpAniSirGlobal mac,
+ struct scheduler_msg *msg);
/**
* Function to process messages posted to LIM thread
@@ -229,7 +230,8 @@
tpUpdateBeaconParams pBeaconParams,
tpPESession);
-void lim_ps_offload_handle_missed_beacon_ind(tpAniSirGlobal pMac, struct scheduler_msg *pMsg);
+void lim_ps_offload_handle_missed_beacon_ind(tpAniSirGlobal pMac,
+ struct scheduler_msg *pMsg);
void lim_send_heart_beat_timeout_ind(tpAniSirGlobal pMac, tpPESession psessionEntry);
tMgmtFrmDropReason lim_is_pkt_candidate_for_drop(tpAniSirGlobal pMac,
uint8_t *pRxPacketInfo,
@@ -300,7 +302,8 @@
\return uint32_t - TX_SUCCESS for success.
--------------------------------------------------------------------------*/
-tSirRetStatus pe_process_messages(tpAniSirGlobal pMac, struct scheduler_msg *pMsg);
+tSirRetStatus pe_process_messages(tpAniSirGlobal pMac,
+ struct scheduler_msg *pMsg);
QDF_STATUS pe_mc_process_handler(struct scheduler_msg *msg);
/** -------------------------------------------------------------
diff --git a/core/mac/src/pe/include/lim_ft.h b/core/mac/src/pe/include/lim_ft.h
index 244e456..35a1ce4 100644
--- a/core/mac/src/pe/include/lim_ft.h
+++ b/core/mac/src/pe/include/lim_ft.h
@@ -48,7 +48,8 @@
#ifdef WLAN_FEATURE_HOST_ROAM
void lim_ft_cleanup_pre_auth_info(tpAniSirGlobal pMac,
tpPESession psessionEntry);
-int lim_process_ft_pre_auth_req(tpAniSirGlobal pMac, struct scheduler_msg *pMsg);
+int lim_process_ft_pre_auth_req(tpAniSirGlobal pMac,
+ struct scheduler_msg *pMsg);
void lim_process_ft_preauth_rsp_timeout(tpAniSirGlobal pMac);
void lim_process_mlm_ft_reassoc_req(tpAniSirGlobal pMac, uint32_t *pMsgBuf,
tpPESession psessionEntry);
@@ -130,6 +131,7 @@
bool lim_process_ft_update_key(tpAniSirGlobal pMac, uint32_t *pMsgBuf);
tSirRetStatus lim_process_ft_aggr_qos_req(tpAniSirGlobal pMac,
uint32_t *pMsgBuf);
-void lim_process_ft_aggr_qo_s_rsp(tpAniSirGlobal pMac, struct scheduler_msg *limMsg);
+void lim_process_ft_aggr_qo_s_rsp(tpAniSirGlobal pMac,
+ struct scheduler_msg *limMsg);
void lim_ft_cleanup_all_ft_sessions(tpAniSirGlobal pMac);
#endif /* __LIMFT_H__ */
diff --git a/core/mac/src/pe/include/sch_api.h b/core/mac/src/pe/include/sch_api.h
index fbe6172..f4adb14 100644
--- a/core/mac/src/pe/include/sch_api.h
+++ b/core/mac/src/pe/include/sch_api.h
@@ -74,13 +74,16 @@
extern void sch_initializeCfEndTemplate(tpAniSirGlobal pMac);
/* / Process the scheduler messages */
-extern void sch_process_message(tpAniSirGlobal pMac, struct scheduler_msg *pSchMsg);
+extern void sch_process_message(tpAniSirGlobal pMac,
+ struct scheduler_msg *pSchMsg);
/* / The beacon Indication handler function */
-extern void sch_process_pre_beacon_ind(tpAniSirGlobal pMac, struct scheduler_msg *limMsg);
+extern void sch_process_pre_beacon_ind(tpAniSirGlobal pMac,
+ struct scheduler_msg *limMsg);
/* / Post a message to the scheduler message queue */
-extern tSirRetStatus sch_post_message(tpAniSirGlobal pMac, struct scheduler_msg *pMsg);
+extern tSirRetStatus sch_post_message(tpAniSirGlobal pMac,
+ struct scheduler_msg *pMsg);
extern void sch_beacon_process(tpAniSirGlobal pMac, uint8_t *pRxPacketInfo,
tpPESession psessionEntry);
diff --git a/core/mac/src/pe/lim/lim_admit_control.c b/core/mac/src/pe/lim/lim_admit_control.c
index 254c4c7..2910d98 100644
--- a/core/mac/src/pe/lim/lim_admit_control.c
+++ b/core/mac/src/pe/lim/lim_admit_control.c
@@ -1049,7 +1049,8 @@
\param tpAniSirGlobal pMac
\param struct scheduler_msg *limMsg
-------------------------------------------------------------*/
-void lim_process_hal_add_ts_rsp(tpAniSirGlobal pMac, struct scheduler_msg *limMsg)
+void lim_process_hal_add_ts_rsp(tpAniSirGlobal pMac,
+ struct scheduler_msg *limMsg)
{
tpAddTsParams pAddTsRspMsg = NULL;
tpDphHashNode pSta = NULL;
diff --git a/core/mac/src/pe/lim/lim_api.c b/core/mac/src/pe/lim/lim_api.c
index 72059eb..67605d3 100644
--- a/core/mac/src/pe/lim/lim_api.c
+++ b/core/mac/src/pe/lim/lim_api.c
@@ -937,7 +937,8 @@
*
* Return: returns value returned by vos_mq_post_message_by_priority
*/
-uint32_t lim_post_msg_high_priority(tpAniSirGlobal mac, struct scheduler_msg *msg)
+uint32_t lim_post_msg_high_priority(tpAniSirGlobal mac,
+ struct scheduler_msg *msg)
{
return scheduler_post_msg_by_priority(QDF_MODULE_ID_PE,
msg, HIGH_PRIORITY);
@@ -976,7 +977,8 @@
--------------------------------------------------------------------------*/
-tSirRetStatus pe_process_messages(tpAniSirGlobal pMac, struct scheduler_msg *pMsg)
+tSirRetStatus pe_process_messages(tpAniSirGlobal pMac,
+ struct scheduler_msg *pMsg)
{
if (ANI_DRIVER_TYPE(pMac) == eDRIVER_TYPE_MFG) {
return eSIR_SUCCESS;
@@ -1732,7 +1734,8 @@
*
* Return: void
*/
-void lim_ps_offload_handle_missed_beacon_ind(tpAniSirGlobal pMac, struct scheduler_msg *pMsg)
+void lim_ps_offload_handle_missed_beacon_ind(tpAniSirGlobal pMac,
+ struct scheduler_msg *pMsg)
{
tpSirSmeMissedBeaconInd pSirMissedBeaconInd =
(tpSirSmeMissedBeaconInd) pMsg->bodyptr;
diff --git a/core/mac/src/pe/lim/lim_ft.c b/core/mac/src/pe/lim/lim_ft.c
index 91062c1..955a737 100644
--- a/core/mac/src/pe/lim/lim_ft.c
+++ b/core/mac/src/pe/lim/lim_ft.c
@@ -874,7 +874,8 @@
return;
}
-void lim_process_ft_aggr_qo_s_rsp(tpAniSirGlobal pMac, struct scheduler_msg *limMsg)
+void lim_process_ft_aggr_qo_s_rsp(tpAniSirGlobal pMac,
+ struct scheduler_msg *limMsg)
{
tpAggrAddTsParams pAggrQosRspMsg = NULL;
tAddTsParams addTsParam = { 0 };
diff --git a/core/mac/src/pe/lim/lim_ft_preauth.c b/core/mac/src/pe/lim/lim_ft_preauth.c
index d6b0d29..ca33821 100644
--- a/core/mac/src/pe/lim/lim_ft_preauth.c
+++ b/core/mac/src/pe/lim/lim_ft_preauth.c
@@ -126,7 +126,8 @@
*
* Return: value to indicate if buffer was consumed
*/
-int lim_process_ft_pre_auth_req(tpAniSirGlobal mac_ctx, struct scheduler_msg *msg)
+int lim_process_ft_pre_auth_req(tpAniSirGlobal mac_ctx,
+ struct scheduler_msg *msg)
{
int buf_consumed = false;
tpPESession session;
diff --git a/core/mac/src/pe/lim/lim_link_monitoring_algo.c b/core/mac/src/pe/lim/lim_link_monitoring_algo.c
index 80e308e..fc17526 100644
--- a/core/mac/src/pe/lim/lim_link_monitoring_algo.c
+++ b/core/mac/src/pe/lim/lim_link_monitoring_algo.c
@@ -208,7 +208,8 @@
*
* Return: none
*/
-void lim_delete_sta_context(tpAniSirGlobal mac_ctx, struct scheduler_msg *lim_msg)
+void lim_delete_sta_context(tpAniSirGlobal mac_ctx,
+ struct scheduler_msg *lim_msg)
{
tpDeleteStaContext msg = (tpDeleteStaContext) lim_msg->bodyptr;
tpPESession session_entry;
diff --git a/core/mac/src/pe/lim/lim_process_message_queue.c b/core/mac/src/pe/lim/lim_process_message_queue.c
index a11bd71..d2f0661 100644
--- a/core/mac/src/pe/lim/lim_process_message_queue.c
+++ b/core/mac/src/pe/lim/lim_process_message_queue.c
@@ -449,7 +449,7 @@
{
struct pno_match_found *result;
uint8_t *body;
- struct scheduler_msg mmh_msg;
+ struct scheduler_msg mmh_msg;
tpSirMacMgmtHdr hdr;
uint32_t num_results = 1, len, i;
@@ -507,7 +507,7 @@
{
tpSirWifiFullScanResultEvent result;
uint8_t *body;
- struct scheduler_msg mmh_msg;
+ struct scheduler_msg mmh_msg;
tpSirMacMgmtHdr hdr;
result = qdf_mem_malloc(sizeof(*result) + ie_len);
@@ -850,7 +850,8 @@
*/
static void
-lim_handle80211_frames(tpAniSirGlobal pMac, struct scheduler_msg *limMsg, uint8_t *pDeferMsg)
+lim_handle80211_frames(tpAniSirGlobal pMac, struct scheduler_msg *limMsg,
+ uint8_t *pDeferMsg)
{
uint8_t *pRxPacketInfo = NULL;
tSirMacFrameCtl fc;
@@ -1199,7 +1200,7 @@
}
static void lim_process_sme_obss_scan_ind(tpAniSirGlobal mac_ctx,
- struct scheduler_msg *msg)
+ struct scheduler_msg *msg)
{
struct sPESession *session;
uint8_t session_id;
@@ -1238,7 +1239,8 @@
*
* Return: None.
*/
-static void lim_process_messages(tpAniSirGlobal mac_ctx, struct scheduler_msg *msg)
+static void lim_process_messages(tpAniSirGlobal mac_ctx,
+ struct scheduler_msg *msg)
{
#ifdef FEATURE_AP_MCC_CH_AVOIDANCE
uint8_t vdev_id = 0;
@@ -1973,7 +1975,8 @@
if (size > 0) {
while ((readMsg = lim_read_deferred_msg_q(pMac)) != NULL) {
qdf_mem_copy((uint8_t *) &limMsg,
- (uint8_t *) readMsg, sizeof(struct scheduler_msg));
+ (uint8_t *) readMsg,
+ sizeof(struct scheduler_msg));
size--;
lim_process_messages(pMac, &limMsg);
@@ -2024,8 +2027,9 @@
*
* Return: None
*/
-static void lim_process_normal_hdd_msg(tpAniSirGlobal mac_ctx, struct scheduler_msg *msg,
- uint8_t rsp_reqd)
+static void lim_process_normal_hdd_msg(tpAniSirGlobal mac_ctx,
+ struct scheduler_msg *msg,
+ uint8_t rsp_reqd)
{
bool defer_msg = true;
diff --git a/core/mac/src/pe/lim/lim_process_mlm_req_messages.c b/core/mac/src/pe/lim/lim_process_mlm_req_messages.c
index 5bd3a1b..4eb46fd 100644
--- a/core/mac/src/pe/lim/lim_process_mlm_req_messages.c
+++ b/core/mac/src/pe/lim/lim_process_mlm_req_messages.c
@@ -82,7 +82,8 @@
*
* Return: None
*/
-void lim_process_mlm_req_messages(tpAniSirGlobal mac_ctx, struct scheduler_msg *msg)
+void lim_process_mlm_req_messages(tpAniSirGlobal mac_ctx,
+ struct scheduler_msg *msg)
{
switch (msg->type) {
case LIM_MLM_START_REQ:
diff --git a/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c b/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c
index c3ab9fa..d888948 100644
--- a/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c
+++ b/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c
@@ -1432,11 +1432,13 @@
***NOTE:
*
* @param pMac Pointer to Global MAC structure
- * @param struct scheduler_msg The MsgQ header, which contains the response buffer
+ * @param struct scheduler_msg The MsgQ header, which contains the
+ * response buffer
*
* @return None
*/
-void lim_process_mlm_add_sta_rsp(tpAniSirGlobal pMac, struct scheduler_msg *limMsgQ,
+void lim_process_mlm_add_sta_rsp(tpAniSirGlobal pMac,
+ struct scheduler_msg *limMsgQ,
tpPESession psessionEntry)
{
/* we need to process the deferred message since the initiating req. there might be nested request. */
@@ -1597,7 +1599,8 @@
return;
}
-void lim_process_mlm_del_bss_rsp(tpAniSirGlobal pMac, struct scheduler_msg *limMsgQ,
+void lim_process_mlm_del_bss_rsp(tpAniSirGlobal pMac,
+ struct scheduler_msg *limMsgQ,
tpPESession psessionEntry)
{
/* we need to process the deferred message since the initiating req. there might be nested request. */
@@ -1625,7 +1628,8 @@
#endif
}
-void lim_process_sta_mlm_del_bss_rsp(tpAniSirGlobal pMac, struct scheduler_msg *limMsgQ,
+void lim_process_sta_mlm_del_bss_rsp(tpAniSirGlobal pMac,
+ struct scheduler_msg *limMsgQ,
tpPESession psessionEntry)
{
tpDeleteBssParams pDelBssParams = (tpDeleteBssParams) limMsgQ->bodyptr;
@@ -1703,8 +1707,9 @@
return;
}
-void lim_process_ap_mlm_del_bss_rsp(tpAniSirGlobal pMac, struct scheduler_msg *limMsgQ,
- tpPESession psessionEntry)
+void lim_process_ap_mlm_del_bss_rsp(tpAniSirGlobal pMac,
+ struct scheduler_msg *limMsgQ,
+ tpPESession psessionEntry)
{
tSirResultCodes rc = eSIR_SME_SUCCESS;
tSirRetStatus status;
@@ -1926,7 +1931,8 @@
return;
}
-void lim_process_sta_mlm_del_sta_rsp(tpAniSirGlobal pMac, struct scheduler_msg *limMsgQ,
+void lim_process_sta_mlm_del_sta_rsp(tpAniSirGlobal pMac,
+ struct scheduler_msg *limMsgQ,
tpPESession psessionEntry)
{
tSirResultCodes statusCode = eSIR_SME_SUCCESS;
@@ -1981,8 +1987,9 @@
return;
}
-void lim_process_ap_mlm_add_sta_rsp(tpAniSirGlobal pMac, struct scheduler_msg *limMsgQ,
- tpPESession psessionEntry)
+void lim_process_ap_mlm_add_sta_rsp(tpAniSirGlobal pMac,
+ struct scheduler_msg *limMsgQ,
+ tpPESession psessionEntry)
{
tpAddStaParams pAddStaParams = (tpAddStaParams) limMsgQ->bodyptr;
tpDphHashNode pStaDs = NULL;
@@ -2001,13 +2008,7 @@
pAddStaParams->assocId);
goto end;
}
- /* */
- /* TODO & FIXME_GEN4 */
- /* Need to inspect struct scheduler_msg.reserved for a valid Dialog token! */
- /* */
- /* TODO: any check for pMac->lim.gLimMlmState ? */
if (eLIM_MLM_WT_ADD_STA_RSP_STATE != pStaDs->mlmStaContext.mlmState) {
- /* TODO: any response to be sent out here ? */
lim_log(pMac, LOGE,
FL("Received unexpected WMA_ADD_STA_RSP in state %X"),
pStaDs->mlmStaContext.mlmState);
@@ -2077,17 +2078,20 @@
* LIM responds with eWNI_SME_START_BSS_RSP to SME
*
***ASSUMPTIONS:
- * struct scheduler_msg.body is allocated by MLME during lim_process_mlm_start_req
+ * struct scheduler_msg.body is allocated by MLME during
+ * lim_process_mlm_start_req
* struct scheduler_msg.body will now be freed by this routine
*
***NOTE:
*
* @param pMac Pointer to Global MAC structure
- * @param struct scheduler_msg The MsgQ header, which contains the response buffer
+ * @param struct scheduler_msg The MsgQ header, which contains
+ * the response buffer
*
* @return None
*/
-static void lim_process_ap_mlm_add_bss_rsp(tpAniSirGlobal pMac, struct scheduler_msg *limMsgQ)
+static void lim_process_ap_mlm_add_bss_rsp(tpAniSirGlobal pMac,
+ struct scheduler_msg *limMsgQ)
{
tLimMlmStartCnf mlmStartCnf;
tpPESession psessionEntry;
@@ -2224,18 +2228,21 @@
* LIM responds with eWNI_SME_START_BSS_RSP to SME
*
***ASSUMPTIONS:
- * struct scheduler_msg.body is allocated by MLME during lim_process_mlm_start_req
+ * struct scheduler_msg.body is allocated by MLME during
+ * lim_process_mlm_start_req
* struct scheduler_msg.body will now be freed by this routine
*
***NOTE:
*
* @param pMac Pointer to Global MAC structure
- * @param struct scheduler_msg The MsgQ header, which contains the response buffer
+ * @param struct scheduler_msg The MsgQ header, which contains
+ * the response buffer
*
* @return None
*/
static void
-lim_process_ibss_mlm_add_bss_rsp(tpAniSirGlobal pMac, struct scheduler_msg *limMsgQ,
+lim_process_ibss_mlm_add_bss_rsp(tpAniSirGlobal pMac,
+ struct scheduler_msg *limMsgQ,
tpPESession psessionEntry)
{
tLimMlmStartCnf mlmStartCnf;
@@ -2429,7 +2436,8 @@
* HAL responded with WMA_ADD_BSS_RSP to MLME
* MLME now sends WMA_ADD_STA_REQ to HAL
* ASSUMPTIONS:
- * struct scheduler_msg.body is allocated by MLME during lim_process_mlm_join_req
+ * struct scheduler_msg.body is allocated by MLME during
+ * lim_process_mlm_join_req
* struct scheduler_msg.body will now be freed by this routine
*
* Return: None
diff --git a/core/mac/src/pe/lim/lim_process_sme_req_messages.c b/core/mac/src/pe/lim/lim_process_sme_req_messages.c
index 4179da6..c654b91 100644
--- a/core/mac/src/pe/lim/lim_process_sme_req_messages.c
+++ b/core/mac/src/pe/lim/lim_process_sme_req_messages.c
@@ -81,7 +81,8 @@
/* SME REQ processing function templates */
static bool __lim_process_sme_sys_ready_ind(tpAniSirGlobal, uint32_t *);
-static bool __lim_process_sme_start_bss_req(tpAniSirGlobal, struct scheduler_msg *pMsg);
+static bool __lim_process_sme_start_bss_req(tpAniSirGlobal,
+ struct scheduler_msg *pMsg);
static void __lim_process_sme_scan_req(tpAniSirGlobal, uint32_t *);
static void __lim_process_sme_join_req(tpAniSirGlobal, uint32_t *);
static void __lim_process_sme_reassoc_req(tpAniSirGlobal, uint32_t *);
@@ -89,7 +90,8 @@
static void __lim_process_sme_disassoc_cnf(tpAniSirGlobal, uint32_t *);
static void __lim_process_sme_deauth_req(tpAniSirGlobal, uint32_t *);
static void __lim_process_sme_set_context_req(tpAniSirGlobal, uint32_t *);
-static bool __lim_process_sme_stop_bss_req(tpAniSirGlobal, struct scheduler_msg *pMsg);
+static bool __lim_process_sme_stop_bss_req(tpAniSirGlobal,
+ struct scheduler_msg *pMsg);
static void __lim_process_send_disassoc_frame(tpAniSirGlobal mac_ctx,
uint32_t *msg_buf);
static void lim_process_sme_channel_change_request(tpAniSirGlobal pMac,
@@ -478,7 +480,8 @@
* Return: true - If defered false - Otherwise
*/
-static bool __lim_is_defered_msg_for_learn(tpAniSirGlobal pMac, struct scheduler_msg *pMsg)
+static bool __lim_is_defered_msg_for_learn(tpAniSirGlobal pMac,
+ struct scheduler_msg *pMsg)
{
if (lim_is_system_in_scan_state(pMac)) {
if (lim_defer_msg(pMac, pMsg) != TX_SUCCESS) {
@@ -505,7 +508,8 @@
* Return: true, if defered otherwise return false.
*/
static bool
-__lim_is_defered_msg_for_radar(tpAniSirGlobal mac_ctx, struct scheduler_msg *message)
+__lim_is_defered_msg_for_radar(tpAniSirGlobal mac_ctx,
+ struct scheduler_msg *message)
{
/*
* fRadarDetCurOperChan will be set only if we
@@ -1171,7 +1175,8 @@
* return true - If we consumed the buffer
* false - If have defered the message.
*/
-static bool __lim_process_sme_start_bss_req(tpAniSirGlobal pMac, struct scheduler_msg *pMsg)
+static bool __lim_process_sme_start_bss_req(tpAniSirGlobal pMac,
+ struct scheduler_msg *pMsg)
{
if (__lim_is_defered_msg_for_learn(pMac, pMsg) ||
__lim_is_defered_msg_for_radar(pMac, pMsg)) {
@@ -1468,7 +1473,8 @@
* @param *pMsgBuf A pointer to the SME message buffer
* @return None
*/
-static void __lim_process_clear_dfs_channel_list(tpAniSirGlobal pMac, struct scheduler_msg *pMsg)
+static void __lim_process_clear_dfs_channel_list(tpAniSirGlobal pMac,
+ struct scheduler_msg *pMsg)
{
qdf_mem_set(&pMac->lim.dfschannelList, sizeof(tSirDFSChannelList), 0);
}
@@ -3456,7 +3462,8 @@
* false - If have defered the message.
*/
-static bool __lim_process_sme_stop_bss_req(tpAniSirGlobal pMac, struct scheduler_msg *pMsg)
+static bool __lim_process_sme_stop_bss_req(tpAniSirGlobal pMac,
+ struct scheduler_msg *pMsg)
{
if (__lim_is_defered_msg_for_learn(pMac, pMsg)) {
/**
@@ -4482,7 +4489,8 @@
* @return None
*/
-static void __lim_process_report_message(tpAniSirGlobal pMac, struct scheduler_msg *pMsg)
+static void __lim_process_report_message(tpAniSirGlobal pMac,
+ struct scheduler_msg *pMsg)
{
switch (pMsg->type) {
case eWNI_SME_NEIGHBOR_REPORT_REQ_IND:
@@ -5140,7 +5148,8 @@
* false - if pMsgBuf is not to be freed.
*/
-bool lim_process_sme_req_messages(tpAniSirGlobal pMac, struct scheduler_msg *pMsg)
+bool lim_process_sme_req_messages(tpAniSirGlobal pMac,
+ struct scheduler_msg *pMsg)
{
bool bufConsumed = true; /* Set this flag to false within case block of any following message, that doesnt want pMsgBuf to be freed. */
uint32_t *pMsgBuf = pMsg->bodyptr;
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 f52177a..c752006 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
@@ -2099,7 +2099,8 @@
*
* Return: None
*/
-void lim_handle_csa_offload_msg(tpAniSirGlobal mac_ctx, struct scheduler_msg *msg)
+void lim_handle_csa_offload_msg(tpAniSirGlobal mac_ctx,
+ struct scheduler_msg *msg)
{
tpPESession session_entry;
struct scheduler_msg mmh_msg;
diff --git a/core/mac/src/pe/lim/lim_send_sme_rsp_messages.h b/core/mac/src/pe/lim/lim_send_sme_rsp_messages.h
index 203dca7..bde3fc8 100644
--- a/core/mac/src/pe/lim/lim_send_sme_rsp_messages.h
+++ b/core/mac/src/pe/lim/lim_send_sme_rsp_messages.h
@@ -71,7 +71,8 @@
tSirResultCodes, tpPESession, uint8_t, uint16_t);
void lim_send_sme_neighbor_bss_ind(tpAniSirGlobal, tLimScanResultNode *);
void lim_handle_delete_bss_rsp(tpAniSirGlobal pMac, struct scheduler_msg *MsgQ);
-void lim_handle_csa_offload_msg(tpAniSirGlobal mac_ctx, struct scheduler_msg *msg);
+void lim_handle_csa_offload_msg(tpAniSirGlobal mac_ctx,
+ struct scheduler_msg *msg);
void
lim_send_sme_aggr_qos_rsp(tpAniSirGlobal pMac, tpSirAggrQosRsp aggrQosRsp,
diff --git a/core/mac/src/pe/lim/lim_types.h b/core/mac/src/pe/lim/lim_types.h
index 91abe42..c3640e8 100644
--- a/core/mac/src/pe/lim/lim_types.h
+++ b/core/mac/src/pe/lim/lim_types.h
@@ -596,20 +596,29 @@
tpPESession psessionEntry);
/* Function(s) to handle responses received from HAL */
-void lim_process_mlm_add_bss_rsp(tpAniSirGlobal pMac, struct scheduler_msg *limMsgQ);
-void lim_process_mlm_add_sta_rsp(tpAniSirGlobal pMac, struct scheduler_msg *limMsgQt,
+void lim_process_mlm_add_bss_rsp(tpAniSirGlobal pMac,
+ struct scheduler_msg *limMsgQ);
+void lim_process_mlm_add_sta_rsp(tpAniSirGlobal pMac,
+ struct scheduler_msg *limMsgQt,
tpPESession psessionEntry);
-void lim_process_mlm_del_sta_rsp(tpAniSirGlobal pMac, struct scheduler_msg *limMsgQ);
-void lim_process_mlm_del_bss_rsp(tpAniSirGlobal pMac, struct scheduler_msg *limMsgQ,
+void lim_process_mlm_del_sta_rsp(tpAniSirGlobal pMac,
+ struct scheduler_msg *limMsgQ);
+void lim_process_mlm_del_bss_rsp(tpAniSirGlobal pMac,
+ struct scheduler_msg *limMsgQ,
tpPESession);
-void lim_process_sta_mlm_add_sta_rsp(tpAniSirGlobal pMac, struct scheduler_msg *limMsgQ,
+void lim_process_sta_mlm_add_sta_rsp(tpAniSirGlobal pMac,
+ struct scheduler_msg *limMsgQ,
tpPESession psessionEntry);
-void lim_process_sta_mlm_del_sta_rsp(tpAniSirGlobal pMac, struct scheduler_msg *limMsgQ,
+void lim_process_sta_mlm_del_sta_rsp(tpAniSirGlobal pMac,
+ struct scheduler_msg *limMsgQ,
tpPESession psessionEntry);
-void lim_process_sta_mlm_del_bss_rsp(tpAniSirGlobal pMac, struct scheduler_msg *limMsgQ,
+void lim_process_sta_mlm_del_bss_rsp(tpAniSirGlobal pMac,
+ struct scheduler_msg *limMsgQ,
tpPESession psessionEntry);
-void lim_process_mlm_set_sta_key_rsp(tpAniSirGlobal pMac, struct scheduler_msg *limMsgQ);
-void lim_process_mlm_set_bss_key_rsp(tpAniSirGlobal pMac, struct scheduler_msg *limMsgQ);
+void lim_process_mlm_set_sta_key_rsp(tpAniSirGlobal pMac,
+ struct scheduler_msg *limMsgQ);
+void lim_process_mlm_set_bss_key_rsp(tpAniSirGlobal pMac,
+ struct scheduler_msg *limMsgQ);
/* Function to process WMA_SWITCH_CHANNEL_RSP message */
void lim_process_switch_channel_rsp(tpAniSirGlobal pMac, void *);
diff --git a/core/mac/src/pe/lim/lim_utils.c b/core/mac/src/pe/lim/lim_utils.c
index e6cbdf5..63d6bac 100644
--- a/core/mac/src/pe/lim/lim_utils.c
+++ b/core/mac/src/pe/lim/lim_utils.c
@@ -847,7 +847,8 @@
* Return: none
*/
-uint8_t lim_write_deferred_msg_q(tpAniSirGlobal mac_ctx, struct scheduler_msg *lim_msg)
+uint8_t lim_write_deferred_msg_q(tpAniSirGlobal mac_ctx,
+ struct scheduler_msg *lim_msg)
{
lim_log(mac_ctx, LOG1,
FL("Queue a deferred message (size %d, write %d) - type 0x%x "),
@@ -929,7 +930,8 @@
/* save the message to the queue and advanced the write pointer */
qdf_mem_copy((uint8_t *) &mac_ctx->lim.gLimDeferredMsgQ.
deferredQueue[mac_ctx->lim.gLimDeferredMsgQ.write++],
- (uint8_t *) lim_msg, sizeof(struct scheduler_msg));
+ (uint8_t *) lim_msg,
+ sizeof(struct scheduler_msg));
return TX_SUCCESS;
}
@@ -1008,7 +1010,8 @@
}
tSirRetStatus
-lim_sys_process_mmh_msg_api(tpAniSirGlobal pMac, struct scheduler_msg *pMsg, uint8_t qType)
+lim_sys_process_mmh_msg_api(tpAniSirGlobal pMac,
+ struct scheduler_msg *pMsg, uint8_t qType)
{
/* FIXME */
sys_process_mmh_msg(pMac, pMsg);
@@ -5764,7 +5767,8 @@
\return void
-----------------------------------------------------------*/
-void lim_handle_defer_msg_error(tpAniSirGlobal pMac, struct scheduler_msg *pLimMsg)
+void lim_handle_defer_msg_error(tpAniSirGlobal pMac,
+ struct scheduler_msg *pLimMsg)
{
if (SIR_BB_XPORT_MGMT_MSG == pLimMsg->type) {
cds_pkt_return_packet((cds_pkt_t *) pLimMsg->bodyptr);
diff --git a/core/mac/src/pe/lim/lim_utils.h b/core/mac/src/pe/lim/lim_utils.h
index 3385903..b8c3a27 100644
--- a/core/mac/src/pe/lim/lim_utils.h
+++ b/core/mac/src/pe/lim/lim_utils.h
@@ -200,14 +200,17 @@
void lim_print_mac_addr(tpAniSirGlobal, tSirMacAddr, uint8_t);
/* Deferred Message Queue read/write */
-uint8_t lim_write_deferred_msg_q(tpAniSirGlobal pMac, struct scheduler_msg *limMsg);
+uint8_t lim_write_deferred_msg_q(tpAniSirGlobal pMac,
+ struct scheduler_msg *limMsg);
struct scheduler_msg *lim_read_deferred_msg_q(tpAniSirGlobal pMac);
-void lim_handle_defer_msg_error(tpAniSirGlobal pMac, struct scheduler_msg *pLimMsg);
+void lim_handle_defer_msg_error(tpAniSirGlobal pMac,
+ struct scheduler_msg *pLimMsg);
/* Deferred Message Queue Reset */
void lim_reset_deferred_msg_q(tpAniSirGlobal pMac);
-tSirRetStatus lim_sys_process_mmh_msg_api(tpAniSirGlobal, struct scheduler_msg *, uint8_t);
+tSirRetStatus lim_sys_process_mmh_msg_api(tpAniSirGlobal,
+ struct scheduler_msg *, uint8_t);
void lim_handle_update_olbc_cache(tpAniSirGlobal pMac);
@@ -411,12 +414,14 @@
void lim_handle_heart_beat_timeout_for_session(tpAniSirGlobal pMac,
tpPESession psessionEntry);
-void lim_process_add_sta_rsp(tpAniSirGlobal pMac, struct scheduler_msg *pMsgQ);
+void lim_process_add_sta_rsp(tpAniSirGlobal pMac,
+ struct scheduler_msg *pMsgQ);
void lim_update_beacon(tpAniSirGlobal pMac);
-void lim_process_ap_mlm_add_sta_rsp(tpAniSirGlobal pMac, struct scheduler_msg *limMsgQ,
- tpPESession psessionEntry);
+void lim_process_ap_mlm_add_sta_rsp(tpAniSirGlobal pMac,
+ struct scheduler_msg *limMsgQ,
+ tpPESession psessionEntry);
void lim_process_ap_mlm_del_bss_rsp(tpAniSirGlobal pMac,
struct scheduler_msg *limMsgQ,
tpPESession psessionEntry);
diff --git a/core/mac/src/pe/nan/nan_datapath.c b/core/mac/src/pe/nan/nan_datapath.c
index 1ce321c..a090637 100644
--- a/core/mac/src/pe/nan/nan_datapath.c
+++ b/core/mac/src/pe/nan/nan_datapath.c
@@ -389,8 +389,9 @@
*
* Return: None
*/
-void lim_process_ndi_del_sta_rsp(tpAniSirGlobal mac_ctx, struct scheduler_msg *lim_msg,
- tpPESession pe_session)
+void lim_process_ndi_del_sta_rsp(tpAniSirGlobal mac_ctx,
+ struct scheduler_msg *lim_msg,
+ tpPESession pe_session)
{
tpDeleteStaParams del_sta_params = (tpDeleteStaParams) lim_msg->bodyptr;
tpDphHashNode sta_ds;
@@ -714,8 +715,9 @@
*
* Return: None
*/
-void lim_process_ndi_mlm_add_bss_rsp(tpAniSirGlobal mac_ctx, struct scheduler_msg *lim_msgq,
- tpPESession session_entry)
+void lim_process_ndi_mlm_add_bss_rsp(tpAniSirGlobal mac_ctx,
+ struct scheduler_msg *lim_msgq,
+ tpPESession session_entry)
{
tLimMlmStartCnf mlm_start_cnf;
tpAddBssParams add_bss_params = (tpAddBssParams) lim_msgq->bodyptr;
diff --git a/core/mac/src/pe/nan/nan_datapath.h b/core/mac/src/pe/nan/nan_datapath.h
index e11cf31..5912c33 100644
--- a/core/mac/src/pe/nan/nan_datapath.h
+++ b/core/mac/src/pe/nan/nan_datapath.h
@@ -116,8 +116,9 @@
void lim_ndp_add_sta_rsp(tpAniSirGlobal mac_ctx, tpPESession session_entry,
tAddStaParams *add_sta_rsp);
-void lim_process_ndi_del_sta_rsp(tpAniSirGlobal mac_ctx, struct scheduler_msg *lim_msg,
- tpPESession pe_session);
+void lim_process_ndi_del_sta_rsp(tpAniSirGlobal mac_ctx,
+ struct scheduler_msg *lim_msg,
+ tpPESession pe_session);
#else
@@ -137,8 +138,8 @@
/* Function to process NDP events */
static inline void lim_process_ndi_mlm_add_bss_rsp(tpAniSirGlobal mac_ctx,
- struct scheduler_msg *lim_msg_q,
- tpPESession session_entry)
+ struct scheduler_msg *lim_msg_q,
+ tpPESession session_entry)
{
}
static inline void lim_ndi_del_bss_rsp(tpAniSirGlobal mac_ctx,
@@ -146,7 +147,8 @@
{
}
static inline void lim_process_ndi_del_sta_rsp(tpAniSirGlobal mac_ctx,
- struct scheduler_msg *lim_msg, tpPESession pe_session)
+ struct scheduler_msg *lim_msg,
+ tpPESession pe_session)
{
}
diff --git a/core/mac/src/pe/rrm/rrm_api.c b/core/mac/src/pe/rrm/rrm_api.c
index 4d9ce2f..215fbcb 100644
--- a/core/mac/src/pe/rrm/rrm_api.c
+++ b/core/mac/src/pe/rrm/rrm_api.c
@@ -210,7 +210,8 @@
* @param pSessionEntry session entry.
* @return None
*/
-tSirRetStatus rrm_set_max_tx_power_rsp(tpAniSirGlobal pMac, struct scheduler_msg *limMsgQ)
+tSirRetStatus rrm_set_max_tx_power_rsp(tpAniSirGlobal pMac,
+ struct scheduler_msg *limMsgQ)
{
tSirRetStatus retCode = eSIR_SUCCESS;
tpMaxTxPowerParams pMaxTxParams = (tpMaxTxPowerParams) limMsgQ->bodyptr;
diff --git a/core/mac/src/pe/sch/sch_beacon_gen.c b/core/mac/src/pe/sch/sch_beacon_gen.c
index 73ab740..c1d5235 100644
--- a/core/mac/src/pe/sch/sch_beacon_gen.c
+++ b/core/mac/src/pe/sch/sch_beacon_gen.c
@@ -918,7 +918,8 @@
* @return None
*/
-void sch_process_pre_beacon_ind(tpAniSirGlobal pMac, struct scheduler_msg *limMsg)
+void sch_process_pre_beacon_ind(tpAniSirGlobal pMac,
+ struct scheduler_msg *limMsg)
{
tpBeaconGenParams pMsg = (tpBeaconGenParams) limMsg->bodyptr;
uint32_t beaconSize;
diff --git a/core/mac/src/sys/legacy/src/system/inc/sys_startup.h b/core/mac/src/sys/legacy/src/system/inc/sys_startup.h
index 586df8c..d38c121 100644
--- a/core/mac/src/sys/legacy/src/system/inc/sys_startup.h
+++ b/core/mac/src/sys/legacy/src/system/inc/sys_startup.h
@@ -47,7 +47,8 @@
/* Function */
extern void sysMACCleanup(void *);
-extern tSirRetStatus sys_bbt_process_message_core(struct sAniSirGlobal *, struct scheduler_msg *,
+extern tSirRetStatus sys_bbt_process_message_core(struct sAniSirGlobal *,
+ struct scheduler_msg *,
uint32_t, uint32_t);
#endif /* __SYSSTARTUP_H */