Browse Source

qcacmn: 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: Ib49b2ac4747fce3610da73a1d29c67ccaaeaad65
CRs-Fixed: 2390282
gaurank kathpalia 6 years ago
parent
commit
f49f17ea85
2 changed files with 1 additions and 13 deletions
  1. 1 3
      wmi/inc/wmi_unified_param.h
  2. 0 10
      wmi/src/wmi_unified_tlv.c

+ 1 - 3
wmi/inc/wmi_unified_param.h

@@ -1187,7 +1187,6 @@ typedef struct {
 
 /**
  * struct peer_assoc_params - peer assoc cmd parameter
- * @peer_macaddr: peer mac address
  * @vdev_id: vdev id
  * @peer_new_assoc: peer association type
  * @peer_associd: peer association id
@@ -1243,7 +1242,6 @@ typedef struct {
  * @peer_ppet: Peer HE PPET info
  */
 struct peer_assoc_params {
-	wmi_host_mac_addr peer_macaddr;
 	uint32_t vdev_id;
 	uint32_t peer_new_assoc;
 	uint32_t peer_associd;
@@ -1289,8 +1287,8 @@ struct peer_assoc_params {
 	bool safe_mode_enabled;
 	bool amsdu_disable;
 	/* Use common structure */
-	uint8_t peer_mac[IEEE80211_ADDR_LEN];
 #endif
+	uint8_t peer_mac[IEEE80211_ADDR_LEN];
 	bool he_flag;
 	bool twt_requester;
 	bool twt_responder;

+ 0 - 10
wmi/src/wmi_unified_tlv.c

@@ -2118,22 +2118,12 @@ static inline void copy_peer_flags_tlv(
 }
 #endif
 
-#ifdef CONFIG_MCL
-static inline void copy_peer_mac_addr_tlv(
-		wmi_peer_assoc_complete_cmd_fixed_param * cmd,
-		struct peer_assoc_params *param)
-{
-	qdf_mem_copy(&cmd->peer_macaddr, &param->peer_macaddr,
-			sizeof(param->peer_macaddr));
-}
-#else
 static inline void copy_peer_mac_addr_tlv(
 		wmi_peer_assoc_complete_cmd_fixed_param * cmd,
 		struct peer_assoc_params *param)
 {
 	WMI_CHAR_ARRAY_TO_MAC_ADDR(param->peer_mac, &cmd->peer_macaddr);
 }
-#endif
 
 /**
  *  send_peer_assoc_cmd_tlv() - WMI peer assoc function