CentOS7发现wifi设备使用lsmod但nmcli

CentOS7发现wifi设备使用lsmod但nmcli

lsmod在 CentOS 7 中将内核更新到版本 4.10 后,我可以使用该命令找到我的无线设备(rtl8188eu)

# uname -r
4.10.2-1.el7.elrepo.x86_64

# lsmod | grep 8188
r8188eu               425984  0
cfg80211              593920  1 r8188eu

但我无法使用nmcli或连接到我的 AP找到它

# nmcli d
DEVICE      TYPE      STATE      CONNECTION 
virbr0      bridge    connected  virbr0     
enp0s25     ethernet  connected  enp0s25    
lo          loopback  unmanaged  --         
virbr0-nic  tun       unmanaged  --       

我怎么解决这个问题?

##############更新20170317后

命令“ip link”的输出,可以找到设备:

# ip link 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000 link/ether 3c:97:0e:c1:72:ea brd ff:ff:ff:ff:ff:ff 3: wlp0s26u1u2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 1000 link/ether 00:5a:39:d0:5f:b2 brd ff:ff:ff:ff:ff:ff 4: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT qlen 1000 link/ether 52:54:00:dd:7c:b2 brd ff:ff:ff:ff:ff:ff 5: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN mode DEFAULT qlen 1000 link/ether 52:54:00:dd:7c:b2 brd ff:ff:ff:ff:ff:ff 命令“iw dev”的输出,似乎有问题:

# iw dev nl80211 not found. 命令“dmesg”的输出 8188eu 怎么样:

[ 7.254757] r8188eu: module is from the staging directory, the quality is unknown, you have been warned. [ 7.256024] Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_D_CUT_1T1R_RomVer(0) [ 7.301472] usbcore: registered new interface driver r8188eu [ 7.335032] 8188eu: loading out-of-tree module taints kernel. [ 7.336670] Error: Driver 'r8188eu' is already registered, aborting... [ 7.364792] r8188eu 1-1.2:1.0 wlp0s26u1u2: renamed from wlan0

我的适配器是 USB 设备,所以 lspci -n 没有找到任何内容。

命令“lsusb”的输出

Bus 001 Device 003: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter

命令“journalctl”的输出:

# journalctl | grep 8188 Mar 17 08:00:22 localhost.localdomain kernel: r8188eu: module is from the staging directory, the quality is unknown, you have been warned. Mar 17 08:00:22 localhost.localdomain kernel: Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_D_CUT_1T1R_RomVer(0) Mar 17 08:00:22 localhost.localdomain kernel: usbcore: registered new interface driver r8188eu Mar 17 08:00:22 localhost.localdomain kernel: 8188eu: loading out-of-tree module taints kernel. Mar 17 08:00:22 localhost.localdomain kernel: Error: Driver 'r8188eu' is already registered, aborting... Mar 17 08:00:22 localhost.localdomain kernel: r8188eu 1-1.2:1.0 wlp0s26u1u2: renamed from wlan0

答案1

正如您从命令的输出中看到的,您确实有一个名为 的 WLAN 接口wlp0s26u1u2,该接口当前处于DOWN(未活动)状态。您还收到了明确的警告,表明驱动程序处于暂存状态(早期尝试),因此预计无法正常工作。您还收到一条错误消息

Error: Driver 'r8188eu' is already registered, aborting...

这意味着在驱动程序初始化期间出现问题,并且会中止操作。尽管该消息有点奇怪,除非您确实出于某种原因尝试加载驱动程序两次......

除非您可以调试内核代码(您可能不能),否则您没有太多机会使其正常工作。您唯一能做的就是升级到最新的内核(如有必要,请获取源代码并自行编译),祈祷有人解决这个问题。

相关内容