spitfirejunky
July 8th, 2012, 05:37 PM
SOLUTION:
http://ubuntuforums.org/showpost.php?p=12102147&postcount=7
To elaborate on this solution:
If you're running 12.04, you can navigate to:
/etc/default/crda
And add/modify the following line:
# The country code that corresponds to
# your wireless router. I'm in the US so:
REGDOMAIN=US
Save, then restart.
---------------------
Periodically my internet connection will drop (although the notifier will indicate I'm still connected) and I'll get "DNS lookup failed" errors inside any web browser. I called all of these immediately after my connection dropped.
lsusb:
rude@Rude-Linux:~$ lsusb
Bus 002 Device 004: ID 0cf3:1002 Atheros Communications, Inc. TP-Link TL-WN821N v2 802.11n [Atheros AR9170]
iwconfig:
rude@Rude-Linux:~$ iwconfig wlan0
wlan0 IEEE 802.11bgn ESSID:"DOODEE"
Mode:Managed Frequency:2.437 GHz Access Point: 20:AA:4B:2C:F4:F0
Bit Rate=130 Mb/s Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=68/70 Signal level=-42 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:1440 Invalid misc:116 Missed beacon:0
dmesg:
rude@Rude-Linux:~$ dmesg
[ 14.969707] wlan0: authenticate with 20:aa:4b:2c:f4:f0 (try 1)
[ 14.971319] wlan0: authenticated
[ 15.079513] wlan0: associate with 20:aa:4b:2c:f4:f0 (try 1)
[ 15.083525] wlan0: RX AssocResp from 20:aa:4b:2c:f4:f0 (capab=0x411 status=0 aid=3)
[ 15.083528] wlan0: associated
[ 15.184087] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 35.652830] ieee80211 phy0: channel change: 2447 -> 2452 failed (3).
[ 45.537091] audit_printk_skb: 45 callbacks suppressed
[ 45.537093] type=1701 audit(1341763463.537:27): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=2480 comm="chrome" reason="seccomp" sig=0 syscall=2 compat=0 ip=0x7ffe80627eb0 code=0x50002
[ 45.537102] type=1701 audit(1341763463.537:28): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=2480 comm="chrome" reason="seccomp" sig=0 syscall=2 compat=0 ip=0x7ffe80627eb0 code=0x50002
[ 45.556989] type=1701 audit(1341763463.557:29): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=2486 comm="chrome" reason="seccomp" sig=0 syscall=59 compat=0 ip=0x7ffe80601427 code=0x50002
[ 45.779478] type=1701 audit(1341763463.777:30): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=2401 comm="chrome" reason="seccomp" sig=0 syscall=83 compat=0 ip=0x7fa49c670e47 code=0x50002
[ 45.779484] type=1701 audit(1341763463.777:31): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=2401 comm="chrome" reason="seccomp" sig=0 syscall=83 compat=0 ip=0x7fa49c670e47 code=0x50002
[ 45.783427] type=1701 audit(1341763463.781:32): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=2401 comm="chrome" reason="seccomp" sig=0 syscall=2 compat=0 ip=0x7fa49c670eb0 code=0x50002
[ 45.783435] type=1701 audit(1341763463.781:33): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=2401 comm="chrome" reason="seccomp" sig=0 syscall=2 compat=0 ip=0x7fa49c670eb0 code=0x50002
[ 174.294195] type=1701 audit(1341763592.414:34): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=2401 comm="chrome" reason="seccomp" sig=0 syscall=83 compat=0 ip=0x7fa49c670e47 code=0x50002
[ 174.294207] type=1701 audit(1341763592.414:35): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=2401 comm="chrome" reason="seccomp" sig=0 syscall=83 compat=0 ip=0x7fa49c670e47 code=0x50002
iwlist scan:
rude@Rude-Linux:~$ iwlist scan
lo Interface doesn't support scanning.
eth1 Interface doesn't support scanning.
wlan0 Scan completed :
Cell 01 - Address: 20:AA:4B:2C:F4:F0
Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=70/70 Signal level=-38 dBm
Encryption key:on
ESSID:"DOODEE"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=00000011da451183
Extra: Last beacon: 77632ms ago
IE: Unknown: 0006444F4F444545
IE: Unknown: 010882848B962430486C
IE: Unknown: 030106
IE: Unknown: 2A0100
IE: Unknown: 2F0100
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: 32040C121860
IE: Unknown: 2D1A7C181BFFFF000000000000000000000000000000000000 000000
IE: Unknown: 3D1606081500000000000000000000000000000000000000
IE: Unknown: 4A0E14000A002C01C800140005001900
IE: Unknown: 7F0101
IE: Unknown: DD760050F204104A0001101044000102103B00010310470010 EFF5877EC1289585ACE332361A52CC74102100074C696E6B73 79731023000545313230301024000776322E302E3032104200 0234321054000800060050F204000110110005453132303010 0800022688103C0001011049000600372A000120
IE: Unknown: DD090010180202F02C0000
IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F 00
eth0 Interface doesn't support scanning.
lshw:
rude@Rude-Linux:~$ sudo lshw -C network
[sudo] password for rude:
*-network
description: Ethernet interface
product: 88E8056 PCI-E Gigabit Ethernet Controller
vendor: Marvell Technology Group Ltd.
physical id: 0
bus info: pci@0000:06:00.0
logical name: eth0
version: 12
serial: bc:ae:c5:0e:fe:1a
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm vpd msi pciexpress bus_master cap_list rom ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=sky2 driverversion=1.30 firmware=N/A latency=0 link=no multicast=yes port=twisted pair
resources: irq:75 memory:fbdfc000-fbdfffff ioport:d800(size=256) memory:fbdc0000-fbddffff
*-network
description: Ethernet interface
product: 88E8056 PCI-E Gigabit Ethernet Controller
vendor: Marvell Technology Group Ltd.
physical id: 0
bus info: pci@0000:05:00.0
logical name: eth1
version: 12
serial: bc:ae:c5:0e:fa:fb
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm vpd msi pciexpress bus_master cap_list rom ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=sky2 driverversion=1.30 firmware=N/A latency=0 link=no multicast=yes port=twisted pair
resources: irq:76 memory:fbcfc000-fbcfffff ioport:c800(size=256) memory:fbcc0000-fbcdffff
*-network
description: Wireless interface
physical id: 1
bus info: usb@2:6
logical name: wlan0
serial: 00:22:2d:28:7e:72
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=carl9170 driverversion=3.2.0-26-generic firmware=1.9.5 ip=192.168.1.137 link=yes multicast=yes wireless=IEEE 802.11bgn
lsb_release and uname:
rude@Rude-Linux:~$ lsb_release -d
Description: Ubuntu 12.04 LTS
rude@Rude-Linux:~$ uname -mr
3.2.0-26-generic x86_64
The pattern I notice is under "iwconfig". Whenever "Tx excessive retries" exceeds 1400, the connection fails.
http://ubuntuforums.org/showpost.php?p=12102147&postcount=7
To elaborate on this solution:
If you're running 12.04, you can navigate to:
/etc/default/crda
And add/modify the following line:
# The country code that corresponds to
# your wireless router. I'm in the US so:
REGDOMAIN=US
Save, then restart.
---------------------
Periodically my internet connection will drop (although the notifier will indicate I'm still connected) and I'll get "DNS lookup failed" errors inside any web browser. I called all of these immediately after my connection dropped.
lsusb:
rude@Rude-Linux:~$ lsusb
Bus 002 Device 004: ID 0cf3:1002 Atheros Communications, Inc. TP-Link TL-WN821N v2 802.11n [Atheros AR9170]
iwconfig:
rude@Rude-Linux:~$ iwconfig wlan0
wlan0 IEEE 802.11bgn ESSID:"DOODEE"
Mode:Managed Frequency:2.437 GHz Access Point: 20:AA:4B:2C:F4:F0
Bit Rate=130 Mb/s Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=68/70 Signal level=-42 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:1440 Invalid misc:116 Missed beacon:0
dmesg:
rude@Rude-Linux:~$ dmesg
[ 14.969707] wlan0: authenticate with 20:aa:4b:2c:f4:f0 (try 1)
[ 14.971319] wlan0: authenticated
[ 15.079513] wlan0: associate with 20:aa:4b:2c:f4:f0 (try 1)
[ 15.083525] wlan0: RX AssocResp from 20:aa:4b:2c:f4:f0 (capab=0x411 status=0 aid=3)
[ 15.083528] wlan0: associated
[ 15.184087] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 35.652830] ieee80211 phy0: channel change: 2447 -> 2452 failed (3).
[ 45.537091] audit_printk_skb: 45 callbacks suppressed
[ 45.537093] type=1701 audit(1341763463.537:27): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=2480 comm="chrome" reason="seccomp" sig=0 syscall=2 compat=0 ip=0x7ffe80627eb0 code=0x50002
[ 45.537102] type=1701 audit(1341763463.537:28): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=2480 comm="chrome" reason="seccomp" sig=0 syscall=2 compat=0 ip=0x7ffe80627eb0 code=0x50002
[ 45.556989] type=1701 audit(1341763463.557:29): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=2486 comm="chrome" reason="seccomp" sig=0 syscall=59 compat=0 ip=0x7ffe80601427 code=0x50002
[ 45.779478] type=1701 audit(1341763463.777:30): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=2401 comm="chrome" reason="seccomp" sig=0 syscall=83 compat=0 ip=0x7fa49c670e47 code=0x50002
[ 45.779484] type=1701 audit(1341763463.777:31): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=2401 comm="chrome" reason="seccomp" sig=0 syscall=83 compat=0 ip=0x7fa49c670e47 code=0x50002
[ 45.783427] type=1701 audit(1341763463.781:32): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=2401 comm="chrome" reason="seccomp" sig=0 syscall=2 compat=0 ip=0x7fa49c670eb0 code=0x50002
[ 45.783435] type=1701 audit(1341763463.781:33): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=2401 comm="chrome" reason="seccomp" sig=0 syscall=2 compat=0 ip=0x7fa49c670eb0 code=0x50002
[ 174.294195] type=1701 audit(1341763592.414:34): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=2401 comm="chrome" reason="seccomp" sig=0 syscall=83 compat=0 ip=0x7fa49c670e47 code=0x50002
[ 174.294207] type=1701 audit(1341763592.414:35): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=2401 comm="chrome" reason="seccomp" sig=0 syscall=83 compat=0 ip=0x7fa49c670e47 code=0x50002
iwlist scan:
rude@Rude-Linux:~$ iwlist scan
lo Interface doesn't support scanning.
eth1 Interface doesn't support scanning.
wlan0 Scan completed :
Cell 01 - Address: 20:AA:4B:2C:F4:F0
Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=70/70 Signal level=-38 dBm
Encryption key:on
ESSID:"DOODEE"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=00000011da451183
Extra: Last beacon: 77632ms ago
IE: Unknown: 0006444F4F444545
IE: Unknown: 010882848B962430486C
IE: Unknown: 030106
IE: Unknown: 2A0100
IE: Unknown: 2F0100
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: 32040C121860
IE: Unknown: 2D1A7C181BFFFF000000000000000000000000000000000000 000000
IE: Unknown: 3D1606081500000000000000000000000000000000000000
IE: Unknown: 4A0E14000A002C01C800140005001900
IE: Unknown: 7F0101
IE: Unknown: DD760050F204104A0001101044000102103B00010310470010 EFF5877EC1289585ACE332361A52CC74102100074C696E6B73 79731023000545313230301024000776322E302E3032104200 0234321054000800060050F204000110110005453132303010 0800022688103C0001011049000600372A000120
IE: Unknown: DD090010180202F02C0000
IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F 00
eth0 Interface doesn't support scanning.
lshw:
rude@Rude-Linux:~$ sudo lshw -C network
[sudo] password for rude:
*-network
description: Ethernet interface
product: 88E8056 PCI-E Gigabit Ethernet Controller
vendor: Marvell Technology Group Ltd.
physical id: 0
bus info: pci@0000:06:00.0
logical name: eth0
version: 12
serial: bc:ae:c5:0e:fe:1a
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm vpd msi pciexpress bus_master cap_list rom ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=sky2 driverversion=1.30 firmware=N/A latency=0 link=no multicast=yes port=twisted pair
resources: irq:75 memory:fbdfc000-fbdfffff ioport:d800(size=256) memory:fbdc0000-fbddffff
*-network
description: Ethernet interface
product: 88E8056 PCI-E Gigabit Ethernet Controller
vendor: Marvell Technology Group Ltd.
physical id: 0
bus info: pci@0000:05:00.0
logical name: eth1
version: 12
serial: bc:ae:c5:0e:fa:fb
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm vpd msi pciexpress bus_master cap_list rom ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=sky2 driverversion=1.30 firmware=N/A latency=0 link=no multicast=yes port=twisted pair
resources: irq:76 memory:fbcfc000-fbcfffff ioport:c800(size=256) memory:fbcc0000-fbcdffff
*-network
description: Wireless interface
physical id: 1
bus info: usb@2:6
logical name: wlan0
serial: 00:22:2d:28:7e:72
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=carl9170 driverversion=3.2.0-26-generic firmware=1.9.5 ip=192.168.1.137 link=yes multicast=yes wireless=IEEE 802.11bgn
lsb_release and uname:
rude@Rude-Linux:~$ lsb_release -d
Description: Ubuntu 12.04 LTS
rude@Rude-Linux:~$ uname -mr
3.2.0-26-generic x86_64
The pattern I notice is under "iwconfig". Whenever "Tx excessive retries" exceeds 1400, the connection fails.