소스 검색

qcacld-3.0: Add correct BSSID in diag event report

Currently, host driver extracts the BSSID from pe session while
filling parameters in diag event report. For NDI, it caches BSSID
as self mac address.

To fix this, extract the BSSID from the input frame and report it
in diag event.

Change-Id: I413fe1b46f4a49e6fd090642c38d8d1c3790a04d
CRs-Fixed: 3624272
Rahul Gusain 1 년 전
부모
커밋
5dad988465
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      core/mac/src/pe/lim/lim_utils.c

+ 1 - 1
core/mac/src/pe/lim/lim_utils.c

@@ -4620,7 +4620,7 @@ static void lim_diag_fill_mgmt_event_report(struct mac_context *mac_ctx,
 	mgmt_event->mgmt_subtype = mac_hdr->fc.subType;
 	qdf_mem_copy(mgmt_event->self_mac_addr, session->self_mac_addr,
 		     QDF_MAC_ADDR_SIZE);
-	qdf_mem_copy(mgmt_event->bssid, session->bssId,
+	qdf_mem_copy(mgmt_event->bssid, mac_hdr->bssId,
 		     QDF_MAC_ADDR_SIZE);
 	length = session->ssId.length;
 	if (length > WLAN_SSID_MAX_LEN)