qca-wifi: Consolidate IEEE80211_ADDR_LEN to QDF_MAC_ADDR_SIZE
Consolidate multiple (redundant) IEEE80211_ADDR_LEN to QDF_MAC_ADDR_SIZE
Change-Id: I30790ed7b8e6299353e639fc4cd39f72e8e699cd
CRs-Fixed: 2439274
diff --git a/target_if/cfr/src/target_if_cfr_8074v2.c b/target_if/cfr/src/target_if_cfr_8074v2.c
index 430e60e..d236ba5 100644
--- a/target_if/cfr/src/target_if_cfr_8074v2.c
+++ b/target_if/cfr/src/target_if_cfr_8074v2.c
@@ -446,7 +446,7 @@
header->u.meta_v1.timestamp = tx_evt_param.timestamp_us;
qdf_mem_copy(&header->u.meta_v1.peer_addr[0],
- &tx_evt_param.peer_mac_addr.bytes[0], IEEE80211_ADDR_LEN);
+ &tx_evt_param.peer_mac_addr.bytes[0], QDF_MAC_ADDR_SIZE);
status = correlate_and_relay(pdev, cookie, lut,
CORRELATE_TX_EV_MODULE_ID);
diff --git a/umac/cfr/dispatcher/inc/wlan_cfr_utils_api.h b/umac/cfr/dispatcher/inc/wlan_cfr_utils_api.h
index 38e7cc0..aa8c80e 100644
--- a/umac/cfr/dispatcher/inc/wlan_cfr_utils_api.h
+++ b/umac/cfr/dispatcher/inc/wlan_cfr_utils_api.h
@@ -40,7 +40,6 @@
#define DBR_EVENT_TIMEOUT_IN_MS_CFR 1
#define DBR_NUM_RESP_PER_EVENT_CFR 1
-#define IEEE80211_ADDR_LEN 6
enum cfrmetaversion {
CFR_META_VERSION_NONE,
CFR_META_VERSION_1,
@@ -87,7 +86,7 @@
};
struct cfr_metadata_version_1 {
- u_int8_t peer_addr[IEEE80211_ADDR_LEN];
+ u_int8_t peer_addr[QDF_MAC_ADDR_SIZE];
u_int8_t status;
u_int8_t capture_bw;
u_int8_t channel_bw;