Ubuntu 14.04 上的 Centrino Wireless-N 2230 无线问题

Ubuntu 14.04 上的 Centrino Wireless-N 2230 无线问题

我在 Ubuntu 14.04 上使用无线适配器时遇到了问题。有时当我启动计算机时,它能够建立连接,大概只有五分之一的时间,但大多数情况下它只是一直尝试连接:

 % nmcli nm
RUNNING         STATE           WIFI-HARDWARE   WIFI       WWAN-HARDWARE   WWAN      
running         connecting      enabled         enabled    enabled         disabled 

即使能够建立连接,也会出现问题。长时间正常运行后,连接似乎会变得拥塞,并且经常断开。如果我尝试流式传输视频或下载大文件,也会发生同样的事情。

我目前的硬件设置有些奇怪。我把苏打水洒在了另一台笔记本电脑上,主板坏了,所以我决定把这个硬盘放进我的旧电脑(我现在用的那台)里,这样就可以保留我所有的文件和设置。除了 wifi 之外,一切都立即恢复正常。

在那台旧机器上,我注意到在信号强度较低的情况下无线连接会出现问题。我通过降级并使用 暂停解决了该问题bcmwl-kernel-sourceapt-mark但该选项似乎不适用于我当前的驱动程序。此后,我清除了过时的驱动程序以确保没有冲突,但这对问题没有影响。

其他线程提示我尝试以下操作,但无济于事:

sudo apt-get install --reinstall linux-firmware
sudo modprobe -r iwlwifi
sudo modprobe iwlwifi

系统信息:

 % sudo lshw -C network
  *-network
       description: Wireless interface
       product: Centrino Wireless-N 2230
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: wlan0
       version: c4
       serial: 60:6c:66:32:96:f5
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=4.2.0-35-generic firmware=18.168.6.1 latency=0 link=no multicast=yes wireless=IEEE 802.11bgn
       resources: irq:33 memory:f7d00000-f7d01fff

 % rfkill list                                                                                 
1: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no
2: asus-wlan: Wireless LAN
    Soft blocked: no
    Hard blocked: no
3: asus-bluetooth: Bluetooth
    Soft blocked: yes
    Hard blocked: no

 % dmesg | grep iwl                                                                                       
[    9.487676] iwlwifi 0000:02:00.0: can't disable ASPM; OS doesn't have ASPM control
[    9.514737] iwlwifi 0000:02:00.0: loaded firmware version 18.168.6.1 op_mode iwldvm
[    9.566860] iwlwifi 0000:02:00.0: CONFIG_IWLWIFI_DEBUG disabled
[    9.566863] iwlwifi 0000:02:00.0: CONFIG_IWLWIFI_DEBUGFS enabled
[    9.566865] iwlwifi 0000:02:00.0: CONFIG_IWLWIFI_DEVICE_TRACING enabled
[    9.566868] iwlwifi 0000:02:00.0: Detected Intel(R) Centrino(R) Wireless-N 2230 BGN, REV=0xC8
[    9.566968] iwlwifi 0000:02:00.0: L1 Enabled - LTR Disabled
[    9.630114] ieee80211 phy0: Selected rate control algorithm 'iwl-agn-rs'
[   10.361252] iwlwifi 0000:02:00.0: L1 Enabled - LTR Disabled
[   10.368831] iwlwifi 0000:02:00.0: Radio type=0x2-0x0-0x0
[   10.613667] iwlwifi 0000:02:00.0: L1 Enabled - LTR Disabled
[   10.621565] iwlwifi 0000:02:00.0: Radio type=0x2-0x0-0x0

 % sudo iwlist wlan0 scan                                                                                                    
wlan0     Scan completed :
          Cell 01 - Address: A0:21:B7:AC:C1:3C
                    Channel:11
                    Frequency:2.462 GHz (Channel 11)
                    Quality=39/70  Signal level=-71 dBm  
                    Encryption key:on
                    ESSID:"JsNet"
                    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=000000001928e67b
                    Extra: Last beacon: 32ms ago
                    IE: Unknown: 00054A734E6574
                    IE: Unknown: 010882848B960C121824
                    IE: Unknown: 03010B
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: 2A0100
                    IE: Unknown: 32043048606C
                    IE: Unknown: DD180050F2020101830003A4000027A4000042435E0062322F00
                    IE: Unknown: DD1E00904C33CC111BFFFF000000000000000000000000000000000000000000
                    IE: Unknown: 2D1ACC111BFFFF000000000000000000000000000000000000000000
                    IE: Unknown: DD1A00904C340B001B00000000000000000000000000000000000000
                    IE: Unknown: 3D160B001B00000000000000000000000000000000000000
                    IE: Unknown: DD0900037F01010000FF7F
                    IE: Unknown: DD0A00037F04010002004000
                    IE: Unknown: DD860050F204104A0001101044000102103B0001031047001000000000000010000000A021B7ACC13C1021000D4E6574676561722C20496E632E10230008574E4452333730301024000456314831104200046E6F6E651054000800060050F204000110110017574E445233373030763228576972656C65737320415029100800020086103C000103

 % sudo iw wlan0 scan                                                                                                        
