联想F41A+bdcm4311无线网卡 找不到适配器

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
kervin
帖子: 3
注册时间: 2018-09-25 8:40
系统: ubuntu 18.04 lts

联想F41A+bdcm4311无线网卡 找不到适配器

#1

帖子 kervin » 2018-09-25 11:31

电脑是台老的笔记本,带硬件无线开关。目前硬件控制有反应,即用rfkil能体现出来,但是在‘’设置->WIFI'里面一直显示无法找到适配器,右上角状态栏无WIFI标志。有线网络正常使用。麻烦大神帮忙找下问题,下面是详情描述:
1,sudo lspci -vnn
04:00.0 Network controller [0280]: Broadcom Limited BCM4311 802.11b/g WLAN [14e4:4311] (rev 01)
Subsystem: Broadcom Limited BCM4311 802.11b/g WLAN [14e4:0465]
Flags: bus master, fast devsel, latency 0, IRQ 17
Memory at f0000000 (32-bit, non-prefetchable) <SIZE size="16K"><s>
Capabilities: [40] Power Management version 2
Capabilities: [58] MSI: Enable- Count=1/1 Maskable- 64bit-
Capabilities: [d0] Express Legacy Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [13c] Virtual Channel
Kernel modules: ssb, wl

2,sudo lshw -C network
*-network UNCLAIMED
description: Network controller
product: BCM4311 802.11b/g WLAN
vendor: Broadcom Limited
physical id: 0
bus info: pci@0000:04:00.0
version: 01
width: 32 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: latency=0
resources: memory:f0000000-f0003fff
*-network
description: Ethernet interface
product: NetLink BCM5906M Fast Ethernet PCI Express
vendor: Broadcom Limited
physical id: 0
bus info: pci@0000:06:00.0
logical name: enp6s0
version: 02
serial: 00:1b:38:a0:06:43
size: 100Mbit/s
capacity: 100Mbit/s
width: 64 bits
clock: 33MHz
capabilities: pm vpd msi pciexpress bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.137 duplex=full firmware=sb v3.04 ip=192.168.1.106 latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
resources: irq:26 memory:b4000000-b400ffff

3,rfkill list all
0: ideapad_wlan: Wireless LAN
Soft blocked: no
Hard blocked: no

4,dkms status
bcmwl, 6.30.223.271+bdcom, 4.15.0-34-generic, x86_64: installed (WARNING! Diff between built and installed module!)
这里的warning不知道怎么处理,重新安装安装盘上的驱动,显示如下:
sudo dpkg -i --force-overwrite bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu4_amd64.deb
(正在读取数据库 ... 系统当前共安装有 198447 个文件和目录。)
正准备解包 bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu4_amd64.deb ...
Removing all DKMS Modules
rmdir: 删除 '' 失败: 没有那个文件或目录
Done.
正在将 bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu4) 解包到 (6.30.223.271+bdcom-0ubuntu4) 上 ...
正在设置 bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu4) ...
Loading new bcmwl-6.30.223.271+bdcom DKMS files...
Building for 4.15.0-34-generic
Building for architecture x86_64
Building initial module for 4.15.0-34-generic
Done.

wl:
Running module version sanity check.

Good news! Module version for wl.ko
exactly matches what is already found in kernel 4.15.0-34-generic.
DKMS will not replace this module.
You may override by specifying --force.

depmod..........

DKMS: install completed.
update-initramfs: deferring update (trigger activated)
正在处理用于 initramfs-tools (0.130ubuntu3.3) 的触发器 ...
update-initramfs: Generating /boot/initrd.img-4.15.0-34-generic

