Hallo Leute,
ich habe mir bei ebay eine WLAN-Karte von TP-Link mit Atheros Chipsatz auf den Rat von lugge ersteigert:
Welcher WLAN Adapter für Gen2VDR 1.2?
Ich habe die Karte für gerade mal 1 € bekommen, gut inkl. Versand 4,50€, aber dafür kann mal es nicht selbst löten ;o)
Die erste Euphorie war aber schnell verfolgen, als ich gesehen habe, welche Installationsorgie das werden wird, wenn man nur Linux Grundkenntnisse besitzt.
Ich habe mitprotokolliert, um es bei einem weiteren Mal einfacher zu haben. Bevor das Dokument aber jetzt nur auf meiner Festplatte rumliegt, kann ich es auch hier reinstellen, vielleicht hilft es ja dem einen oder anderen
Sorry, für die wenig ansprechende Form:
#http://gentoo-wiki.com/HOWTO_MadWifi_Install
#http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1&chap=3#wireless
#http://madwifi.org/wiki/UserDocs/FirstTimeHowTo
#Zuerst einmal schauen, ob auch wirklich ein Atheros-Chip auf der #WLAN-Karte ist:
lspci | grep -i Atheros
#liefert etwas in der Art:
#01:08.0 Ethernet controller: Atheros Communications, Inc. AR5005G #802.11abg NIC (rev 01)
#System aktualisieren und benötigte Tools runterladen und installieren:
emerge --sync
layman -S
emerge wireless-tools
emerge dhcpcd
emerge madwifi-ng madwifi-ng-tools
#Im madwifi-Verzeichnis (/usr/src/madwifi):
make
make install
modprobe ath_pci
#nun sollte iwconfig schon etwas finden:
iwconfig
#liefert
#ath0 IEEE 802.11b ESSID:"" Nickname:""
# Mode:Managed Channel:0 Access Point: Not-Associated
# Bit Rate:0 kb/s Tx-Power:0 dBm Sensitivity=1/1
# Retry:off RTS thr:off Fragment thr:off
# Encryption key:off
# Power Management:off
# Link Quality=0/70 Signal level=0 dBm Noise level=0 dBm
# Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
# Tx excessive retries:0 Invalid misc:0 Missed beacon:0
ifconfig ath0 up
modprobe wlan_scan_sta
wlanconfig ath0 list scan
#liefert bei mir: 01xxxxx07 00:1a:4f:9b:01:bf 13 54M 51:0 100 EPs #WPA WME
iwconfig ath0 essid "01xxxxx07"
dhcpcd ath0
#liefert:
#Error, ath0: timed out
#Error, ath0: lease information file `/var/lib/dhcpcd/dhcpcd-ath0.info' does #not exist
#WPA aus, also ungeschützt: dhcpcd ath0, keine Fehlermeldung, in Fritzbox #wird die Verbindung angezeigt => OK
#jetzt WPA wieder an und auf folgenden Seiten weiterlesen:
#http://madwifi.org/wiki/UserDocs/…ationclientSide
#http://madwifi.org/wiki/UserDocs/802.11i
#zuerst eine Datei namens ".config" im wpa_supplicant-Verzeichnis #(/usr/src/wpa_supplicant) erstellen und
#diesen Inhalt einfügen:
#---Anfang---
CONFIG_DRIVER_MADWIFI=y
CFLAGS += -I/usr/src/madwifi
CONFIG_CTRL_IFACE=y
#---Ende---
cd /usr/src/wpa_supplicant
make clean
make
make install
wpa_passphrase 01xxxxx07 Gxxxxxxxxxxxxxxxh >> /etc/wpa_supplicant.conf
#/etc/wpa_supplicant.conf editieren:
#---Anfang---
network={
ssid="01xxxxx07"
psk="Gxxxxxxxxxxxxxxxh"
#psk=acb34612babae2181e178889b1baa9139fad4e01405c0a12d3dcebdbe51eb151
key_mgmt=WPA-PSK
proto=WPA
pairwise=TKIP
# proto=RSN
}
#---Ende---
chmod 640 /etc/wpa_supplicant.conf
modprobe ath_pci
iwconfig ath0 essid "01xxxxx07"
ifconfig ath0 192.168.178.26 up
/usr/local/bin/wpa_supplicant -dd -Dwext -iath0 -c/etc/wpa_supplicant.conf
#=>läuft ;o), aber eben erst im Debugmode, jetzt noch das ganze #automatisch beim Start ausführen
#in /etc/conf.d/net wie folgt ergänzen:
#---Anfang---
config_eth1=( "192.168.5.5 netmask 255.255.0.0" )
fallback_eth0=( "192.168.0.2 netmask 255.255.0.0" )
fallback_route_eth0=( "default via 192.168.0.1" )
config_eth0=( "dhcp" )
dhcpcd_eth0="-t 10 -h vdr01"
modules=( "wpa_supplicant" )
wpa_supplicant_ath0="-Dwext"
wpa_timeout_ath0=60
#---Ende---
modprobe ath_pci
dmsg
#Zum automatischen starten beim Booten folgendes in der #/etc/modules.autoload.d/kernel-2.6 ergänzen:
ath_pci
rc-update add net.ath0 default
#Das sollte es gewesen sein ;o)
#weiß nicht mehr, ob ich folgendes noch ausgeführt habe:
#cd /etc/init.d
#ln -s net.lo net.ath0
#/etc/init.d/net.ath0 start