qca-wifi: Pass proper address to sta_kickout callback
While invoking sta_kickout callback from dp layer, pass
proper mac-address.
Change-Id: I770a5b3f120fbfa53055348350005309f841867b
diff --git a/dp/wifi3.0/dp_txrx_wds.h b/dp/wifi3.0/dp_txrx_wds.h
index 18e34db..5c5b328 100644
--- a/dp/wifi3.0/dp_txrx_wds.h
+++ b/dp/wifi3.0/dp_txrx_wds.h
@@ -1,6 +1,6 @@
/*
- * Copyright (c) 2016-2019 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2016-2020 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
@@ -264,6 +264,9 @@
*/
if ((sa_peer->vdev->opmode == wlan_op_mode_ap) &&
!sa_peer->delete_in_progress) {
+ qdf_mem_copy(wds_src_mac,
+ (qdf_nbuf_data(nbuf) + QDF_MAC_ADDR_SIZE),
+ QDF_MAC_ADDR_SIZE);
sa_peer->delete_in_progress = true;
if (soc->cdp_soc.ol_ops->peer_sta_kickout) {
soc->cdp_soc.ol_ops->peer_sta_kickout(