summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVarun Reddy Yeturu <varunreddy.yeturu@codeaurora.org>2017-11-17 14:14:55 -0800
committersnandini <snandini@codeaurora.org>2017-11-18 13:32:56 -0800
commit1af4f0b259f31a4bc5ee1e6e6f5965abf6dbe7fc (patch)
tree8a7936b3ceb700ea953d21efb0edc7e3be4e7933
parent36a86af74b3684410cdd05833918aae3c6630336 (diff)
qcacld-3.0: Fix implicit conversion in lim_process_sme_req_messages.c
Fix implicit conversion from enumeration type 'enum eSirMacStatusCodes' to different enumeration type 'tSirResultCodes' in function __lim_process_sme_assoc_cnf_new(). Change-Id: I1179014e3a190427f6bbfcbc62a3b82f0b187a0f CRs-Fixed: 2145080
-rw-r--r--core/mac/src/pe/lim/lim_assoc_utils.c3
-rw-r--r--core/mac/src/pe/lim/lim_assoc_utils.h6
-rw-r--r--core/mac/src/pe/lim/lim_process_assoc_req_frame.c20
-rw-r--r--core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c3
4 files changed, 14 insertions, 18 deletions
diff --git a/core/mac/src/pe/lim/lim_assoc_utils.c b/core/mac/src/pe/lim/lim_assoc_utils.c
index 06ef2a8f1a79..a127bbb508e9 100644
--- a/core/mac/src/pe/lim/lim_assoc_utils.c
+++ b/core/mac/src/pe/lim/lim_assoc_utils.c
@@ -863,7 +863,7 @@ void
lim_reject_association(tpAniSirGlobal mac_ctx, tSirMacAddr peer_addr,
uint8_t sub_type, uint8_t add_pre_auth_context,
tAniAuthType auth_type, uint16_t sta_id,
- uint8_t delete_sta, tSirResultCodes result_code,
+ uint8_t delete_sta, enum eSirMacStatusCodes result_code,
tpPESession session_entry)
{
tpDphHashNode sta_ds;
@@ -2950,7 +2950,6 @@ void lim_handle_cnf_wait_timeout(tpAniSirGlobal pMac, uint16_t staId)
true,
pStaDs->mlmStaContext.authType,
pStaDs->assocId, true,
- (tSirResultCodes)
eSIR_MAC_UNSPEC_FAILURE_STATUS,
psessionEntry);
}
diff --git a/core/mac/src/pe/lim/lim_assoc_utils.h b/core/mac/src/pe/lim/lim_assoc_utils.h
index 80f12be984a0..8b656216de8f 100644
--- a/core/mac/src/pe/lim/lim_assoc_utils.h
+++ b/core/mac/src/pe/lim/lim_assoc_utils.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011-2016 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2011-2017 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -59,8 +59,8 @@ void limPostDummyToTmRing(tpAniSirGlobal, tpDphHashNode);
void limPostPacketToTdRing(tpAniSirGlobal, tpDphHashNode, uint8_t);
tSirRetStatus lim_cleanup_rx_path(tpAniSirGlobal, tpDphHashNode, tpPESession);
void lim_reject_association(tpAniSirGlobal, tSirMacAddr, uint8_t,
- uint8_t, tAniAuthType,
- uint16_t, uint8_t, tSirResultCodes, tpPESession);
+ uint8_t, tAniAuthType, uint16_t, uint8_t,
+ enum eSirMacStatusCodes, tpPESession);
tSirRetStatus lim_populate_peer_rate_set(tpAniSirGlobal pMac,
tpSirSupportedRates pRates,
diff --git a/core/mac/src/pe/lim/lim_process_assoc_req_frame.c b/core/mac/src/pe/lim/lim_process_assoc_req_frame.c
index 328ffae0b8f3..80825df880a6 100644
--- a/core/mac/src/pe/lim/lim_process_assoc_req_frame.c
+++ b/core/mac/src/pe/lim/lim_process_assoc_req_frame.c
@@ -942,7 +942,7 @@ static bool lim_process_assoc_req_no_sta_ctx(tpAniSirGlobal mac_ctx,
mac_ctx->lim.maxStation);
lim_reject_association(mac_ctx, hdr->sa, sub_type, false,
(tAniAuthType) 0, 0, false,
- (tSirResultCodes) eSIR_MAC_UNSPEC_FAILURE_STATUS,
+ eSIR_MAC_UNSPEC_FAILURE_STATUS,
session);
return false;
}
@@ -1407,7 +1407,7 @@ static bool lim_update_sta_ds(tpAniSirGlobal mac_ctx, tpSirMacMgmtHdr hdr,
lim_reject_association(mac_ctx, hdr->sa,
sub_type, true, auth_type, peer_idx, false,
- (tSirResultCodes)eSIR_MAC_UNSPEC_FAILURE_STATUS,
+ eSIR_MAC_UNSPEC_FAILURE_STATUS,
session);
pe_err("Delete dph hash entry");
if (dph_delete_hash_entry(mac_ctx, hdr->sa, sta_ds->assocId,
@@ -1492,7 +1492,7 @@ static bool lim_update_sta_ds(tpAniSirGlobal mac_ctx, tpSirMacMgmtHdr hdr,
pe_err("Couldn't get PMF SA Query retry interval value");
lim_reject_association(mac_ctx, hdr->sa, sub_type, true,
auth_type, peer_idx, false,
- (tSirResultCodes) eSIR_MAC_UNSPEC_FAILURE_STATUS,
+ eSIR_MAC_UNSPEC_FAILURE_STATUS,
session);
return false;
}
@@ -1507,7 +1507,7 @@ static bool lim_update_sta_ds(tpAniSirGlobal mac_ctx, tpSirMacMgmtHdr hdr,
pe_err("could not create PMF SA Query timer");
lim_reject_association(mac_ctx, hdr->sa, sub_type,
true, auth_type, peer_idx, false,
- (tSirResultCodes)eSIR_MAC_UNSPEC_FAILURE_STATUS,
+ eSIR_MAC_UNSPEC_FAILURE_STATUS,
session);
return false;
}
@@ -1565,7 +1565,7 @@ static bool lim_update_sta_ctx(tpAniSirGlobal mac_ctx, tpPESession session,
sta_ds->mlmStaContext.subType, true,
sta_ds->mlmStaContext.authType,
sta_ds->assocId, true,
- (tSirResultCodes)eSIR_MAC_UNSPEC_FAILURE_STATUS,
+ eSIR_MAC_UNSPEC_FAILURE_STATUS,
session);
if (session->parsedAssocReq)
@@ -1596,8 +1596,7 @@ static bool lim_update_sta_ctx(tpAniSirGlobal mac_ctx, tpPESession session,
sta_ds->mlmStaContext.subType, true,
sta_ds->mlmStaContext.authType,
sta_ds->assocId, true,
- (tSirResultCodes)
- eSIR_MAC_UNSPEC_FAILURE_STATUS,
+ eSIR_MAC_UNSPEC_FAILURE_STATUS,
session);
/* Restoring the state back. */
@@ -1619,8 +1618,7 @@ static bool lim_update_sta_ctx(tpAniSirGlobal mac_ctx, tpPESession session,
sta_ds->mlmStaContext.subType, true,
sta_ds->mlmStaContext.authType,
sta_ds->assocId, true,
- (tSirResultCodes)
- eSIR_MAC_WME_REFUSED_STATUS,
+ eSIR_MAC_WME_REFUSED_STATUS,
session);
/* Restoring the state back. */
@@ -1953,7 +1951,7 @@ void lim_process_assoc_req_frame(tpAniSirGlobal mac_ctx, uint8_t *rx_pkt_info,
pe_err("PeerIdx not avaialble. Reject associaton");
lim_reject_association(mac_ctx, hdr->sa, sub_type,
true, auth_type, peer_idx, false,
- (tSirResultCodes)eSIR_MAC_UNSPEC_FAILURE_STATUS,
+ eSIR_MAC_UNSPEC_FAILURE_STATUS,
session);
goto error;
}
@@ -1973,7 +1971,7 @@ void lim_process_assoc_req_frame(tpAniSirGlobal mac_ctx, uint8_t *rx_pkt_info,
lim_reject_association(mac_ctx, hdr->sa, sub_type,
true, auth_type, peer_idx, false,
- (tSirResultCodes) eSIR_MAC_UNSPEC_FAILURE_STATUS,
+ eSIR_MAC_UNSPEC_FAILURE_STATUS,
session);
goto error;
}
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 7c2483756f50..e6e5f482facf 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
@@ -1888,7 +1888,7 @@ void lim_process_ap_mlm_del_sta_rsp(tpAniSirGlobal mac_ctx,
sta_ds->mlmStaContext.subType, true,
sta_ds->mlmStaContext.authType, sta_ds->assocId,
true,
- (tSirResultCodes)eSIR_MAC_UNSPEC_FAILURE_STATUS,
+ eSIR_MAC_UNSPEC_FAILURE_STATUS,
session_entry);
}
return;
@@ -1996,7 +1996,6 @@ void lim_process_ap_mlm_add_sta_rsp(tpAniSirGlobal pMac, tpSirMsgQ limMsgQ,
pStaDs->mlmStaContext.subType,
true, pStaDs->mlmStaContext.authType,
pStaDs->assocId, true,
- (tSirResultCodes)
eSIR_MAC_UNSPEC_FAILURE_STATUS,
psessionEntry);
goto end;