qcacmn: Deprecate WLAN_MACADDR_LEN

At some point WLAN_MACADDR_LEN was added to the driver, despite
QDF_MAC_ADDR_SIZE already serving the same purpose. There are cases
where these two macros are implicitly assumed to be the same value.
This is a classic single-source-of-truth violation, and only serves to
confuse developers. Deprecate WLAN_MACADDR_LEN and use
QDF_MAC_ADDR_SIZE instead.

Change-Id: I4e941d5e17d161a5810e693c89b95ae08f83c6b0
CRs-Fixed: 2179728
这个提交包含在:
Dustin Brown
2018-01-26 17:21:57 -08:00
提交者 snandini
父节点 013ae979a6
当前提交 fb6527630f
修改 9 个文件,包含 17 行新增17 行删除

查看文件

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2017 The Linux Foundation. All rights reserved.
* Copyright (c) 2013-2018 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -86,10 +86,10 @@ void wlan_roam_debug_log(uint8_t vdev_id, uint8_t op,
rec->peer_id = peer_id;
if (mac_addr)
qdf_mem_copy(rec->mac_addr.bytes, mac_addr,
WLAN_MACADDR_LEN);
QDF_MAC_ADDR_SIZE);
else
qdf_mem_zero(rec->mac_addr.bytes,
WLAN_MACADDR_LEN);
QDF_MAC_ADDR_SIZE);
rec->peer_obj = peer_obj;
rec->arg1 = arg1;
rec->arg2 = arg2;