mirror of
https://github.com/linux-sunxi/meta-sunxi.git
synced 2024-11-16 02:08:23 +01:00
36 lines
1.3 KiB
Diff
36 lines
1.3 KiB
Diff
|
From 9211a92d07e9a43fce104f87f9d45e890257b699 Mon Sep 17 00:00:00 2001
|
||
|
From: pbiel <pbiel7@gmail.com>
|
||
|
Date: Tue, 7 Mar 2023 20:28:44 +0100
|
||
|
Subject: [PATCH] wireless: fix setting mac address for netdev in uwe5622
|
||
|
unisocwifi driver
|
||
|
|
||
|
---
|
||
|
drivers/net/wireless/uwe5622/unisocwifi/main.c | 4 +++-
|
||
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/drivers/net/wireless/uwe5622/unisocwifi/main.c b/drivers/net/wireless/uwe5622/unisocwifi/main.c
|
||
|
index 21efdf4e0..566a9a7f3 100644
|
||
|
--- a/drivers/net/wireless/uwe5622/unisocwifi/main.c
|
||
|
+++ b/drivers/net/wireless/uwe5622/unisocwifi/main.c
|
||
|
@@ -1356,6 +1356,7 @@ static struct sprdwl_vif *sprdwl_register_netdev(struct sprdwl_priv *priv,
|
||
|
struct wireless_dev *wdev;
|
||
|
struct sprdwl_vif *vif;
|
||
|
int ret;
|
||
|
+ u8 target_mac_addr[ETH_ALEN] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
|
||
|
|
||
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 17, 0))
|
||
|
ndev = alloc_netdev(sizeof(*vif), name, NET_NAME_UNKNOWN, ether_setup);
|
||
|
@@ -1411,7 +1412,8 @@ static struct sprdwl_vif *sprdwl_register_netdev(struct sprdwl_priv *priv,
|
||
|
ndev->features |= NETIF_F_SG;
|
||
|
SET_NETDEV_DEV(ndev, wiphy_dev(priv->wiphy));
|
||
|
|
||
|
- sprdwl_set_mac_addr(vif, addr, ndev->dev_addr);
|
||
|
+ sprdwl_set_mac_addr(vif, addr, target_mac_addr);
|
||
|
+ dev_addr_set(ndev, target_mac_addr);
|
||
|
|
||
|
#ifdef CONFIG_P2P_INTF
|
||
|
if (type == NL80211_IFTYPE_P2P_DEVICE)
|
||
|
--
|
||
|
2.34.1
|
||
|
|