ソースを参照

qcacld-3.0: Fix to send correct length for ML prb req

Set and send correct length while sending ML probe request.

Change-Id: I3a6270e554bedcc7584e02b50b7d340fe52a28a9
CRs-Fixed: 3224568
Amruta Kulkarni 2 年 前
コミット
946e472b07
1 ファイル変更2 行追加1 行削除
  1. 2 1
      core/mac/src/pe/lim/lim_send_management_frames.c

+ 2 - 1
core/mac/src/pe/lim/lim_send_management_frames.c

@@ -173,6 +173,7 @@ lim_populate_ml_probe_req(struct mac_context *mac,
 	*ml_prb_req_ie = (uint8_t *)ml_prb_req;
 	/* Fill the Element ID IE Type (0xFF) */
 	ml_prb_req->ml_ie_ff.elem_id = WLAN_ELEMID_EXTN_ELEM;
+	ml_probe_len += sizeof(struct ie_header);
 	/* Fill the Multi link extn Element ID IE Type (0x6B) */
 	ml_prb_req->ml_ie_ff.elem_id_ext = WLAN_EXTN_ELEMID_MULTI_LINK;
 	ml_probe_len++;
@@ -224,7 +225,7 @@ lim_populate_ml_probe_req(struct mac_context *mac,
 
 	pe_nofl_debug("Send ML probe req %d", ml_probe_len);
 	QDF_TRACE_HEX_DUMP(QDF_MODULE_ID_PE, QDF_TRACE_LEVEL_DEBUG,
-			   ml_probe, ml_probe_len + 2);
+			   ml_probe, ml_probe_len);
 
 	return QDF_STATUS_SUCCESS;
 }