如何避免无线LAN随机断开连接?


11

我目前正在从无线网络中随机断开连接。看起来它变得越来越频繁(但是我还没有看到任何清晰的模式)。这真让我丧命...基本上,在某些时候,无法检测到wifi网络,而且我无法看到任何网络,就像网卡被关闭一样

以下是一些有用的信息,以及一种修复它的尝试(来自Ubuntu论坛)。

机器:Acer Aspire S3(确切的型号Aspire S3-951-2464G34iss

statquant@euclide:~$ lsb_release -d
Description:    Ubuntu 12.04.1 LTS

statquant@euclide:~$ uname -mr
3.2.0-33-generic x86_64

statquant@euclide:~$ sudo /etc/init.d/networking restart
* Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces
* Reconfiguring network interfaces...

statquant@euclide:~$ lspci
02:00.0 Network controller: Atheros Communications Inc. AR9485 Wireless Network Adapter (rev 01)

statquant@euclide:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 004: ID 064e:c321 Suyin Corp. 
Bus 002 Device 003: ID 0bda:0129 Realtek Semiconductor Corp.

statquant@euclide:~$ ifconfig
wlan0     Link encap:Ethernet  HWaddr 74:de:2b:dd:c4:78  
          inet addr:192.168.1.3  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::76de:2bff:fedd:c478/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:913 errors:0 dropped:0 overruns:0 frame:0
          TX packets:802 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:873218 (873.2 KB)  TX bytes:125826 (125.8 KB)

statquant@euclide:~$ iwconfig
wlan0     IEEE 802.11bgn  ESSID:"Bbox-D646D1"  
          Mode:Managed  Frequency:2.437 GHz  Access Point: 00:19:70:80:01:6C   
          Bit Rate=65 Mb/s   Tx-Power=16 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
          Link Quality=56/70  Signal level=-54 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:71   Missed beacon:0

statquant@euclide:~$ dmesg | grep "wlan"
[   17.495866] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   17.498950] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   20.072015] wlan0: authenticate with 00:19:70:80:01:6c (try 1)
[   20.269853] wlan0: authenticate with 00:19:70:80:01:6c (try 2)
[   20.272386] wlan0: authenticated
[   20.298682] wlan0: associate with 00:19:70:80:01:6c (try 1)
[   20.302321] wlan0: RX AssocResp from 00:19:70:80:01:6c (capab=0x431 status=0 aid=1)
[   20.302325] wlan0: associated
[   20.307307] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   30.402292] wlan0: no IPv6 routers present

statquant@euclide:~$ sudo lshw -C network
[sudo] password for statquant: 
*-network               
   description: Wireless interface
   product: AR9485 Wireless Network Adapter
   vendor: Atheros Communications Inc.
   physical id: 0
   bus info: pci@0000:02:00.0
   logical name: wlan0
   version: 01
   serial: 74:de:2b:dd:c4:78
   width: 64 bits
   clock: 33MHz
   capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical wireless
   configuration: broadcast=yes driver=ath9k driverversion=3.2.0-33-generic firmware=N/A ip=192.168.1.3 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn
   resources: irq:17 memory:c0400000-c047ffff memory:afb00000-afb0ffff

statquant@euclide:~$ iwlist scan
wlan0     Scan completed :
      Cell 01 - Address: 00:19:70:80:01:6C
                Channel:6
                Frequency:2.437 GHz (Channel 6)
                Quality=56/70  Signal level=-54 dBm  
                Encryption key:on
                ESSID:"Bbox-D646D1"
                Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                          9 Mb/s; 12 Mb/s; 18 Mb/s
                Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
                Mode:Master
                Extra:tsf=000000125fb152bb
                Extra: Last beacon: 40020ms ago
                IE: Unknown: 000B42626F782D443634364431
                IE: Unknown: 010882848B960C121824
                IE: Unknown: 030106
                IE: IEEE 802.11i/WPA2 Version 1
                    Group Cipher : TKIP
                    Pairwise Ciphers (2) : CCMP TKIP
                    Authentication Suites (1) : PSK
                IE: WPA Version 1
                    Group Cipher : TKIP
                    Pairwise Ciphers (2) : CCMP TKIP
                    Authentication Suites (1) : PSK
                IE: Unknown: 2A0100
                IE: Unknown: 32043048606C
                IE: Unknown: DD180050F2020101820003A4000027A4000042435E0062322F00
                IE: Unknown: 2D1A4C101BFF00000000000000000000000000000000000000000000
                IE: Unknown: 3D1606080800000000000000000000000000000000000000
                IE: Unknown: DD0900037F01010000FF7F
                IE: Unknown: DD0A00037F04010000000000

我做了以下工作(在寻找类似问题的修复之后),但是不幸的是,这无法解决我的问题。

sudo modprobe -r iwlwifi 
sudo modprobe iwlwifi 11n_disable=1

这是我通过iwscanner获得的快照,您可以看到,即使wifi正常工作,损耗也很小 扫描


我在以下线程之后进行了此操作,虽然工作了几个小时,但是却断开了连接:(这是我所做的:

statquant@euclide:~$ sudo modprobe -rfv ath9k
[sudo] password for statquant: 
rmmod /lib/modules/3.2.0-34-generic/kernel/drivers/net/wireless/ath/ath9k/ath9k.ko
rmmod /lib/modules/3.2.0-34-generic/kernel/net/mac80211/mac80211.ko
rmmod /lib/modules/3.2.0-34-generic/kernel/drivers/net/wireless/ath/ath9k/ath9k_common.ko
rmmod /lib/modules/3.2.0-34-generic/kernel/drivers/net/wireless/ath/ath9k/ath9k_hw.ko
rmmod /lib/modules/3.2.0-34-generic/kernel/drivers/net/wireless/ath/ath.ko
rmmod /lib/modules/3.2.0-34-generic/kernel/net/wireless/cfg80211.ko

statquant@euclide:~$ sudo modprobe -v ath9k nohwcrypt=1
insmod /lib/modules/3.2.0-34-generic/kernel/net/wireless/cfg80211.ko 
insmod /lib/modules/3.2.0-34-generic/kernel/drivers/net/wireless/ath/ath.ko 
insmod /lib/modules/3.2.0-34-generic/kernel/drivers/net/wireless/ath/ath9k/ath9k_hw.ko 
insmod /lib/modules/3.2.0-34-generic/kernel/drivers/net/wireless/ath/ath9k/ath9k_common.ko 
insmod /lib/modules/3.2.0-34-generic/kernel/net/mac80211/mac80211.ko 
insmod /lib/modules/3.2.0-34-generic/kernel/drivers/net/wireless/ath/ath9k/ath9k.ko nohwcrypt=1

您的S3型号是什么?(例如,aspire 34347-5643US)。这很重要,因为该行具有不同的卡。我注意到其中之一具有开箱即用的Atheros AR5BWB225卡。
威廉

1
iwlwifi解决方案不是您想要的。您没有Intel WiFi适配器,而是由管理的Atheros适配器ath9k
gertvdijk 2013年

感谢您的iwscanner图表!您的无线网络中的其他设备也受此问题影响吗?似乎您的AP完全消失了一段时间(重新启动?崩溃?硬件故障?)。
gertvdijk 2013年

@gertvdijk:嘿,是的,我认为大的“孔”有点假。顺便说一句,我在妻子的笔记本电脑(运行Ubuntu 10.04的HP)上安装了iwscanner,但没有问题。我们还看到一些停顿点……我有点迷失
statquant

2
/var/log/syslog发生这种情况时,您是否有任何条目?您可以尝试的另一件事是sudo tshark -w dump.pcap。这会将您的所有网络流量写入该文件。也许不久之前会有一些特殊的包装。最后一个选择:安装dstat,在控制台中启动它,然后查看断开连接周围发生的情况。也许有一些可疑的系统活动。
qbi

Answers:


0

如此处所述:http : //ubuntuforums.org/showthread.php?t=2018238

有一个简单的方法可以解决您的问题

试试这些命令

sudo modprobe -rfv ath9k
sudo modprobe -v ath9k nohwcrypt=1

如果可行,请将这些行添加到 /etc/rc.local

/etc/modprobe.d/ath9k.conf 通过此命令创建(或编辑)

gksudo gedit /etc/modprobe.d/ath9k.conf

并添加到 /etc/modprobe.d/ath9k.conf

options ath9k nohwcrypt=1


好吧,我尝试过...这很麻烦,但是几个小时后我就断开了连接:(。和往常一样,当我无法找到任何wifi网络时,我唯一的解决方法是重启
statquant

好的,我所做的就是按照说明使更改永久生效,如果执行命令行未解决,则永久文件解决方案似乎已解决了该问题。谢谢
statquant

1

您可以在此处检查网关上的碎片和rts设置。我相信默认值为frag 2346 rts 2347,因此请执行以下命令:

sudo iwconfig wlan0 
frag 2346 rts 2347

希望这可以帮助!


0

您可以尝试反向移植的3.5.x内核吗?使用进行安装sudo apt-get install linux-image-generic-lts-backport-quantal。它在存储库中。也许新内核为您的卡提供了更新的驱动程序。

关:在我们的宿舍中,从3.0.0-> 3.2升级解决了这样的问题。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.