解决Ubuntu 18.04 在 Dell Vostro1220 上不能使用wlan问题



查看 wlan 网卡信息

1
2
3
4
5
6
7
8
9
10
11
12
widell@widell-Vostro-1220:~$ lspci -vvnn | grep -A 9 Network

0c:00.0 Network controller [0280]: Broadcom Limited BCM4312 802.11b/g LP-PHY [14e4:4315] (rev 01)
    Subsystem: Dell Wireless 1397 WLAN Mini-Card [1028:000c]
    Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 0, Cache Line Size: 64 bytes
    Interrupt: pin A routed to IRQ 17
    Region 0: Memory at f69fc000 (64-bit, non-prefetchable) [size=16K]
    Capabilities: <access denied>
    Kernel driver in use: b43-pci-bridge
    Kernel modules: ssb
  • 划重点
    • Chip ID: BCM4312
    • PCI-ID: [1028:000c]
    • kernel driver in use: b43-pci-bridge

diriver 装的不对

在线安装 STA drivers

  1. 接上有线网
  2. 安装 wl 驱动
    1
    2
    3
     sudo apt-get update
     sudo apt-get install build-essential
     sudo apt-get --reinstall install bcmwl-kernel-source
    
  3. 启用 wl 驱动
    1
    2
     sudo modprobe -r b43 ssb wl brcmfmac brcmsmac bcma
     sudo modprobe wl
    
  4. 检查 WLAN 网卡状态
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
     widell@widell-Vostro-1220:~$ lspci -vvnn | grep -A 9 Network
    
     0c:00.0 Network controller [0280]: Broadcom Limited BCM4312 802.11b/g LP-PHY [14e4:4315] (rev 01)
         Subsystem: Dell Wireless 1397 WLAN Mini-Card [1028:000c]
         Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
         Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
         Latency: 0, Cache Line Size: 64 bytes
         Interrupt: pin A routed to IRQ 17
         Region 0: Memory at f69fc000 (64-bit, non-prefetchable) [size=16K]
         Capabilities: <access denied>
         Kernel driver in use: wl
         Kernel modules: ssb, wl
    

sudo apt-get –reinstall install bcmwl-kernel-source 执行效果

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  dkms
Suggested packages:
  menu
The following NEW packages will be installed:
  bcmwl-kernel-source dkms
0 upgraded, 2 newly installed, 0 to remove and 20 not upgraded.
Need to get 1,618 kB of archives.
After this operation, 8,357 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://cn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 dkms all 2.3-3ubuntu9.1 [68.2 kB]
Get:2 http://cn.archive.ubuntu.com/ubuntu bionic/restricted amd64 bcmwl-kernel-source amd64 6.30.223.271+bdcom-0ubuntu4 [1,550 kB]
Fetched 1,618 kB in 4s (421 kB/s)                
Selecting previously unselected package dkms.
(Reading database ... 153499 files and directories currently installed.)
Preparing to unpack .../dkms_2.3-3ubuntu9.1_all.deb ...
Unpacking dkms (2.3-3ubuntu9.1) ...
Selecting previously unselected package bcmwl-kernel-source.
Preparing to unpack .../bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu4_amd64.deb ...
Unpacking bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu4) ...
Setting up dkms (2.3-3ubuntu9.1) ...
Processing triggers for man-db (2.8.3-2) ...
Setting up bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu4) ...
Loading new bcmwl-6.30.223.271+bdcom DKMS files...
Building for 4.15.0-20-generic 4.15.0-23-generic
Building for architecture x86_64
Building initial module for 4.15.0-20-generic
Done.

wl:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.15.0-20-generic/updates/dkms/

depmod......

DKMS: install completed.
Building initial module for 4.15.0-23-generic
Done.

wl:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.15.0-23-generic/updates/dkms/

depmod...

DKMS: install completed.
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.130ubuntu3.1) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-23-generic