[+] ath9k - niestabilne po

Masz problemy z siecią bądź internetem? Zapytaj tu
jackweb
Posty: 38
Rejestracja: 01 czerwca 2008, 21:29

[+] ath9k - niestabilne połączenie z siecią wifi

Post autor: jackweb »

Witam!

Mam problem z WiFi na GNU/Linuksie (Debian Wheezy): co jakiś czas polecenie ping wyświetla mi komunikat:

Kod: Zaznacz cały

Destination Host Unreachable
Ponadto - niektóre strony czasem się długo ładują, a gdy wysyłam ping, część pakietów nie dochodzi; przy czym na Windowsie wszystko jest w porządku.
Oto co udało mi się zrobić, aby załagodzić sytuację (co nie pomogło w 100%):
  • dodaję sterownik ath9k poleceniem modprobe
  • uzupełniam plik /etc/rc.local poleceniem

    Kod: Zaznacz cały

    iwconfig wlan0 rate 54M
  • do /etc/modprobe.d/ath9.conf dodaję linijkę z:

    Kod: Zaznacz cały

    nohwcrypt=1
    aby nie zrywał połączeń
I nie jest niestety idealnie.

Oto wyniki wykonanych poleceń:
http://pastebin.com/9Zw7L3hq

Kod: Zaznacz cały

architecture: i386

Kod: Zaznacz cały

ifconfig
eth0      Link encap:Ethernet  HWaddr 70:5a:b6:12:4d:e3  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:46 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:28 errors:0 dropped:0 overruns:0 frame:0
          TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1812 (1.7 KiB)  TX bytes:1812 (1.7 KiB)

wlan0     Link encap:Ethernet  HWaddr 90:4c:e5:9e:bc:98  
          inet addr:192.168.0.159  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::924c:e5ff:fe9e:bc98/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7 errors:0 dropped:0 overruns:0 frame:0
          TX packets:52 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2166 (2.1 KiB)  TX bytes:9901 (9.6 KiB)

Kod: Zaznacz cały

iwconfig
wlan0     IEEE 802.11bgn  ESSID :( ...)
          Mode:Managed  Frequency:2.437 GHz  Access Point: 00:22:B0:A9:FC :D 2   
          Bit Rate=54 Mb/s   Tx-Power=13 dBm   
          Retry  long limit:7   RTS thr :o ff   Fragment thr :o ff
          Encryption key :o ff
          Power Management :o n
          Link Quality=34/70  Signal level=-76 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:3  Invalid misc:24   Missed beacon:0

Kod: Zaznacz cały

lspci
00:00.0 Host bridge: Intel Corporation Mobile 945GME Express Memory Controller Hub (rev 03)
    Subsystem: Acer Incorporated [ALI] Device 022f
    Kernel driver in use: agpgart-intel
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GME Express Integrated Graphics Controller (rev 03)
    Subsystem: Acer Incorporated [ALI] Device 022f
    Kernel driver in use: i915
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
    Subsystem: Acer Incorporated [ALI] Device 022f
00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 02)
    Subsystem: Acer Incorporated [ALI] Device 022f
    Kernel driver in use: HDA Intel
00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 02)
    Kernel driver in use: pcieport
00:1c.1 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 2 (rev 02)
    Kernel driver in use: pcieport
00:1c.2 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 3 (rev 02)
    Kernel driver in use: pcieport
00:1c.3 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 4 (rev 02)
    Kernel driver in use: pcieport
00:1d.0 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #1 (rev 02)
    Subsystem: Acer Incorporated [ALI] Device 022f
    Kernel driver in use: uhci_hcd
00:1d.1 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 02)
    Subsystem: Acer Incorporated [ALI] Device 022f
    Kernel driver in use: uhci_hcd
00:1d.2 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 02)
    Subsystem: Acer Incorporated [ALI] Device 022f
    Kernel driver in use: uhci_hcd
00:1d.3 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 02)
    Subsystem: Acer Incorporated [ALI] Device 022f
    Kernel driver in use: uhci_hcd