5,在“软件和更新->附加驱动”中有显示:
附加驱动.png
6,参考网上帖子https://blog.csdn.net/zhang_shufeng/article/details/26162453,在博通官网下载的64bit驱动编译出错,信息如下:
make
KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
make[1]: 进入目录“/usr/src/linux-headers-4.15.0-34-generic”
CFG80211 API is prefered for this kernel version
Using CFG80211 API
CC [M] /home/sun/hybrid_wl/src/wl/sys/wl_linux.o
/home/sun/hybrid_wl/src/wl/sys/wl_linux.c: In function ‘wl_pci_probe’:
/home/sun/hybrid_wl/src/wl/sys/wl_linux.c:772:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if ((val & 0x0000ff00) != 0)
^~
/home/sun/hybrid_wl/src/wl/sys/wl_linux.c:774:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
bar1_size = pci_resource_len(pdev, 2);
^~~~~~~~~
/home/sun/hybrid_wl/src/wl/sys/wl_linux.c: In function ‘wl_init_timer’:
/home/sun/hybrid_wl/src/wl/sys/wl_linux.c:2355:2: error: implicit declaration of function ‘init_timer’; did you mean ‘init_timers’? [-Werror=implicit-function-declaration]
init_timer(&t->timer);
^~~~~~~~~~
init_timers
/home/sun/hybrid_wl/src/wl/sys/wl_linux.c:2356:10: error: ‘struct timer_list’ has no member named ‘data’
t->timer.data = (ulong) t;
^
/home/sun/hybrid_wl/src/wl/sys/wl_linux.c:2357:20: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
t->timer.function = wl_timer;
^
/home/sun/hybrid_wl/src/wl/sys/wl_linux.c: In function ‘wl_monitor’:
/home/sun/hybrid_wl/src/wl/sys/wl_linux.c:2918:10: error: ‘struct net_device’ has no member named ‘last_rx’
skb->dev->last_rx = jiffies;
^~
cc1: some warnings being treated as errors
scripts/Makefile.build:332: recipe for target '/home/sun/hybrid_wl/src/wl/sys/wl_linux.o' failed
make[2]: *** [/home/sun/hybrid_wl/src/wl/sys/wl_linux.o] Error 1
Makefile:1552: recipe for target '_module_/home/sun/hybrid_wl' failed
make[1]: *** [_module_/home/sun/hybrid_wl] Error 2
make[1]: 离开目录“/usr/src/linux-headers-4.15.0-34-generic”
Makefile:159: recipe for target 'all' failed
make: *** [all] Error 2
kervin
帖子: 3
注册时间: 2018-09-25 8:40
系统: ubuntu 18.04 lts

Re: 联想F41A+bdcm4311无线网卡 找不到适配器

#2

帖子 kervin » 2018-09-25 16:12

顶起!!!!万能的坛主大人哪去了 :Adore
头像
astolia
论坛版主
帖子: 6396
注册时间: 2008-09-18 13:11

Re: 联想F41A+bdcm4311无线网卡 找不到适配器

#3

帖子 astolia » 2018-09-25 17:33

dkms要用root权限运行就不会有那个warning了。不过这跟你的问题没关系
手动加载驱动试试

代码: 全选

sudo modprobe wl
如果加载不了,检查一下是不是主板的安全启动Secure Boot功能没有关
kervin
帖子: 3
注册时间: 2018-09-25 8:40
系统: ubuntu 18.04 lts

Re: 联想F41A+bdcm4311无线网卡 找不到适配器

#4

帖子 kervin » 2018-09-25 21:21

astolia 写了: 2018-09-25 17:33 dkms要用root权限运行就不会有那个warning了。不过这跟你的问题没关系
手动加载驱动试试

代码: 全选

sudo modprobe wl
如果加载不了,检查一下是不是主板的安全启动Secure Boot功能没有关
wl模块应该一直有加载:
sudo lsmod | grep wl
wl 6447104 0
cfg80211 622592 1 wl
应该就是这个模块导致,硬件开关rfkill使能。在图形界面的表现就是打开硬件wifi的时候,没有wifi图标,关闭wifi的时候,显示的是飞行模式的图标。
回复