不确定这是否重复Broadcom STA 驱动程序与 BCM4313 配合不佳或者不是。我认为是同一系列,但我没有看到对 4352 或 43xx 的明确引用(暗示它适用于所有 43xx 系列)。
Canonical 声称支持该卡在这里当我启动实时安装 CD 时,在启用驱动程序后,它就可以正常工作了software-properties
。坦白说,我没有充分使用它来查看连接是否不稳定。相反,我启动了服务器安装 USB,现在我正尝试在安装后对其进行配置。
我当前的程序是运行这个脚本,它是根据我在不同地方读到的片段构建的。
CONFFILE=/etc/wpa_supplicant.conf
CONF=$(cat <<CONFEND
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wireless
update_config=1
ENDCONF
)
echo "$CONF" | sudo tee $CONFFILE > /dev/null
wpa_passphrase "" "" | sudo tee -a $CONFFILE > /dev/null
sudo kill-all wpa_supplicant
sudo wpa_supplicant -B -Dwext -ieth0 -c$CONFFILE
sudo dhclient eth0
现在,有时它会在大约 15 秒内运行,发出两个错误(ioctl[SIOCSIWENCODEEXT]: Invalid argument
),但运行正常。无法判断连接是否不稳定,或者我在中选择了一个较差的镜像apt
。但是其他时候,它需要 5 分钟以上的时间才能运行,并且在我终止它之前没有发出任何有用的信息。我尝试单独运行wpa_supplicant
和dhclient
行,每行都需要很长时间并且没有报告任何有用的错误。这些情况下的最终结果是iwconfig
显示接口已关联,但ifconfig
没有显示 ipv4 地址并dhclient
拒绝获取一个。
以下是一些调试信息:
内核日志充满了这些内容:
Feb 16 20:59:49 ALPHA kernel: [ 3680.237755] ------------[ cut here ]-----------
-
Feb 16 20:59:49 ALPHA kernel: [ 3680.237805] WARNING: CPU: 1 PID: 476 at /build/
buildd/linux-3.11.0/net/wireless/sme.c:795 cfg80211_roamed+0x89/0x90 [cfg80211](
)
Feb 16 20:59:49 ALPHA kernel: [ 3680.237808] Modules linked in: michael_mic arc4
snd_hda_codec_hdmi lib80211_crypt_tkip x86_pkg_temp_thermal coretemp wl(POF) kv
m crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel aes_x86_64 lrw g
f128mul glue_helper ablk_helper cryptd i915 snd_hda_codec_realtek joydev eeepc_w
mi snd_hda_intel drm_kms_helper lib80211 asus_wmi snd_hda_codec sparse_keymap sn
d_hwdep drm snd_pcm hid_generic snd_page_alloc snd_seq_midi snd_seq_midi_event c
fg80211 snd_rawmidi i2c_algo_bit psmouse snd_seq snd_seq_device usbhid mei_me sn
d_timer microcode mei hid serio_raw snd e1000e soundcore video ptp lpc_ich wmi p
ps_core mac_hid lp parport ahci libahci
Feb 16 20:59:49 ALPHA kernel: [ 3680.237888] CPU: 1 PID: 476 Comm: wl_event_handle Tainted: PF W O 3.11.0-15-generic #25-Ubuntu
Feb 16 20:59:49 ALPHA kernel: [ 3680.237891] Hardware name: ASUS All Series/Z87I-DELUXE, BIOS 0702 08/30/2013
Feb 16 20:59:49 ALPHA kernel: [ 3680.237895] 0000000000000009 ffff880210463d88 ffffffff816e7375 0000000000000000
Feb 16 20:59:49 ALPHA kernel: [ 3680.237903] ffff880210463dc0 ffffffff81061dcd ffff88021436a000 ffff88020f4ad000
Feb 16 20:59:49 ALPHA kernel: [ 3680.237909] 00000000000000a3 ffff880213223f00 0000000000000001 ffff880210463dd0
Feb 16 20:59:49 ALPHA kernel: [ 3680.237916] Call Trace:
Feb 16 20:59:49 ALPHA kernel: [ 3680.237930] [<ffffffff816e7375>] dump_stack+0x45/0x56
Feb 16 20:59:49 ALPHA kernel: [ 3680.237942] [<ffffffff81061dcd>] warn_slowpath_common+0x7d/0xa0
Feb 16 20:59:49 ALPHA kernel: [ 3680.237949] [<ffffffff81061eaa>] warn_slowpath_null+0x1a/0x20
Feb 16 20:59:49 ALPHA kernel: [ 3680.237975] [<ffffffffa01c4409>] cfg80211_roamed+0x89/0x90 [cfg80211]
Feb 16 20:59:49 ALPHA kernel: [ 3680.238056] [<ffffffffa0862ea5>] wl_bss_connect_done.isra.21+0x105/0x1b0 [wl]
Feb 16 20:59:49 ALPHA kernel: [ 3680.238124] [<ffffffffa086314c>] wl_notify_connect_status+0x1fc/0x410 [wl]
Feb 16 20:59:49 ALPHA kernel: [ 3680.238189] [<ffffffffa0862445>] wl_event_handler+0x55/0x1f0 [wl]
Feb 16 20:59:49 ALPHA kernel: [ 3680.238253] [<ffffffffa08623f0>] ? wl_cfg80211_scan+0x350/0x350 [wl]
ifconfig(当脚本运行时)
eth0 Link encap:Ethernet HWaddr 24:0a:64:31:13:1b
inet addr:192.168.1.105 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::260a:64ff:fe31:131b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:652 errors:0 dropped:1 overruns:0 frame:259012
TX packets:493 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:83037 (83.0 KB) TX bytes:69997 (69.9 KB)
Interrupt:19
iwconfig(再次,当它工作时)
eth0 IEEE 802.11abg ESSID:""
Mode:Managed Frequency:2.412 GHz Access Point: 58:6D:8F:7E:7A:77
Bit Rate=130 Mb/s Tx-Power=200 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=58/70 Signal level=-52 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
瘦身
*-network
description: Wireless interface
product: BCM4352 802.11ac Wireless Network Adapter
vendor: Broadcom Corporation
physical id: 0
bus info: pci@0000:03:00.0
logical name: eth0
version: 03
serial: 24:0a:64:31:13:1b
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.141 (r415941) ip=192.168.1.105 latency=0 multicast=yes wireless=IEEE 802.11abg
resources: irq:19 memory:f7a00000-f7a07fff memory:f7800000-f79fffff
wpa_supplicant -h(支持的驱动程序)
drivers:
wext = Linux wireless extensions (generic)
nl80211 = Linux nl80211/cfg80211
wired = Wired Ethernet driver
none = no driver (RADIUS server/WPS ER)
使用以下命令运行 lspci-nn-d 14e4:
03:00.0 Network controller [0280]: Broadcom Corporation BCM4352 802.11ac Wireless Network Adapter [14e4:43b1] (rev 03)
sudo cat /etc/network/interfaces | grep -Ev '^#'
auto lo
iface lo inet loopback
auto em1
iface em1 inet dhcp
auto eth0
iface eth0 inet dhcp
编辑:添加了额外的诊断信息
答案1
我建议对 /etc/network/interfaces 进行更简单的安排。我还建议,为了能够通过 ssh 和 ftp 进入服务器,请使用静态 IP 地址。如果在新的命名方案下,“em1”是您的以太网,则您要求以太网和无线都自动启动。我会将 /etc/network/interfaces 更改为:
auto lo
iface lo inet loopback
#auto em1
iface em1 inet dhcp
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
wpa-ssid <your_router>
wpa-psk <your_secret_key>
dns-nameservers 8.8.8.8 192.168.1.1
当然,在路由器中选择一个 DHCP 池之外的地址并替换您的详细信息。让系统读取并使用这些更改:
sudo ifdown eth0 && sudo ifup eth0
可能需要重新启动。
如果您的 cfg80211 警告仍然存在,我建议我们在无线顺利连接后排除故障。