安装 RTL8723DE 802.11b/g/n 驱动程序时出现“make”命令错误

安装 RTL8723DE 802.11b/g/n 驱动程序时出现“make”命令错误
lspci -nn | grep -i network

Realtek Semiconductor Co., Ltd. RTL8723DE 802.11b/g/n PCIe Adapter [10ec:d723]

我正在尝试在 RHEL 7.2(HP 笔记本电脑)中安装上述 wifi 驱动程序,然后出现错误消息。

yum install rpmfusion-nonfree-release-7-4.noarch
yum install rpmfusion-free-release-7-4.noarch
yum install kernel-headers
yum install kernel-devel

git clone -b extended --single-branch https://github.com/lwfinger/rtlwifi_new.git
cd rtlwifi_new

克隆并运行以下命令后,我遇到了一个错误。

[root@oracle-12c-localdomain rtlwifi_new]# make clean
[root@oracle-12c-localdomain rtlwifi_new]# make

部分错误粘贴如下:

    make -C /lib/modules/3.10.0-957.1.3.el7.x86_64/build M=/home/gsk/Downloads/rtlwifi_new modules
make[1]: Entering directory `/usr/src/kernels/3.10.0-957.1.3.el7.x86_64'
  CC [M]  /home/gsk/Downloads/rtlwifi_new/base.o
In file included from /home/gsk/Downloads/rtlwifi_new/base.c:26:0:
/home/gsk/Downloads/rtlwifi_new/wifi.h:67:21: error: redefinition of ‘skb_put_data’
 static inline void *skb_put_data(struct sk_buff *skb, const void *data,
                     ^
In file included from include/linux/if_ether.h:23:0,
                 from include/linux/etherdevice.h:25,
                 from /home/gsk/Downloads/rtlwifi_new/wifi.h:33,
                 from /home/gsk/Downloads/rtlwifi_new/base.c:26:
include/linux/skbuff.h:1985:21: note: previous definition of ‘skb_put_data’ was here
 static inline void *skb_put_data(struct sk_buff *skb, const void *data,
                     ^
In file included from /home/gsk/Downloads/rtlwifi_new/base.c:26:0:
/home/gsk/Downloads/rtlwifi_new/wifi.h:77:21: error: redefinition of ‘skb_put_zero’
 static inline void *skb_put_zero(struct sk_buff *skb, unsigned int len)
                     ^
In file included from include/linux/if_ether.h:23:0,
                 from include/linux/etherdevice.h:25,
                 from /home/gsk/Downloads/rtlwifi_new/wifi.h:33,
                 from /home/gsk/Downloads/rtlwifi_new/base.c:26:
include/linux/skbuff.h:1976:21: note: previous definition of ‘skb_put_zero’ was here
 static inline void *skb_put_zero(struct sk_buff *skb, unsigned int len)
                     ^
In file included from /home/gsk/Downloads/rtlwifi_new/base.c:26:0:
/home/gsk/Downloads/rtlwifi_new/wifi.h:96:15: error: conflicting types for ‘time64_t’
 typedef __s32 time64_t;
               ^

请提供任何线索。提前致谢 :)

答案1

README 的第一行写着:“此代码将在任何 4.2 及更新版本的内核上构建”。您无法将此驱动程序与 RHEL 7 一起使用。您应该向 Red Hat 提交支持案例以获得进一步的帮助。

相关内容