00:1d.7 USB Controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 02)
    Subsystem: Acer Incorporated [ALI] Device 022f
    Kernel driver in use: ehci_hcd
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
    Subsystem: Acer Incorporated [ALI] Device 022f
00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA AHCI Controller (rev 02)
    Subsystem: Acer Incorporated [ALI] Device 022f
    Kernel driver in use: ahci
00:1f.3 SMBus: Intel Corporation N10/ICH 7 Family SMBus Controller (rev 02)
    Subsystem: Acer Incorporated [ALI] Device 022f
    Kernel driver in use: i801_smbus
01:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
    Subsystem: Foxconn International, Inc. Device e016
    Kernel driver in use: ath9k
03:00.0 Ethernet controller: Atheros Communications AR8132 Fast Ethernet (rev c0)
    Subsystem: Acer Incorporated [ALI] Device 022f
    Kernel driver in use: atl1c

Kod: Zaznacz cały

uname -a
Linux debian 2.6.38-2-686 #1 SMP Sun May 8 14:49:45 UTC 2011 i686 GNU/Linux
Co powinienem zrobić?
Awatar użytkownika
Bastian
Member
Posty: 1424
Rejestracja: 30 marca 2008, 16:09
Lokalizacja: Poznañ

Post autor: Bastian »

Spróbuj na innym kanale.
jackweb
Posty: 38
Rejestracja: 01 czerwca 2008, 21:29

Post autor: jackweb »

Witam!

Co mam rozumieć pod pojęciem "inny kanał"?

Pozdrawiam.
Awatar użytkownika
Bastian
Member
Posty: 1424
Rejestracja: 30 marca 2008, 16:09
Lokalizacja: Poznañ

Post autor: Bastian »

jackweb pisze:Witam!

Co mam rozumieć pod pojęciem "inny kanał"?

Pozdrawiam.
W ruterze masz możliwość wybrania innego kanału niż domyślny. Prawdopodobnie masz ustawiony kanał 1, tak jak cała masa ludzi, którzy nigdy w życiu nie weszli w ustawienia swoich ruterów. To generuje duży szum. Przestaw kanał na 6 i sprawdź. U mnie jak właśnie miałem takie objawy to przestawienie kanału pomogło.
Awatar użytkownika
Redhead
Junior Member
Posty: 526
Rejestracja: 17 lipca 2007, 17:37

Post autor: Redhead »

http://davidwills.net/cmit265/wifi.html
Kanał 1 bedzie działał podobnie jak kanał 6 czy 11. Chodzi o zakres i pokrywania sie z innymi kanałami innych ludzi. Ja zawsze ustawiam 11.
snejk
Posty: 78
Rejestracja: 03 sierpnia 2010, 00:33
Lokalizacja: /dev/random

Post autor: snejk »

Poza tym jaką masz wersję jądra? Z niektórymi były problemy, może spróbuj uaktualnić.
przemox1
Posty: 39
Rejestracja: 06 stycznia 2010, 16:21

Post autor: przemox1 »

U mnie na 2.6.37-2 działa poprawnie :)
jackweb
Posty: 38
Rejestracja: 01 czerwca 2008, 21:29

Post autor: jackweb »

Przepraszam, że piszę odpowiedź aż po roku, ale dopiero niedawno rozwiązany został mój problem z kartą sieciową Atheros i sterownikiem ath9k pod Debianem. Rozwiązanie było dosyć proste. Zainstalowałem aktualne sterowniki ath9k, wpa_supplicant ze źródeł; móje jądro jest w wersji 3.2.0-2-686-pae. Wszystko to na testowej wersji Debiana Wheezy, ale głównie problem powodowało - uwaga - to, że nie użyłem polecenia

Kod: Zaznacz cały

iwconfig wlan0 power off
Polecenie ta umożliwia wyłączenie zarządzania energią przez kartę sieciową - dzięki temu nie rozłącza mi się połączenie z siecią wifi co jakiś czas.
ODPOWIEDZ