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_pktlog.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_pktlog.c b/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_pktlog.c
old mode 100644
new mode 100755
index d491cd0..0d57344
--- a/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_pktlog.c
+++ b/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_pktlog.c
@@ -1204,8 +1204,8 @@
set_fs(KERNEL_DS);
file_mode = O_CREAT | O_WRONLY;
- w_pcap_fp = dhd_filp_open(pktlogdump_path, file_mode, 0664);
- if (IS_ERR(w_pcap_fp) || (w_pcap_fp == NULL)) {
+ w_pcap_fp = filp_open(pktlogdump_path, file_mode, 0664);
+ if (IS_ERR(w_pcap_fp)) {
DHD_ERROR(("%s: Couldn't open file '%s' err %ld\n",
__FUNCTION__, pktlogdump_path, PTR_ERR(w_pcap_fp)));
ret = BCME_ERROR;
@@ -1219,14 +1219,14 @@
}
/* Sync file from filesystem to physical media */
- ret = dhd_vfs_fsync(w_pcap_fp, 0);
+ ret = vfs_fsync(w_pcap_fp, 0);
if (ret < 0) {
DHD_ERROR(("%s(): sync pcap file error, err = %d\n", __FUNCTION__, ret));
goto fail;
}
fail:
if (!IS_ERR(w_pcap_fp)) {
- dhd_filp_close(w_pcap_fp, NULL);
+ filp_close(w_pcap_fp, NULL);
}
set_fs(old_fs);
--
Gitblit v1.6.2