Selaa lähdekoodia

qcacld-3.0: Use the peer mac address array instead of structure

Currently the driver uses structure for peer mac address
to store the mac address.

Use the already existing peer mac address array for the same.

Change-Id: Id3715f6abbbf23f4f8d1836eb548b5193a62500a
gaurank kathpalia 6 vuotta sitten
vanhempi
sitoutus
c380383cbf
1 muutettua tiedostoa jossa 5 lisäystä ja 2 poistoa
  1. 5 2
      core/wma/src/wma_mgmt.c

+ 5 - 2
core/wma/src/wma_mgmt.c

@@ -1333,9 +1333,12 @@ QDF_STATUS wma_send_peer_assoc(tp_wma_handle wma,
 	    || (STA_ENTRY_TDLS_PEER == params->staType)
 #endif /* FEATURE_WLAN_TDLS */
 	    )
-		WMI_CHAR_ARRAY_TO_MAC_ADDR(params->staMac, &cmd->peer_macaddr);
+		qdf_mem_copy(cmd->peer_mac, params->staMac,
+						sizeof(cmd->peer_mac));
 	else
-		WMI_CHAR_ARRAY_TO_MAC_ADDR(params->bssId, &cmd->peer_macaddr);
+		qdf_mem_copy(cmd->peer_mac, params->bssId,
+						sizeof(cmd->peer_mac));
+
 	cmd->vdev_id = params->smesessionId;
 	cmd->peer_new_assoc = 1;
 	cmd->peer_associd = params->assocId;