From b22da3d8526a935aa31e086e63f60ff3246cb61c Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Sat, 09 Dec 2023 07:24:11 +0000
Subject: [PATCH] add stmac read mac form eeprom
---
kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_ccode.c | 15 ++++++---------
1 files changed, 6 insertions(+), 9 deletions(-)
diff --git a/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_ccode.c b/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_ccode.c
old mode 100644
new mode 100755
index 85a7bba..c1008f9
--- a/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_ccode.c
+++ b/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_ccode.c
@@ -1,5 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-
+// SPDX-License-Identifier: GPL-2.0
#ifdef CCODE_LIST
#ifdef CONFIG_COMPAT
#include <linux/compat.h>
@@ -17,7 +16,7 @@
#define CCODE_4359C0
#endif
#if defined(BCMPCIE)
-//#define CCODE_4375B4
+#define CCODE_4375B4
#endif
#ifdef BCMDBUS
#define CCODE_4358U
@@ -233,7 +232,7 @@
{BCM4354_CHIP_ID, 2, ccode_4356a2, "XZ/11"},
{BCM4356_CHIP_ID, 2, ccode_4356a2, "XZ/11"},
{BCM4359_CHIP_ID, 9, ccode_4359c0, "XZ/11"},
- {BCM4375_CHIP_ID, 5, ccode_4375b4, ""},
+ {BCM4375_CHIP_ID, 5, ccode_4375b4, "XZ/11"},
#endif
#ifdef BCMDBUS
{BCM43569_CHIP_ID, 2, ccode_4358u, "XW/0"},
@@ -265,11 +264,9 @@
}
}
- if (dhd->op_mode != DHD_FLAG_MFG_MODE) {
- if (bcmerror && ccode_ww && strlen(ccode_ww)>=4) {
- memcpy(cspec->ccode, ccode_ww, 2);
- cspec->rev = (int)simple_strtol(ccode_ww+3, NULL, 0);
- }
+ if (bcmerror && ccode_ww && strlen(ccode_ww)>=4) {
+ memcpy(cspec->ccode, ccode_ww, 2);
+ cspec->rev = (int)simple_strtol(ccode_ww+3, NULL, 0);
}
return bcmerror;
--
Gitblit v1.6.2