|
我的网卡型号 BCM4313 信息:
- # lspci -vnn | grep 14e4
- 03:00.0 Network controller [0280]: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller [14e4:4727] (rev 01)
- Subsystem: Broadcom Corporation Device [14e4:051a]
复制代码
根据 wiki 里面,内核自带的 brcmsmac 驱动是可用的
- # lsmod|grep brc
- brcmsmac 533512 0
- cordic 1073 1 brcmsmac
- crc8 1186 1 brcmsmac
- brcmutil 3617 1 brcmsmac
- mac80211 228527 2 b43,brcmsmac
- cfg80211 172260 3 mac80211,b43,brcmsmac
复制代码
没有安装 firmware 之前,系统是可以识别出无线网卡的
- # ip link
- 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
- link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
- 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 576 qdisc pfifo_fast state UP qlen 1000
- link/ether 5c:26:0a:32:71:81 brd ff:ff:ff:ff:ff:ff
- 3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
- link/ether 88:25:2c:cf:6b:aa brd ff:ff:ff:ff:ff:ff
复制代码
之后我从 AUR 中安装 b43-firmware 固件,并在 /etc/rc.conf 添加开机自动加载 b43 驱动
重启机器后,b43 已经加载
1. 问题:内核里面的那个 brcmsmac 是驱动,那这个 b43 是什么,也算驱动吗?
- # lsmod |grep b43
- b43 338777 0
- ssb 48207 1 b43
- pcmcia 36225 2 ssb,b43
- mmc_core 80910 2 ssb,b43
- mac80211 228527 2 b43,brcmsmac
- cfg80211 172260 3 mac80211,b43,brcmsmac
复制代码
配置 /etc/wpa_supplicant.conf
2. 问题:google 说,wpa_supplicant 不支持 WPA-PSK2/AES 加密方式,我使用 TKIP 方式
- ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
- update_config=1
- network={
- ssid="ink"
- proto=RSN
- key_mgmt=WPA-PSK
- pairwise=CCMP TKIP
- group=CCMP TKIP
- # psk="..."
- # wpa_passphrase <ssid> <password>
- psk=43708052...424
- }
复制代码
之后是连接步骤:
1. 激活 wlan0 无线网卡设备
2. 连接无线信号
- # ifconfig wlan0 up
- # wpa_supplicant -Dwext -i wlan0 -c /etc/wpa_supplicant.conf
- Trying to associate with b0:48:7a:30:f6:a4 (SSID='ink' freq=2472 MHz)
- Authentication with b0:48:7a:30:f6:a4 timed out.
- Trying to associate with b0:48:7a:30:f6:a4 (SSID='ink' freq=2472 MHz)
- Authentication with b0:48:7a:30:f6:a4 timed out.
- Trying to associate with b0:48:7a:30:f6:a4 (SSID='ink' freq=2472 MHz)
复制代码
执行之后提示上面的信息,如果强制使用后台执行:
- # wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant.conf
- # iwconfig
- lo no wireless extensions.
- wlan0 IEEE 802.11bgn ESSID:"ink"
- Mode:Managed Frequency:2.472 GHz Access Point: Not-Associated
- Tx-Power=19 dBm
- Retry long limit:7 RTS thr:off Fragment thr:off
- Encryption key:off
- Power Management:off
- eth0 no wireless extensions.
复制代码
无法分配到 dhcp 地址,不清楚上面的显示是否成功的连接上 ink 无线信号
- # dhcpcd wlan0
- dhcpcd[8124]: version 5.5.4 starting
- dhcpcd[8124]: wlan0: waiting for carrier
- dhcpcd[8124]: timed out
复制代码
----------------------------------------------------------------------------------------
使用 b43 firmware 不行,我又改用 broadcom-wl 驱动,按照 wiki 从 AUR 安装 broadcom-wl 驱动
并配置内核模块加载信息,之后重启正常加载
- # lsmod|grep wl
- wl 2557323 0
- lib80211 3981 2 wl,lib80211_crypt_tkip
- cfg80211 172260 1 wl
复制代码
- # cat /etc/modprobe.d/broadcom-wl.conf
- blacklist b43
- blacklist bcma
- blacklist ssb
复制代码
重启之后,网卡的名称识别变,下面是使用 broadcom-wl 前后的对应关系:
eth0 --> eth1
wlan0 --> eth0
下面是连接过程
- # ip addr
- 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
- link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
- inet 127.0.0.1/8 scope host lo
- inet6 ::1/128 scope host
- valid_lft forever preferred_lft forever
- 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
- link/ether 88:25:2c:cf:6b:aa brd ff:ff:ff:ff:ff:ff
- inet6 fe80::8a25:2cff:fecf:6baa/64 scope link
- valid_lft forever preferred_lft forever
- 3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
- link/ether 5c:26:0a:32:71:81 brd ff:ff:ff:ff:ff:ff
复制代码
- # iwconfig
- lo no wireless extensions.
- eth1 no wireless extensions.
- eth0 IEEE 802.11abg ESSID:off/any
- Mode:Managed Access Point: Not-Associated
- Retry long limit:7 RTS thr:off Fragment thr:off
- Power Management:off
复制代码
- # ifconfig
- eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 metric 1
- inet6 fe80::8a25:2cff:fecf:6baa prefixlen 64 scopeid 0x20<link>
- ether 88:25:2c:cf:6b:aa txqueuelen 1000 (Ethernet)
- RX packets 0 bytes 0 (0.0 B)
- RX errors 0 dropped 0 overruns 0 frame 0
- TX packets 0 bytes 0 (0.0 B)
- TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
- device interrupt 17
复制代码
我将原来的 wlan0 改为 eth0 之后,直接都没有任何输出
- # sudo wpa_supplicant -Dwext -i eth0 -c /etc/wpa_supplicant.conf
- ^CCTRL-EVENT-TERMINATING - signal 2 received
复制代码
使用 iwlist 根本就没有扫描自己的无线信号,但是我用手机,其他同学都是正常的
- # sudo iwlist eth0 scan|grep ink
- ESSID:"TP-LINK_CA95C6"
- ESSID:"TP-LINK_46C38E"
复制代码
不知各位是否有用 BCM4313 无线网卡的,请问你们的无线是采用那种方式连接的 |
|