From 6df58c6231e4aec7115f51adfa10ee8bea5052bb Mon Sep 17 00:00:00 2001
From: "deepak.s" <deepak.s@adlinktech.com>
Date: Fri, 17 Oct 2025 10:41:23 +0530
Subject: [PATCH 6/9] LECMTKI1200: wifi bt support

Signed-off-by: deepak.s <deepak.s@adlinktech.com>
---
 .../marvell/mrvl8997/wlan_src/mlinux/moal_eth_ioctl.c         | 2 +-
 .../net/wireless/marvell/mrvl8997/wlan_src/mlinux/moal_shim.c | 2 +-
 .../wireless/marvell/mrvl8997/wlan_src/mlinux/moal_uap_wext.c | 2 +-
 .../net/wireless/marvell/mrvl8997/wlan_src/mlinux/moal_wext.c | 4 ++--
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/net/wireless/marvell/mrvl8997/wlan_src/mlinux/moal_eth_ioctl.c b/drivers/net/wireless/marvell/mrvl8997/wlan_src/mlinux/moal_eth_ioctl.c
index 51014bbb727d..cceddddbd2df 100755
--- a/drivers/net/wireless/marvell/mrvl8997/wlan_src/mlinux/moal_eth_ioctl.c
+++ b/drivers/net/wireless/marvell/mrvl8997/wlan_src/mlinux/moal_eth_ioctl.c
@@ -5909,7 +5909,7 @@ static int woal_priv_get_ap(moal_private *priv, t_u8 *respbuf, t_u32 respbuflen)
 	if (bss_info.media_connected == MTRUE) {
 		moal_memcpy_ext(priv->phandle, mwr->u.ap_addr.sa_data,
 				&bss_info.bssid, MLAN_MAC_ADDR_LENGTH,
-				sizeof(mwr->u.ap_addr.sa_data));
+				14);
 	} else {
 		memset(mwr->u.ap_addr.sa_data, 0, MLAN_MAC_ADDR_LENGTH);
 	}
diff --git a/drivers/net/wireless/marvell/mrvl8997/wlan_src/mlinux/moal_shim.c b/drivers/net/wireless/marvell/mrvl8997/wlan_src/mlinux/moal_shim.c
index afc8e930d76c..075c15475cb3 100755
--- a/drivers/net/wireless/marvell/mrvl8997/wlan_src/mlinux/moal_shim.c
+++ b/drivers/net/wireless/marvell/mrvl8997/wlan_src/mlinux/moal_shim.c
@@ -2421,7 +2421,7 @@ mlan_status moal_recv_event(t_void *pmoal, pmlan_event pmevent)
 			memset(wrqu.ap_addr.sa_data, 0x00, ETH_ALEN);
 			moal_memcpy_ext(priv->phandle, wrqu.ap_addr.sa_data,
 					pmevent->event_buf, ETH_ALEN,
-					sizeof(wrqu.ap_addr.sa_data));
+					14);
 			wrqu.ap_addr.sa_family = ARPHRD_ETHER;
 			wireless_send_event(priv->netdev, SIOCGIWAP, &wrqu,
 					    NULL);
diff --git a/drivers/net/wireless/marvell/mrvl8997/wlan_src/mlinux/moal_uap_wext.c b/drivers/net/wireless/marvell/mrvl8997/wlan_src/mlinux/moal_uap_wext.c
index c74e5424cd4c..d8bf48da7ac4 100755
--- a/drivers/net/wireless/marvell/mrvl8997/wlan_src/mlinux/moal_uap_wext.c
+++ b/drivers/net/wireless/marvell/mrvl8997/wlan_src/mlinux/moal_uap_wext.c
@@ -224,7 +224,7 @@ static int woal_get_wap(struct net_device *dev, struct iw_request_info *info,
 	if (priv->bss_started)
 		moal_memcpy_ext(priv->phandle, awrq->sa_data,
 				priv->current_addr, MLAN_MAC_ADDR_LENGTH,
-				sizeof(awrq->sa_data));
+				14);
 	else
 		memset(awrq->sa_data, 0, MLAN_MAC_ADDR_LENGTH);
 	awrq->sa_family = ARPHRD_ETHER;
diff --git a/drivers/net/wireless/marvell/mrvl8997/wlan_src/mlinux/moal_wext.c b/drivers/net/wireless/marvell/mrvl8997/wlan_src/mlinux/moal_wext.c
index 7e918999966a..8e15cecd8f8a 100755
--- a/drivers/net/wireless/marvell/mrvl8997/wlan_src/mlinux/moal_wext.c
+++ b/drivers/net/wireless/marvell/mrvl8997/wlan_src/mlinux/moal_wext.c
@@ -612,7 +612,7 @@ static int woal_get_wap(struct net_device *dev, struct iw_request_info *info,
 
 	if (bss_info.media_connected == MTRUE)
 		moal_memcpy_ext(priv->phandle, awrq->sa_data, &bss_info.bssid,
-				MLAN_MAC_ADDR_LENGTH, sizeof(awrq->sa_data));
+				MLAN_MAC_ADDR_LENGTH,14 );
 	else
 		memset(awrq->sa_data, 0, MLAN_MAC_ADDR_LENGTH);
 	awrq->sa_family = ARPHRD_ETHER;
@@ -2946,7 +2946,7 @@ static int woal_get_scan(struct net_device *dev, struct iw_request_info *info,
 		iwe.u.ap_addr.sa_family = ARPHRD_ETHER;
 		moal_memcpy_ext(priv->phandle, iwe.u.ap_addr.sa_data,
 				&scan_table[i].mac_address, ETH_ALEN,
-				sizeof(iwe.u.ap_addr.sa_data));
+				14);
 
 		iwe.len = IW_EV_ADDR_LEN;
 		current_ev = IWE_STREAM_ADD_EVENT(info, current_ev, end_buf,
-- 
2.43.0

