Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
WLAN mit Madwifi wackelige Verbindung
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
curator
Apprentice
Apprentice


Joined: 10 Apr 2007
Posts: 193

PostPosted: Sat Jun 02, 2007 8:06 am    Post subject: WLAN mit Madwifi wackelige Verbindung Reply with quote

Hallo,
in meinem Thinkpad habe ich eine Atheros Karte, die ich mit Madwifi-ng grundsätlich auch mit WPA und WEP am laufen habe. Leider habe ich (genau wie in Opensuse, das ich vorher installiert habe) ab und an das Problem, das meine Verbindung weg ist, das heißt netstat zeigt mir nur noch localost an. Nach einigen Sekunden geht es dann meist wieder. Das seltsame an der Sache ist, das Problem habe ich an zwei Standorten, mit zwei verschiedenen WLAN-Routern (einmal WEP, einmal WPA-PSK). Am Standort eins ist genau eine Deckenwand dazwischen und in Standort zwei lediglich eine Tür, bei beiden das gleiche Problem. Es bricht mir das Herz, das sagen zu müssen, aber unter Windows gings.
Was kann ich tun, um das Prob zu umgehen? Muss ich meine config ändern, oder die Router config?

Code:

# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d.  To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).

modules_eth0=( "dhcp" )

dns_domain_lo="WORKGROUP"
#config_eth0=( "dhcp" )
#dhcp_eth0="nodns nontp nonis"


config_eth0=( "192.168.2.3 netmask 255.255.255.0 brd 192.168.2.255" )
routes_eth0=( "default gw 192.168.2.2" )
dns_servers_eth0=( " 192.168.2.1 ")


modules=( "wpa_supplicant" )
wpa_supplicant_ath0="-Dmadwifi"
wpa_timeout_ath0=60


Code:

# This is a network block that connects to any unsecured access point.
# We give it a low priority so any defined blocks are preferred.
network={
   ssid="Router"
   psk="xxxxxxxxxx"
   priority=5
}

network={
   ssid="WLAN"
   key_mgmt=NONE
   priority=7
}

network={
  ssid="OpenWrt"
  key_mgmt=NONE
  wep_key0=xxxxxxxxxx
  wep_tx_keyidx=0
  priority=9
}


network={
  ssid="WLAN"
  key_mgmt=NONE
  wep_key0=xxxxxxxxxx
  wep_tx_keyidx=0
  priority=7
}


Beide Router sind WRT 54G, einer mit org firmware, einer fährt OpenWRT
Danke für alle Tipps
Back to top
View user's profile Send private message
SvenFischer
Veteran
Veteran


Joined: 05 Feb 2003
Posts: 1033
Location: Berlin

PostPosted: Sat Jun 02, 2007 1:32 pm    Post subject: Reply with quote

[ebuild U ] net-wireless/madwifi-ng-tools-0.9.3.1 [0.9.3] 3,407 kB
[ebuild R ] net-wireless/wpa_supplicant-0.5.7 USE="dbus madwifi qt3 qt4 readline ssl -gnutls -gsm" 0 kB
[ebuild U ] net-wireless/madwifi-ng-0.9.3.1 [0.9.3-r2] USE="injection%*" 0 kB

Code:

File: /etc/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1

network={
        ssid="svenfischer"
        scan_ssid=1
        key_mgmt=WPA-PSK
        pairwise=TKIP
        group=TKIP
        psk=
}

network={
        ssid="Ernesto"
        key_mgmt=NONE
        scan_ssid=1
#        group=WEP40
        wep_key0=
        wep_tx_keyidx=0
        priority=3
}


Code:

File: /etc/conf.d/net

modules=( "dhcpcd" )
modules=( "wpa_supplicant" )

config_eth0=( "dhcp" )
dhcpcd_eth0="-t 6"
#fallback_eth0=( "192.168.0.34 netmask 255.255.255.0" )


wpa_supplicant_ath0="-Dmadwifi"
config_ath0=( "dhcp" )
mode_ath0="managed"
dhcpcd_ath0=( "" )

_________________
Core2Duo, 4GB RAM, AMD/ATI 4850 and nice person in front!
Back to top
View user's profile Send private message
curator
Apprentice
Apprentice


Joined: 10 Apr 2007
Posts: 193

PostPosted: Sat Jun 02, 2007 2:12 pm    Post subject: Reply with quote

Versuchen wir das doch gleich mal.........
Back to top
View user's profile Send private message
curator
Apprentice
Apprentice


Joined: 10 Apr 2007
Posts: 193

