Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d3e8347c authored by Ashish Kumar Dhanotiya's avatar Ashish Kumar Dhanotiya Committed by nshrivas
Browse files

qcacld-3.0: Update correct MAC address for dump station ops

When MAC address is changed dynamically and dump station
command is invoked driver is not giving the updated MAC
address as the output of the command.

To address this issue give the correct MAC address from
net device.

Change-Id: I4effb1fe4d52f35c0df7beb7884e7943215d73f8
CRs-fixed: 2463418
parent 5709227a
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -4646,17 +4646,10 @@ static int __wlan_hdd_cfg80211_dump_station(struct wiphy *wiphy,
				int idx, u8 *mac,
				struct station_info *sinfo)
{
	struct hdd_context *hdd_ctx = (struct hdd_context *) wiphy_priv(wiphy);

	hdd_debug("%s: idx %d", __func__, idx);
	if (idx != 0)
		return -ENOENT;
	if (hdd_ctx->num_provisioned_addr)
		qdf_mem_copy(mac, hdd_ctx->provisioned_mac_addr[0].bytes,
			     QDF_MAC_ADDR_SIZE);
	else
		qdf_mem_copy(mac, hdd_ctx->derived_mac_addr[0].bytes,
			     QDF_MAC_ADDR_SIZE);
	qdf_mem_copy(mac, dev->dev_addr, QDF_MAC_ADDR_SIZE);
	return __wlan_hdd_cfg80211_get_station(wiphy, dev, mac, sinfo);
}