Browse Source

qcacld-3.0: Fix incorrect argument type in lim_chk_assoc_req_parse_error

Fix incorrect argument type in lim_chk_assoc_req_parse_error function

Currently uint32_t is passed to the function but this function typecasts
it to uint8_t which results in losing 3 bytes of data. This lead to
incorrect parsing of Assoc request frame.

Change-Id: Ib55f7afa06972234d06edd12098e44608460a10d
CRs-Fixed: 987559
Krishna Kumaar Natarajan 9 years ago
parent
commit
db582ec0e0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      core/mac/src/pe/lim/lim_process_assoc_req_frame.c

+ 2 - 2
core/mac/src/pe/lim/lim_process_assoc_req_frame.c

@@ -252,7 +252,7 @@ static bool lim_chk_assoc_req_parse_error(tpAniSirGlobal mac_ctx,
 					  tpPESession session,
 					  tpSirAssocReq assoc_req,
 					  uint8_t sub_type, uint8_t *frm_body,
-					  uint8_t frame_len)
+					  uint32_t frame_len)
 {
 	tSirRetStatus status;
 
@@ -1716,7 +1716,7 @@ void lim_process_assoc_req_frame(tpAniSirGlobal mac_ctx, uint8_t *rx_pkt_info,
 	bool pmf_connection = false, assoc_req_copied = false;
 	uint8_t update_ctx, *frm_body;
 	uint16_t peer_idx, assoc_id = 0;
-	int32_t frame_len;
+	uint32_t frame_len;
 	uint32_t phy_mode;
 	tHalBitVal qos_mode;
 	tpSirMacMgmtHdr hdr;