BSS a0:21:b7:ac:c1:3c (on wlan0)
    TSF: 742840547 usec (0d, 00:12:22)
    freq: 2462
    beacon interval: 100
    capability: ESS Privacy ShortPreamble ShortSlotTime (0x0431)
    signal: -71.00 dBm
    last seen: 0 ms ago
    SSID: JsNet
    Supported rates: 1.0* 2.0* 5.5* 11.0* 6.0 9.0 12.0 18.0 
    DS Parameter set: channel 11
    RSN: * Version: 1
         * Group cipher: CCMP
         * Pairwise ciphers: CCMP
         * Authentication suites: PSK
         * Capabilities: (0x0000)
    ERP: <no flags>
    Extended supported rates: 24.0 36.0 48.0 54.0 
    WMM: * Parameter version 1
         * u-APSD
         * BE: CW 15-1023, AIFSN 3
         * BK: CW 15-1023, AIFSN 7
         * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
         * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
    HT capabilities:
        Capabilities: 0x11cc
            HT20
            SM Power Save disabled
            RX HT40 SGI
            TX STBC
            RX STBC 1-stream
            Max AMSDU length: 3839 bytes
            DSSS/CCK HT40
        Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
        Minimum RX AMPDU time spacing: 8 usec (0x06)
        HT RX MCS rate indexes supported: 0-15
        HT TX MCS rate indexes are undefined
    HT operation:
         * primary channel: 11
         * secondary channel offset: no secondary
         * STA channel width: 20 MHz
         * RIFS: 0
         * HT protection: non-HT mixed
         * non-GF present: 0
         * OBSS non-GF present: 1
         * dual beacon: 0
         * dual CTS protection: 0
         * STBC beacon: 0
         * L-SIG TXOP Prot: 0
         * PCO active: 0
         * PCO phase: 0
    WPS: * Version: 1.0
         * Wi-Fi Protected Setup State: 2 (Configured)
         * Response Type: 3 (AP)
         * UUID: 00000000-0000-1000-0000-a021b7acc13c
         * Manufacturer: Netgear, Inc.
         * Model: WNDR3700
         * Model Number: V1H1
         * Serial Number: none
         * Primary Device Type: 6-0050f204-1
         * Device name: WNDR3700v2(Wireless AP)
         * Config methods: Ethernet, Label, PBC
         * RF Bands: 0x3

答案1

@chili555 建议禁用 n11 是正确的想法,但我必须完全禁用它,也就是说

11n_disable=1

不同的价值观记录在

$ modinfo iwlwifi

parm: 11n_disable:disable 11n functionality, bitmap: 1: full, 2: disable agg TX, 4: disable agg RX, 8 enable agg TX (uint)

来源:WiFi设置中的“options iwlwifi 11n_disable=1”是什么?

答案2

首先,检查路由器中的设置。首选 WPA2-AES;而不是任何 WPA 和 WPA2 混合模式,当然也不是 TKIP。其次,如果您的路由器支持 N 速度,那么使用 2.4 GHz 频段的 20 MHz 信道宽度(而不是自动 20/40 MHz)可能会获得更好的连接性,尽管它可能会影响 N 速度。使用固定信道(1、6 或 11)比自动信道选择更能带来更好的连接效果。此外,请确保路由器未设置为仅使用 N 速度;首选自动 B、G 和 N。进行这些更改后,重新启动路由器。

接下来,我建议明确设置你的监管范围。检查你的:

sudo iw reg get

如果您选择 00,则这是一个通用的设置。请在此处查找您的设置:http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2然后暂时设置一下:

sudo iw reg set IS

当然,如果不是冰岛,请替换您的国家代码。永久设置它:

gksudo gedit /etc/default/crda

如果您没有文本编辑器 gedit,请使用 nano 或 Kate 或 leafpad。

将最后一行改为:

REGDOMAIN=IS

仔细校对,保存并关闭文本编辑器。

接下来,我在网络管理器中将 IPv6 设置为忽略:http://docs.fedoraproject.org/en-US/Fedora/18/html/Installation_Guide/images/netconfig/network-connections-ipv6-ignore.png 此示例适用于以太网,但您想要无线。

如果这些更改没有帮助,请尝试:

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

如果有帮助,请使其永久生效:

sudo -i
echo "options iwlwifi 11n_disable=8"  >>  /etc/modprobe.d/iwlwifi.conf
exit

相关内容