Эх сурвалжийг харах

qcacld-3.0: Fix compilation issues

Observing compilation errors when FEATURE_WLAN_LFR_METRICS
flag is enabled.

Add changes to fix the compilation errors

Change-Id: I9272cf26e590879f327629e21c76b991d077ad5c
CRs-Fixed: 2053760
Sreelakshmi Konamki 7 жил өмнө
parent
commit
c931b377ba

+ 3 - 3
core/hdd/src/wlan_hdd_cfg80211.c

@@ -12960,7 +12960,7 @@ QDF_STATUS wlan_hdd_cfg80211_roam_metrics_preauth(hdd_adapter_t *pAdapter,
 	wrqu.data.length = scnprintf(metrics_notification,
 				     sizeof(metrics_notification),
 				     "QCOM: LFR_PREAUTH_INIT " MAC_ADDRESS_STR,
-				     MAC_ADDR_ARRAY(pRoamInfo->bssid));
+				     MAC_ADDR_ARRAY(pRoamInfo->bssid.bytes));
 
 	wireless_send_event(pAdapter->dev, IWEVCUSTOM, &wrqu,
 			    metrics_notification);
@@ -13001,7 +13001,7 @@ wlan_hdd_cfg80211_roam_metrics_preauth_status(hdd_adapter_t *pAdapter,
 
 	scnprintf(metrics_notification, sizeof(metrics_notification),
 		  "QCOM: LFR_PREAUTH_STATUS " MAC_ADDRESS_STR,
-		  MAC_ADDR_ARRAY(pRoamInfo->bssid));
+		  MAC_ADDR_ARRAY(pRoamInfo->bssid.bytes));
 
 	if (1 == preauth_status)
 		strlcat(metrics_notification, " true",
@@ -13052,7 +13052,7 @@ QDF_STATUS wlan_hdd_cfg80211_roam_metrics_handover(hdd_adapter_t *pAdapter,
 				     sizeof(metrics_notification),
 				     "QCOM: LFR_PREAUTH_HANDOVER "
 				     MAC_ADDRESS_STR,
-				     MAC_ADDR_ARRAY(pRoamInfo->bssid));
+				     MAC_ADDR_ARRAY(pRoamInfo->bssid.bytes));
 
 	wireless_send_event(pAdapter->dev, IWEVCUSTOM, &wrqu,
 			    metrics_notification);

+ 2 - 2
core/sme/src/csr/csr_neighbor_roam.c

@@ -115,8 +115,8 @@ void csr_neighbor_roam_send_lfr_metric_event(
 	if (NULL == roam_info) {
 		sme_err("Memory allocation failed!");
 	} else {
-		qdf_mem_copy((void *)roam_info->bssid,
-			     (void *)bssid, sizeof(*roam_info));
+		qdf_mem_copy((void *)roam_info->bssid.bytes,
+			     (void *)bssid, sizeof(struct qdf_mac_addr));
 		csr_roam_call_callback(mac_ctx, session_id, roam_info, 0,
 			status, 0);
 		qdf_mem_free(roam_info);