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.h | 97 +-----------------------------------------------
1 files changed, 2 insertions(+), 95 deletions(-)
diff --git a/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd.h b/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd.h
old mode 100644
new mode 100755
index d51fe1a..3b70e18
--- a/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd.h
+++ b/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd.h
@@ -47,8 +47,6 @@
#include <linux/proc_fs.h>
#include <asm/uaccess.h>
#include <asm/unaligned.h>
-#include <linux/fs.h>
-#include <linux/namei.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0)
#include <uapi/linux/sched/types.h>
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
@@ -1929,9 +1927,6 @@
struct dhd_conf *conf; /* Bus module handle */
void *adapter; /* adapter information, interrupt, fw path etc. */
void *event_params;
-#ifdef WL_TIMER
- void *timer_params;
-#endif /* WL_TIMER */
#ifdef BCMDBUS
bool dhd_remove;
#endif /* BCMDBUS */
@@ -3703,8 +3698,8 @@
#ifdef DBG_PKT_MON
/* Enable DHD PKT MON spin lock/unlock */
-#define DHD_PKT_MON_LOCK(lock, flags) (flags) = osl_mutex_lock(lock)
-#define DHD_PKT_MON_UNLOCK(lock, flags) osl_mutex_unlock(lock, (flags))
+#define DHD_PKT_MON_LOCK(lock, flags) (flags) = osl_spin_lock(lock)
+#define DHD_PKT_MON_UNLOCK(lock, flags) osl_spin_unlock(lock, (flags))
#endif /* DBG_PKT_MON */
#ifdef DHD_PKT_LOGGING
@@ -4655,94 +4650,6 @@
#error "DHD_DEBUGABILITY_LOG_DUMP_RING without DEBUGABILITY"
#endif /* DEBUGABILITY */
#endif /* DHD_DEBUGABILITY_LOG_DUMP_RING */
-
-#if defined(__linux__)
-#ifdef DHD_SUPPORT_VFS_CALL
-static INLINE struct file *dhd_filp_open(const char *filename, int flags, int mode)
-{
- return filp_open(filename, flags, mode);
-}
-
-static INLINE int dhd_filp_close(void *image, void *id)
-{
- return filp_close((struct file *)image, id);
-}
-
-static INLINE int dhd_i_size_read(const struct inode *inode)
-{
- return i_size_read(inode);
-}
-
-static INLINE int dhd_kernel_read_compat(struct file *fp, loff_t pos, void *buf, size_t count)
-{
- return kernel_read_compat(fp, pos, buf, count);
-}
-
-static INLINE int dhd_vfs_read(struct file *filep, char *buf, size_t size, loff_t *pos)
-{
- return vfs_read(filep, buf, size, pos);
-}
-
-static INLINE int dhd_vfs_write(struct file *filep, char *buf, size_t size, loff_t *pos)
-{
- return vfs_write(filep, buf, size, pos);
-}
-
-static INLINE int dhd_vfs_fsync(struct file *filep, int datasync)
-{
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 35))
- return vfs_fsync(filep, datasync);
-#else
- return vfs_fsync(filep, filep->f_path.dentry, 0);
-#endif
-}
-
-static INLINE int dhd_vfs_stat(char *buf, struct kstat *stat)
-{
- return vfs_stat(buf, stat);
-}
-
-static INLINE int dhd_kern_path(char *name, int flags, struct path *file_path)
-{
- return kern_path(name, flags, file_path);
-}
-
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 19, 0))
-#define DHD_VFS_INODE(dir) (dir->d_inode)
-#else
-#define DHD_VFS_INODE(dir) d_inode(dir)
-#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(3, 19, 0) */
-
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0))
-#define DHD_VFS_UNLINK(dir, b, c) vfs_unlink(DHD_VFS_INODE(dir), b)
-#else
-#define DHD_VFS_UNLINK(dir, b, c) vfs_unlink(DHD_VFS_INODE(dir), b, c)
-#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0) */
-
-#else
-#define DHD_VFS_UNLINK(dir, b, c) 0
-
-static INLINE struct file *dhd_filp_open(const char *filename, int flags, int mode)
- { return NULL; }
-static INLINE int dhd_filp_close(void *image, void *id)
- { return 0; }
-static INLINE int dhd_i_size_read(const struct inode *inode)
- { return 0; }
-static INLINE int dhd_kernel_read_compat(struct file *fp, loff_t pos, void *buf, size_t count)
- { return 0; }
-static INLINE int dhd_vfs_read(struct file *filep, char *buf, size_t size, loff_t *pos)
- { return 0; }
-static INLINE int dhd_vfs_write(struct file *filep, char *buf, size_t size, loff_t *pos)
- { return 0; }
-static INLINE int dhd_vfs_fsync(struct file *filep, int datasync)
- { return 0; }
-static INLINE int dhd_vfs_stat(char *buf, struct kstat *stat)
- { return 0; }
-static INLINE int dhd_kern_path(char *name, int flags, struct path *file_path)
- { return 0; }
-#endif /* DHD_SUPPORT_VFS_CALL */
-#endif /* __linux__ */
-
#ifdef WL_MONITOR
void dhd_set_monitor(dhd_pub_t *pub, int ifidx, int val);
#endif /* WL_MONITOR */
--
Gitblit v1.6.2