qcacld-3.0: Remove QDF_MAC_ADDR_BROADCAST_INITIALIZER
QDF_MAC_ADDR_BROADCAST_INITIALIZER has been depreciated in favor of
QDF_MAC_ADDR_BCAST_INIT. Replace all usages with the new macro.
Change-Id: Ie5c0816f82169d5e0c831a3166957dc59c1d4ccb
CRs-Fixed: 2176474
diff --git a/core/hdd/src/wlan_hdd_assoc.c b/core/hdd/src/wlan_hdd_assoc.c
index 5c68c52..fd70b32 100644
--- a/core/hdd/src/wlan_hdd_assoc.c
+++ b/core/hdd/src/wlan_hdd_assoc.c
@@ -1491,8 +1491,7 @@
struct hdd_station_ctx *sta_ctx = WLAN_HDD_GET_STATION_CTX_PTR(adapter);
int ret = 0;
struct qdf_mac_addr *peer_mac = NULL;
- struct qdf_mac_addr broadcastMacAddr =
- QDF_MAC_ADDR_BROADCAST_INITIALIZER;
+ struct qdf_mac_addr broadcastMacAddr = QDF_MAC_ADDR_BCAST_INIT;
if (eConnectionState_IbssDisconnected ==
sta_ctx->conn_info.connState) {
/*
@@ -3300,8 +3299,7 @@
{
struct hdd_station_ctx *hdd_sta_ctx =
WLAN_HDD_GET_STATION_CTX_PTR(adapter);
- struct qdf_mac_addr broadcastMacAddr =
- QDF_MAC_ADDR_BROADCAST_INITIALIZER;
+ struct qdf_mac_addr broadcastMacAddr = QDF_MAC_ADDR_BCAST_INIT;
int ret;
if (NULL == roam_info) {
diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c
index 1f81971..0da23b2 100644
--- a/core/hdd/src/wlan_hdd_hostapd.c
+++ b/core/hdd/src/wlan_hdd_hostapd.c
@@ -4494,8 +4494,8 @@
int *value = (int *)extra;
int set_value;
int ret;
- struct qdf_mac_addr bssid = QDF_MAC_ADDR_BROADCAST_INITIALIZER;
- struct qdf_mac_addr selfMac = QDF_MAC_ADDR_BROADCAST_INITIALIZER;
+ struct qdf_mac_addr bssid = QDF_MAC_ADDR_BCAST_INIT;
+ struct qdf_mac_addr selfMac = QDF_MAC_ADDR_BCAST_INIT;
ENTER_DEV(dev);
@@ -5472,7 +5472,7 @@
struct hdd_adapter *adapter = netdev_priv(dev);
struct hdd_context *hddctx;
char macaddrarray[MAC_ADDRESS_STR_LEN];
- struct qdf_mac_addr macaddress = QDF_MAC_ADDR_BROADCAST_INITIALIZER;
+ struct qdf_mac_addr macaddress = QDF_MAC_ADDR_BCAST_INIT;
int ret;
char *rssi_info_output = extra;
struct sir_peer_sta_info peer_sta_info;
diff --git a/core/hdd/src/wlan_hdd_ioctl.c b/core/hdd/src/wlan_hdd_ioctl.c
index c778eb0..968b46c 100644
--- a/core/hdd/src/wlan_hdd_ioctl.c
+++ b/core/hdd/src/wlan_hdd_ioctl.c
@@ -5657,8 +5657,8 @@
int txPower;
QDF_STATUS smeStatus;
uint8_t *value = command;
- struct qdf_mac_addr bssid = QDF_MAC_ADDR_BROADCAST_INITIALIZER;
- struct qdf_mac_addr selfMac = QDF_MAC_ADDR_BROADCAST_INITIALIZER;
+ struct qdf_mac_addr bssid = QDF_MAC_ADDR_BCAST_INIT;
+ struct qdf_mac_addr selfMac = QDF_MAC_ADDR_BCAST_INIT;
status = hdd_parse_setmaxtxpower_command(value, &txPower);
if (status) {
diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c
index 24a029b..ed67174 100644
--- a/core/hdd/src/wlan_hdd_main.c
+++ b/core/hdd/src/wlan_hdd_main.c
@@ -5573,7 +5573,7 @@
{
struct hdd_adapter *adapter;
#ifndef MSM_PLATFORM
- struct qdf_mac_addr bcastMac = QDF_MAC_ADDR_BROADCAST_INITIALIZER;
+ struct qdf_mac_addr bcastMac = QDF_MAC_ADDR_BCAST_INIT;
#endif
eConnectionState connState;
diff --git a/core/hdd/src/wlan_hdd_nan_datapath.c b/core/hdd/src/wlan_hdd_nan_datapath.c
index 9ced9e0..9cb61a5 100644
--- a/core/hdd/src/wlan_hdd_nan_datapath.c
+++ b/core/hdd/src/wlan_hdd_nan_datapath.c
@@ -601,7 +601,7 @@
struct hdd_station_ctx *sta_ctx;
struct csr_roam_info roam_info = {0};
struct bss_description tmp_bss_descp = {0};
- struct qdf_mac_addr bc_mac_addr = QDF_MAC_ADDR_BROADCAST_INITIALIZER;
+ struct qdf_mac_addr bc_mac_addr = QDF_MAC_ADDR_BCAST_INIT;
hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD);
if (!hdd_ctx) {
diff --git a/core/hdd/src/wlan_hdd_power.c b/core/hdd/src/wlan_hdd_power.c
index 6c9d9bb..f8b57f3 100644
--- a/core/hdd/src/wlan_hdd_power.c
+++ b/core/hdd/src/wlan_hdd_power.c
@@ -665,7 +665,7 @@
struct hdd_station_ctx *sta_ctx;
tSirKeepAliveReq req = {
.packetType = SIR_KEEP_ALIVE_UNSOLICIT_ARP_RSP,
- .dest_macaddr = QDF_MAC_ADDR_BROADCAST_INITIALIZER,
+ .dest_macaddr = QDF_MAC_ADDR_BCAST_INIT,
};
if (!adapter) {
@@ -1999,8 +1999,8 @@
{
struct hdd_context *hdd_ctx = (struct hdd_context *) wiphy_priv(wiphy);
tHalHandle hHal = NULL;
- struct qdf_mac_addr bssid = QDF_MAC_ADDR_BROADCAST_INITIALIZER;
- struct qdf_mac_addr selfMac = QDF_MAC_ADDR_BROADCAST_INITIALIZER;
+ struct qdf_mac_addr bssid = QDF_MAC_ADDR_BCAST_INIT;
+ struct qdf_mac_addr selfMac = QDF_MAC_ADDR_BCAST_INIT;
int status;
ENTER();
diff --git a/core/hdd/src/wlan_hdd_softap_tx_rx.c b/core/hdd/src/wlan_hdd_softap_tx_rx.c
index e1c86d0..2eea73e 100644
--- a/core/hdd/src/wlan_hdd_softap_tx_rx.c
+++ b/core/hdd/src/wlan_hdd_softap_tx_rx.c
@@ -1001,8 +1001,7 @@
{
QDF_STATUS qdf_status = QDF_STATUS_E_FAILURE;
struct hdd_context *hdd_ctx = WLAN_HDD_GET_CTX(adapter);
- struct qdf_mac_addr broadcastMacAddr =
- QDF_MAC_ADDR_BROADCAST_INITIALIZER;
+ struct qdf_mac_addr broadcastMacAddr = QDF_MAC_ADDR_BCAST_INIT;
struct hdd_ap_ctx *ap_ctx;
ap_ctx = WLAN_HDD_GET_AP_CTX_PTR(adapter);