作者:linkstarter | 来源:互联网 | 2023-07-04 17:23
我在家里设置了WPA2-EAPTLSWiFi接入点,一切正常.不幸的是,很多时候我会断开与接入点的连接而无法重新连接.(我正在复活这个问题,因为我刚从Ubuntu安装了最新的bro
我在家里设置了WPA2-EAP TLS WiFi接入点,一切正常.不幸的是,很多时候我会断开与接入点的连接而无法重新连接. (我正在复活这个问题,因为我刚从Ubuntu安装了最新的broadcom-sta-dkms版本6.30.223.248-3,我目前正在运行Ubuntu 12.04)
这是/ var / log / syslog的输出:
Jan 15 21:10:53 mightymoose wpa_supplicant[1915]: CTRL-EVENT-EAP-STARTED EAP authentication started
Jan 15 21:10:53 mightymoose kernel: [80539.376605] wl0: link up (wlan1)
Jan 15 21:10:53 mightymoose kernel: [80539.376732] cfg80211: Calling CRDA for country: US
Jan 15 21:10:53 mightymoose NetworkManager[1671]: (wlan1): supplicant interface state: associating -> associated
Jan 15 21:10:53 mightymoose kernel: [80539.380280] cfg80211: Regulatory domain changed to country: US
Jan 15 21:10:53 mightymoose kernel: [80539.380284] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Jan 15 21:10:53 mightymoose kernel: [80539.380287] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
Jan 15 21:10:53 mightymoose kernel: [80539.380290] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
Jan 15 21:10:53 mightymoose kernel: [80539.380292] cfg80211: (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Jan 15 21:10:53 mightymoose kernel: [80539.380294] cfg80211: (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Jan 15 21:10:53 mightymoose kernel: [80539.380296] cfg80211: (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Jan 15 21:10:53 mightymoose kernel: [80539.380299] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
Jan 15 21:10:53 mightymoose wpa_supplicant[1915]: CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=13
Jan 15 21:10:53 mightymoose wpa_supplicant[1915]: OpenSSL: pending error: error:0606F076:digital envelope routines:EVP_PKCS82PKEY:unsupported private key algorithm
Jan 15 21:10:53 mightymoose wpa_supplicant[1915]: OpenSSL: pending error: error:140CB00D:SSL routines:SSL_use_PrivateKey_file:ASN1 lib
Jan 15 21:10:53 mightymoose wpa_supplicant[1915]: OpenSSL: pending error: error:140CB009:SSL routines:SSL_use_PrivateKey_file:PEM lib
Jan 15 21:10:53 mightymoose wpa_supplicant[1915]: CTRL-EVENT-EAP-METHOD EAP vendor 0 method 13 (TLS) selected
Jan 15 21:11:00 mightymoose wpa_supplicant[1915]: CTRL-EVENT-EAP-PEER-CERT depth=1 subject='/C=US/ST=California/L=Teekopolis/O=City of Teekopolis/OU=Internet Security Division/CN=Teekopolis Certificate Authority/emailAddress=rfkrocktk@gmai
l.com'
Jan 15 21:11:00 mightymoose wpa_supplicant[1915]: CTRL-EVENT-EAP-PEER-CERT depth=0 subject='/C=US/ST=California/L=Teekopolis/O=City of Teekopolis/OU=Internet Security Division/CN=Teekopolis WiFi/emailAddress=rfkrocktk@gmail.com'
Jan 15 21:11:48 mightymoose NetworkManager[1671]: Activation (wlan1/wireless): association took too long.
Jan 15 21:11:48 mightymoose NetworkManager[1671]: (wlan1): device state change: config -> need-auth (reason 'none') [50 60 0]
Jan 15 21:11:48 mightymoose NetworkManager[1671]: Activation (wlan1/wireless): asking for new secrets
Jan 15 21:11:48 mightymoose wpa_supplicant[1915]: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=0
Jan 15 21:11:48 mightymoose kernel: [80594.418159] cfg80211: Calling CRDA to update world regulatory domain
Jan 15 21:11:48 mightymoose kernel: [80594.420040] wl0: link down (wlan1)
运行modprobe -r wl&& modprobe wl无法解决问题.我在其他设备上没有这些问题,例如我的Android手机,平板电脑和运行相同操作系统的其他笔记本电脑.
关于从哪里开始调试此问题的任何想法?
编辑:从lshw -c网络添加输出
*-network
description: Wireless interface
product: BCM43228 802.11a/b/g/n
vendor: Broadcom Corporation
physical id: 0
bus info: pci@0000:0c:00.0
logical name: wlan1
version: 00
serial: de:ad:be:ef:fe:ed
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=wl0 driverversion=6.30.223.248 (r487574) ip=192.168.100.110 latency=0 multicast=yes wireless=IEEE 802.11abg
resources: irq:18 memory:f6800000-f6803fff
这是来自PasteBin的wpa_supplicant的请求输出.不确定,但似乎存在OpenSSL问题.
解决方法:
您应该将驱动程序从专有驱动程序(wl)切换到开源驱动程序b43.有用的Arch Linux wiki说,wl:
Warning: Even though this driver has matured a lot throughout the years and works quite well now, its usage is recommended only when neither of the two open-source drivers support your device.
您的设备BCM43228确实受到b43的支持,因为您可以查看here.
(顺便说一句,NIC名称在这些问题上没用:制造商经常以相同的名称销售基于不同芯片的NIC,有时甚至是由不同的生产商制造的!例如,请查看上面引用的表格,BCM4322:它包含四个不同芯片中的一个,一些支持,一些不受wl或b43支持.您需要唯一识别NIC的是供应商:产品代码,您可以通过以下方式获得
$lspci -vnn | grep -i net
00:19.0 Ethernet controller [0200]: Intel Corporation 82579LM Gigabit Network [8086:1502] (rev 04)
04:00.0 Network controller [0280]: Intel Corporation Centrino Advanced-N 6235 [8086:088e] (rev 24)
在这种情况下,Vendor:Product代码是[8086:088E].你很幸运,因为BCM43228采用单芯片14e4:4359生产,因此我们可以确定b43确实支持它.)
删除wl模块,
sudo modprobe -r brcmsmac bcma
sudo modprobe -r wl
并加载适当的驱动程序,
sudo modprobe b43
有可能b43被wl列入黑名单,你可以查看
cd /etc/modprobe.d
grep -nrI b43
如果没有输出,则没有问题.否则打开提及b43的文件,用wl替换b43.在这种情况下,您还需要更新initramfs文件,
sudo update-initramfs -u
要永久地摆脱wl,
sudo apt-get purge bcmwl-kernel-source
欢迎来到免费开源软件(FOSS)的世界,其中产品通常远远优于专有软件.