PostPosted: Sun Jun 03, 2007 11:44 am    Post subject: Reply with quote

Hab das jetzt so eingestellt, eben war die Verbindung aber wieder kurz weg, scheint also nicht des Rätsels Lösung zu sein. Ob die Verindung jetzt "seltener" Abbricht, vermag ich nohc nicht zu sagen.

Weitere Ideen?
Back to top
View user's profile Send private message
flash49
Apprentice
Apprentice


Joined: 12 Feb 2005
Posts: 233

PostPosted: Sun Jun 03, 2007 4:26 pm    Post subject: Reply with quote

Ich hatte mal mit meinem Amilo 1605G die selben Probleme. Zuerst lief es, dann, mit einer bestimmten Kombination aus kernel+madwifi-ng+wpa_supplicant ging die Verbindung immer wieder verloren.(Leider weiß ich nicht genau welche Kombination das war und erst recht nicht was genau schuld war.)

Bei mir war es wohl das "rekeying" bei wpa. Schalte doch mal den Debugmodus des Treibers ein:
Code:
echo 1 >/proc/sys/dev/ath/debug
Die Ausgaben des Treibers kurz vor und nach dem Verbindungsabbruch wären interessant.

Im Moment läuft bei mir fehlerfrei:
Kernel: suspend2-sources-2.6.19-r3
madwifi-ng: 0.9.3.1 (0.9.3 lief aber meines Wissens auch schon stabil)
wpa_supplicant: 0.5.7

Was ich noch beobachtet habe:
Wenn das rekeying beginnt scheint das Interface von Gentoo kurz als "down" angesehen zu werden (was es aber nicht ist!) und die entsprechenden Skripte werden ausgeführt. Falls du also wie ich zuerst in der "postdown{}" Sektion in "conf.d/net" dein WLAN abschaltest, dann ist die Verbindung weg. 8O
Back to top
View user's profile Send private message
curator
Apprentice
Apprentice


Joined: 10 Apr 2007
Posts: 193

PostPosted: Sun Jun 03, 2007 7:14 pm    Post subject: Reply with quote

Hi, danke für den Tipp, hab das debuggen mal aktiviert. Dumme frage: Wo ist die log Datei, in der ich das prüfen kann?
Oder postet der die "Fehler" in dmesg?

Sry, für die dumme Frage.

MfG
Alex
Back to top
View user's profile Send private message
flash49
Apprentice
Apprentice


Joined: 12 Feb 2005
Posts: 233

PostPosted: Mon Jun 04, 2007 7:03 pm    Post subject: Reply with quote

Das sollte in dmesg landen, allerdings ist das ziemlich viel und läuft schnell über, weshalb du die Ausgaben auch ins syslog schreiben solltest.
In der Standardeinstellung(=default config) von syslog-ng z.B. schreib Gentoo alles (inklusive den Kernelausgaben) nach /var/log/messages.
Back to top
View user's profile Send private message
curator
Apprentice
Apprentice


Joined: 10 Apr 2007
Posts: 193

PostPosted: Mon Jun 04, 2007 7:11 pm    Post subject: Reply with quote

Habs direkt gefunden, danke:
Code:

Jun  4 21:11:54 X40 wpa_cli: interface ath0 DISCONNECTED
Jun  4 21:11:54 X40 dhcpcd[1613]: ath0: received SIGTERM, stopping
Jun  4 21:11:54 X40 dhcpcd[1613]: ath0: removing default route via 192.168.1.1 m
etric 2000
Jun  4 21:11:54 X40 dhcpcd[1613]: ath0: deleting IP address 192.168.1.3/24
Jun  4 21:11:55 X40 dhcpcd[1613]: ath0: exiting
Jun  4 21:12:04 X40 wpa_cli: interface ath0 CONNECTED
Jun  4 21:12:05 X40 dhcpcd[2719]: ath0: dhcpcd 3.0.16 starting
Jun  4 21:12:05 X40 dhcpcd[2719]: ath0: hardware address = 00:05:4e:4c:36:e3
Jun  4 21:12:05 X40 dhcpcd[2719]: ath0: broadcasting for a lease
Jun  4 21:12:05 X40 dhcpcd[2719]: ath0: offered 192.168.1.3 from 192.168.1.1
Jun  4 21:12:05 X40 dhcpcd[2719]: ath0: leased 192.168.1.3 for infinity
Jun  4 21:12:05 X40 dhcpcd[2719]: ath0: adding IP address 192.168.1.3/24
Jun  4 21:12:05 X40 dhcpcd[2719]: ath0: adding route to 192.168.1.0 (255.255.255
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum