如何避免无线局域网随机断开连接?

如何避免无线局域网随机断开连接?

我目前遇到无线网络随机断开的情况。这种情况似乎越来越频繁(但我没有看到任何明显的规律)。这真是要命了……基本上在某个时候,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

这是我通过以下方式获得的快照扫描器,你可以看到,即使 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

答案1

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

sudo iwconfig wlan0 
frag 2346 rts 2347

希望这可以帮助!

答案2

正如这里提到的: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

答案3

您能尝试反向移植的 3.5.x 内核吗?使用 安装它sudo apt-get install linux-image-generic-lts-backport-quantal。它在存储库中。也许新内核有适合您的卡的较新的驱动程序。

离开:在我们的宿舍,从 3.0.0 升级到 3.2 解决了类似的问题。

相关内容