PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Hilfe beim Einrichten von Wlan



sven_rop
25.01.09, 15:14
Hallo erst mal.

Ich hoffe ihr könnt mir weiter helfen. Irgendwie bekomme ich es nicht hin meine Wlankarte ans Laufen zu bekommen. Ich benutze Linux Blacktrack mit einer Ralink Wlan Karte. Bisher habe ich den aktuellen Treiber von der Homepage von Ralink runter gelanden und installiert. Das hat soweit auch geklappt. Die Datei RT2860STA.dat habe ich auch dementsprechend angepasst. Linux scheint die Karte auch zu erkennen, zumindestens kann ich die Wlankarte mit dem kwlan manager anwählen und konfigurieren. Was komisch ist, wenn ich den Befehl lspci eingebe bekomme ich folgende Meldung:


02:00.0 Network controller: Ralink Unknown device 0781

Allerdings wird mir die Karte unter iwconfig angezeigt und kann auch konfiguriert werden.
Teilweise sagt der kwlan manager auch das er mit der ssid verbunden ist, sendet auch Pakete, bekommt aber keine zurück. Anscheinend gibt es Probleme mit der WPA Verschlüsselung.

Meine Bitte ist, das mich mal jemand an die Hand nimmt und mit mir Schritt für Schritt das Ganze durch geht, mir sagt, was er für Informationen braucht und mit mir schauen kann, das ich diese Karte ans Laufen bekomme. Ich muss dazu sagen, das ich bisher noch nicht all zu viel mit Linux zu tun hatte. Hoffe es findet sich hier jemand, der die nötige Geduld hat mit mir diese Karte einzurichten. Danke schon mal im Vorraus dafür.

gadget
25.01.09, 15:22
Hi!

Vielleicht versuchst du erstmal, eine Verbindung ohne (WPA-) Verschlüsselung aufzubauen. Wenn das funktioniert, kannst du dich dem WPA-Problem gesondert widmen.

Gruß,
gadget

sven_rop
25.01.09, 15:46
Das habe ich schon versucht, mit einer WEP Verschlüsselung, hat aber auch nicht geklappt. Ich weiß leider auch nicht wie ich den Fehler eingrenzen soll, oder kann.

gadget
25.01.09, 15:59
Eingrenzen kannst du zunächst, indem du testweise alle Verschlüsselung deaktivierst.

Gruß,
gadget

sven_rop
25.01.09, 16:21
So habe die Verschlüsselung mal koplett ausgeschaltet, der kwlan manager sagt genau wie bei der Verschlüsselung, dass er mit der ssid verbunden ist, aber bekommt keine ip zugewiesen. wenn ich die umgebung mit dem kwifimanager scanne, werden mir auch keine verfügbaren netze angezeigt.

gadget
25.01.09, 16:32
Dann gib mal die Ausgaben von

iwconfig
ifconfig
route -nBeziehst du die IP per DHCP?
Hast du im Router einen MAC-Filter eingerichtet?

sven_rop
25.01.09, 16:48
Also

iwconfig:


iwconfig ra0
ra0 RT2860 Wireless ESSID:"" Nickname:"RT2860STA"
Mode:Auto Frequency=2.412 GHz Bit Rate=54 Mb/s
RTS thr:off Fragment thr:off
Encryption key:off
Link Quality:0 Signal level:0 Noise level:159
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0


ifconfig:


ifconfig ra0
ra0 Link encap:Ethernet HWaddr 00:15:AF:BC:45:21
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:9560 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:17


route -n:


route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 eth0


Die IP wird per DHCP bezogen und den MAC Filter habe ich rausgemacht, habe es sowohl mit wie auch ohne probiert, bei Beidem das Selbe.

gadget
25.01.09, 17:08
Ich kenne deine Distribution nicht. Gibt's eine Datei /etc/network/interfaces? Wenn ja, dann gib mal deren Inhalt.

sven_rop
25.01.09, 17:16
Nein gibt es nicht, das müsste eine Slackware Distribution sein. Es gibt eine rc.wireless.conf, falls dir die weiter hilft:




# Wireless LAN adapter configuration
#
# Theory of operation :
#
# The script attempts to match a block of settings to the specific wireless
# card inserted, the *first* block matching the card is used.
# The address format is "hwaddr", with * as a wildcard.
# 'hwaddr' is the unique MAC address identifier of the wireless card.
# The MAC address is usually printed on the card, or can be found via ifconfig.
# Some examples here use only half of the MAC address with a wildcard to
# match a whole family of cards...
#
# All the Wireless specific configuration is done through the Wireless
# Extensions, so we will just call 'iwconfig' with the right parameters
# defined below.
# Of course, you need to have iwconfig installled on your system.
# To download iwconfig, or for more info on Wireless Extensions :
# http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
#
# Note : you don't need to fill all parameters, leave them blank, in most
# cases the driver will initialise itself with sane defaults values or
# automatically figure out the value... And no drivers do support all
# possible settings...
#
# -- This is a modified '/etc/pcmcia/wireless.opts' script --
# -- I added sections for Prism/GT and Atheros based cards --
# -- (supported by the prism54 and madwifi drivers) --
# -- 16/sep/2004 * Eric Hameleers --
#

VERBOSE=1

case "$HWADDR" in

## NOTE : Comment out the following five lines to activate the samples below ...
## --------- START SECTION TO REMOVE -----------
## Pick up any Access Point, should work on most 802.11 cards
*)
INFO="Any ESSID"
ESSID="any"
;;
## ---------- END SECTION TO REMOVE ------------


# Here are a few examples with a few Wireless LANs supported...
# The matching is done on the first 3 bytes of the MAC address

# SMC2835W EZ Connect g 2.4GHz 54 Mbps Wireless Cardbus Adapter
00:04:E2:*)
INFO="SMC2835W EZ Connect g 2.4GHz 54 Mbps Wireless Cardbus Adapter"
# ESSID (extended network name) : My Network, any
ESSID="any"
# NWID/Domain (cell identifier) : 89AB, 100, off
NWID=""
# Operation mode : Ad-Hoc, Managed, Master, Repeater, Secondary, auto
MODE="Managed"
# Frequency or channel : 1, 2, 3 (channel) ; 2.422G, 2.46G (frequency)
FREQ=""
CHANNEL="7"
# Sensitivity (cell size + roaming speed) : 1, 2, 3 ; -70 (dBm)
SENS=""
# Bit rate : auto, 1M, 11M,54M
RATE="auto"
# Encryption key : 4567-89AB-CD, s:password
# Example for 40-bit encryption:
#KEY="883e-aa67-21 [1] key 5501-d0da-87 [2] key 91f5-3368-6b [3] key 2d73-31b7-96 [4]"
# Example for 104-bit encryption (aka 128-bit WEP):
#KEY="d5ad2f05abd048ecf10b1c80c7"
KEY=""
# RTS threshold : off, 500
RTS=""
# Fragmentation threshold : off, 1000
FRAG=""
# Other iwconfig parameters : power off, ap 01:23:45:67:89:AB
IWCONFIG=""
# iwspy parameters : + 01:23:45:67:89:AB
IWSPY=""
# iwpriv parameters : set_port 2, set_histo 50 60
IWPRIV=""
;;

# Multiband Atheros based 802.11a/b/g universal NIC cards
00:05:4E:*)
INFO="Multiband Atheros based 802.11a/b/g universal NIC"
# ESSID (extended network name) : My Network, any
ESSID=""
# Operation mode : Ad-Hoc, Managed, Master, Repeater, Secondary, auto
MODE="Managed"
# Frequency or channel : 1, 2, 3 (channel) ; 2.422G, 2.46G (frequency)
FREQ=""
CHANNEL="7"
# Bit rate : auto, 1M, 11M,54M
RATE="auto"
# Encryption key : 4567-89AB-CD, s:password
# Example for 40-bit encryption:
#KEY="883e-aa67-21 [1] key 5501-d0da-87 [2] key 91f5-3368-6b [3] key 2d73-31b7-96 [4]"
# Example for 104-bit encryption (aka 128-bit WEP):
#KEY="d5ad2f05abd048ecf10b1c80c7"
KEY=""
# Other iwconfig parameters : power off, ap 01:23:45:67:89:AB
IWCONFIG=""
# iwspy parameters : + 01:23:45:67:89:AB
IWSPY=""
# iwpriv parameters : set_port 2, set_histo 50 60
IWPRIV=""
;;

# Lucent Wavelan IEEE (+ Orinoco, RoamAbout and ELSA)
# Note : wvlan_cs driver only, and version 1.0.4+ for encryption support
00:60:1D:*|00:02:2D:*)
INFO="Wavelan IEEE example (Lucent default settings)"
ESSID="Wavelan Network"
MODE="Managed"
#RATE="auto"
KEY="s:secu1"
# To set all four keys, use :
#KEY="s:secu1 [1] key s:secu2 [2] key s:secu3 [3] key s:secu4 [4] key [1]"
# For the RG 1000 Residential Gateway: The ESSID is the identifier on
# the unit, and the default key is the last 5 digits of the same.
#ESSID="084d70"
#KEY="s:84d70"
;;

# Cisco/Aironet 4800/3x0
# Note : MPL driver only (airo/airo_cs), version 1.3 or later
00:40:96:*|00:02:8A:*)
INFO="Cisco/Aironet example (Cisco default settings)"
ESSID="any"
# To set all four ESSID, use iwconfig v21 and the same trick as above
MODE="Managed"
#RATE="11M auto"
#KEY="d5ad2f05abd048ecf10b1c80c7"
KEY="off"
;;

# Samsung MagicLan (+ some other PrismII cards)
# Note : Samsung binary library driver, version 1.20 or later
00:00:F0:*|00:02:78:*)
INFO="Samsung MagicLan example (Samsung default settings)"
ESSID="any"
MODE="Managed"
CHANNEL="4"
RATE="auto"
#KEY="883e-aa67-21 [1] key 5501-d0da-87 [2] key 91f5-3368-6b [3] key 2d73-31b7-96 [4]"
#IWCONFIG="power on"
;;

# Raytheon Raylink/WebGear Aviator2.4
# Note : doesn't work yet, please use for debugging only :-(
00:00:8F:*|00:00:F1:*)
INFO="Raylink/Aviator2.4 example (Aviator default ad-hoc setting)"
ESSID="ADHOC_ESSID"
MODE="Ad-Hoc"
RATE="auto"
IWPRIV="set_framing 1"
;;

# Old Lucent Wavelan
08:00:0E:*)
INFO="Wavelan example (Lucent default settings)"
NWID="0100"
MODE="Ad-Hoc"
FREQ="2.425G"
KEY="off"
;;

# Netwave (Xircom Netwave/Netwave Airsurfer)
00:80:C7:*)
INFO="Netwave example (Netwave default settings)"
NWID="100"
KEY="00"
;;

# Proxim RangeLan2/Symphony (what is the MAC address ???)
XX:XX:XX:*)
INFO="Proxim RangeLan2/Symphony example"
NWID="0"
MODE="Master"
CHANNEL="15"
IWPRIV="setsubchan 1"
;;

# No Wires Needed Swallow 550 and 1100 setting (what is the MAC address ???)
XX:XX:XX:*)
INFO="NWN Swallow example"
ESSID="session"
KEY="0000-0000-00 open"
;;

# Symbol Spectrum24 setting (what is the MAC address ???)
XX:XX:XX:*)
INFO="Symbol Spectrum24 example"
ESSID="Essid string"
;;

# Generic example (decribe all possible settings)
*)
INFO="Fill with your own settings..."
# ESSID (extended network name) : My Network, any
ESSID=""
# NWID/Domain (cell identifier) : 89AB, 100, off
NWID=""
# Operation mode : Ad-Hoc, Managed, Master, Repeater, Secondary, auto
MODE=""
# Frequency or channel : 1, 2, 3 (channel) ; 2.422G, 2.46G (frequency)
FREQ=""
CHANNEL=""
# Sensitivity (cell size + roaming speed) : 1, 2, 3 ; -70 (dBm)
SENS=""
# Bit rate : auto, 1M, 11M
RATE=""
# Encryption key : 4567-89AB-CD, s:password
KEY=""
# RTS threshold : off, 500
RTS=""
# Fragmentation threshold : off, 1000
FRAG=""
# Other iwconfig parameters : power off, ap 01:23:45:67:89:AB
IWCONFIG=""
# iwspy parameters : + 01:23:45:67:89:AB
IWSPY=""
# iwpriv parameters : set_port 2, set_histo 50 60
IWPRIV=""
;;
esac

gadget
25.01.09, 17:21
Du könntest es mit dieser Anleitung versuchen:
http://www.linuxforen.de/forums/showpost.php?p=1083050&postcount=4

Ohne WPA/WEP, ohne MAC-Filter, ohne Verstecken der ESSID!

Gruß,
gadget

sven_rop
25.01.09, 17:28
OK werd es mal ausprobieren und meld mich dann nochmal, bis hierhin erst mal Danke.

Rain_maker
25.01.09, 18:16
Und vor allem solltest Du für die WLAN-Tests die kabelgebundene Verbindung auch _vollständig deaktivieren_.

Auch wenn man in der ifconfig-Ausgabe nichts von einem eth0 sieht (unvollständig gepostet?)


route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 eth0

kommt diese Routingtabelle sicher nicht von ungefähr.

gadget
25.01.09, 19:54
Und vor allem solltest Du für die WLAN-Tests die kabelgebundene Verbindung auch _vollständig deaktivieren_.

Auch wenn man in der ifconfig-Ausgabe nichts von einem eth0 sieht (unvollständig gepostet?)
Ich habe mich auch gefragt, warum nicht einfach der Befehl ohne Einschränkung auf eine Schnittstelle ausgeführt wurde.
Aber zunächst hat die Netzwerkkarte noch keine Verbindung mit dem AP aufgebaut. Wenn die steht, wäre die Ausgabe von
dhcpvon Interesse.

sven_rop
25.01.09, 20:32
So ich habe es jetzt mal probiert, wie in dem Link beschrieben, den du mir gegeben hast. Leider hat das auch alles nicht geholfen. Irgendwie sieht es so aus, das die ganzen Sachen, die ich mit iwconfig versuche zu konfigurieren nicht übernommen werden.
Die Ausgabe von route -n war vollständig, das war zumindestens das was mir angegeben wurde, allerdings war ich dabei über die Netzwerkkarte mit dem Router verbunden. Die Netzwerkkarte habe ich übrigens bei dem Versuch mit der Wlankarte ausgeschaltet, hat aber keine Änderung gebracht.

gadget
25.01.09, 21:13
Gibts hierbei was?
iwlist scanDie route-Ausgabe war vollständig, nicht aber die Ausgaben von iwconfig und ifconfig, weil du an die Befehle einen Interface-Namen angehängt hast.

Gruß,
gadget

PS: Ich habe weder eine Ralink-Karte noch deine Distri ...

sven_rop
26.01.09, 16:30
bei iwlist scan kommt folgendes ergebnis:




iwlist scan
lo Interface doesn't support scanning.

eth0 Interface doesn't support scanning.

ra0 No scan results



bei iwconfig und ifconfig:

iwconfig:




bt sbin # iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

ra0 RT2860 Wireless ESSID:"" Nickname:"RT2860STA"
Mode:Auto Frequency=2.412 GHz Bit Rate=54 Mb/s
RTS thr:off Fragment thr:off
Encryption key:off
Link Quality:0 Signal level:0 Noise level:159
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0


ifconfig:




bt sbin # ifconfig
eth0 Link encap:Ethernet HWaddr 00:1D:92:58:EB:85
inet addr:192.168.2.103 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1627 errors:0 dropped:760931578 overruns:0 frame:0
TX packets:333 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:693418 (677.1 KiB) TX bytes:103618 (101.1 KiB)
Interrupt:16 Base address:0x8000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 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:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

ra0 Link encap:Ethernet HWaddr 00:15:AF:BC:45:21
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:1729 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:17


Bei iwconfig und ifconfig dachte ich das ich das nur auf das Interface ra0 anwenden soll.

Um mal nachzuvollziehen, wie ich den Treiber installiert habe, hier mal die Readme, die bei dem Treiber dabei war:




* README
*
* Ralink Tech Inc.
*
* http://www.ralinktech.com
*

================================================== =====================
ModelName:
===========
RT2860 Wireless Lan Linux Driver


================================================== =====================
Driver lName:
=============
rt2860.o/rt2860.ko


================================================== =====================
Supporting Kernel:
===================
linux kernel 2.4 and 2.6 series.
Tested in Redhat 7.3 or later.


================================================== =====================
Description:
=============
This is a linux device driver for Ralink RT2860 ABGN WLAN Card.


================================================== =====================
Contents:
=============
Makefile : Makefile
*.c : c files
*.h : header files


================================================== =====================
Features:
==========
This driver implements basic IEEE802.11. Infrastructure and adhoc mode with
open or shared or WPA-PSK or WPA2-PSK authentication method.
NONE, WEP, TKIP and AES encryption.


================================================== =====================
Build Instructions:
====================

1> $tar -xvzf DPB_RT2860_Linux_STA_x.x.x.x.tgz
go to "./DPB_RT2860_Linux_STA_x.x.x.x" directory.

2> In Makefile
set the "MODE = STA" in Makefile and chose the TARGET to Linux by set "TARGET = LINUX"
define the linux kernel source include file path LINUX_SRC
modify to meet your need.

3> In os/linux/config.mk
define the GCC and LD of the target machine
define the compiler flags CFLAGS
modify to meet your need.
** Build for being controlled by NetworkManager
Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y'.
** Build for being controlled by WpaSupplicant with Ralink Driver
Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n'.

4> $make # compile driver source code

5> $cp RT2860STA.dat /etc/Wireless/RT2860STA/RT2860STA.dat
# !!!check if it is a binary file before loading !!!

6> load driver
#[kernel 2.4]
# $/sbin/insmod rt2860sta.o
# $/sbin/ifconfig ra0 inet YOUR_IP up

#[kernel 2.6]
# $/sbin/insmod rt2860sta.ko
# $/sbin/ifconfig ra0 inet YOUR_IP up

7> unload driver
$/sbin/ifconfig ra0 down
$/sbin/rmmod rt2860sta

================================================== =====================
CONFIGURATION:
====================
RT2860 driver can be configured via following interfaces,
i.e. (i)"iwconfig" command, (ii)"iwpriv" command, (iii) configuration file

i) iwconfig comes with kernel.
ii) iwpriv usage, please refer to file "iwpriv_usage.txt" for details.
iii)modify configuration file "RT2860STA.dat" in /etc/Wireless/RT2860STA/RT2860STA.dat.

Configuration File : RT2860STA.dat
---------------------------------------
# Copy this file to /etc/Wireless/RT2860STA/RT2860STA.dat
# This file is a binary file and will be read on loading rt.o module.
#
# Use "vi -b rt61sta.dat" to modify settings according to your need.
#
# 1.) set NetworkType to "Adhoc" for using Adhoc-mode, otherwise using Infrastructure
# 2.) set Channel to "0" for auto-select on Infrastructure mode
# 3.) set SSID for connecting to your Accss-point.
# 4.) AuthMode can be "WEPAUTO", "OPEN", "SHARED", "WPAPSK", "WPA2PSK", "WPANONE"
# 5.) EncrypType can be "NONE", "WEP", "TKIP", "AES"
# for more information refer to the Readme file.
#
#The word of "Default" must not be removed
Default
CountryRegion=5
CountryRegionABand=7
CountryCode=
SSID=Dennis2860AP
NetworkType=Infra
WirelessMode=9
Channel=0
BasicRate=15
BeaconPeriod=100
TxPower=100
BGProtection=0
TxPreamble=0
RTSThreshold=2347
FragThreshold=2346
TxBurst=1
WmmCapable=0
AckPolicy=0;0;0;0
AuthMode=OPEN
EncrypType=NONE
WPAPSK=
DefaultKeyID=1
Key1Type=0
Key1Str=
Key2Type=0
Key2Str=
Key3Type=0
Key3Str=
Key4Type=0
Key4Str=
PSMode=CAM
FastRoaming=0
RoamThreshold=70
HT_RDG=1
HT_EXTCHA=0
HT_OpMode=1
HT_MpduDensity=4
HT_BW=1
HT_AutoBA=1
HT_AMSDU=0
HT_BAWinSize=64
HT_GI=1
HT_MCS=33
HT_MIMOPSMode=3

-----------------------------------------------
*NOTE:
WMM parameters
WmmCapable Set it as 1 to turn on WMM Qos support
AckPolicy1~4 Ack policy which support normal Ack or no Ack
(AC_BK, AC_BE, AC_VI, AC_VO)

All WMM parameters do not support iwpriv command but ¡¥WmmCapable¡¦¡¦,
please store all parameter to RT2860STA.dat, and restart driver.

-----------------------------------------------
syntax is 'Param'='Value' and describes below.

1. CountryRegion=value
value
0: use 1 ~ 11 Channel
1: use 1 ~ 13 Channel
2: use 10 ~ 11 Channel
3: use 10 ~ 13 Channel
4: use 14 Channel
5: use 1 ~ 14 Channel
6: use 3 ~ 9 Channel
7: use 5 ~ 13 Channel

2. CountryRegionForABand=value
value
0: use 36, 40, 44, 48, 52, 56, 60, 64, 149, 153, 157, 161, 165 Channel
1: use 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140 Channel
2: use 36, 40, 44, 48, 52, 56, 60, 64 Channel
3: use 52, 56, 60, 64, 149, 153, 157, 161 Channel
4: use 149, 153, 157, 161, 165 Channel
5: use 149, 153, 157, 161 Channel
6: use 36, 40, 44, 48 Channel
7: use 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 149, 153, 157, 161, 165 Channel
8: use 52, 56, 60, 64 Channel
9: use 34, 38, 42, 46 Channel
10 use 34, 36, 38, 40, 42, 44, 46, 48, 52, 56, 60, 64 Channel

3. SSID=value
value
0~z, 1~32 ascii characters.

4. WirelessMode=value
value
0: legacy 11b/g mixed
1: legacy 11B only
2: legacy 11A only //Not support in RfIcType=1(id=RFIC_5225) and RfIcType=2(id=RFIC_5325)
3: legacy 11a/b/g mixed //Not support in RfIcType=1(id=RFIC_5225) and RfIcType=2(id=RFIC_5325)
4: legacy 11G only
5: 11ABGN mixed
6: 11N only
7: 11GN mixed
8: 11AN mixed
9: 11BGN mixed
10: 11AGN mixed

5. Channel=value
value
depends on CountryRegion or CountryRegionForABand

6. BGProtection=value
value
0: Auto
1: Always on
2: Always off

7. TxPreamble=value
value
0:Preamble Long
1:Preamble Short
2:Auto

8. RTSThreshold=value
value
1~2347

9. FragThreshold=value
value
256~2346

10. TxBurst=value
value
0: Disable
1: Enable

11. NetworkType=value
value
Infra: infrastructure mode
Adhoc: adhoc mode

12. AuthMode=value
value
OPEN For open system
SHARED For shared key system
WEPAUTO Auto switch between OPEN and SHARED
WPAPSK For WPA pre-shared key (Infra)
WPA2PSK For WPA2 pre-shared key (Infra)
WPANONE For WPA pre-shared key (Adhoc)
WPA
WPA2

13. EncrypType=value
value
NONE For AuthMode=OPEN
WEP For AuthMode=OPEN or AuthMode=SHARED
TKIP For AuthMode=WPAPSK or WPA2PSK
AES For AuthMode=WPAPSK or WPA2PSK

14. DefaultKeyID=value
value
1~4

15. Key1=value
Key2=value
Key3=value
Key4=value
value
10 or 26 hexadecimal characters eg: 012345678
5 or 13 ascii characters eg: passd
(usage : "iwpriv" only)

16. Key1Type=vaule
Key2Type=value
Key3Type=vaule
Key4Type=vaule
value
0 hexadecimal type
1 assic type
(usage : reading profile only)

17. Key1Str=value
Key2Str=value
Key3Str=vaule
Key4Str=vaule
value
10 or 26 characters (key type=0)
5 or 13 characters (key type=1)
(usage : reading profile only)

18. WPAPSK=value
value
8~63 ASCII or
64 HEX characters

19. WmmCapable=value
value
0: Disable WMM
1: Enable WMM

20. PSMode=value
value
CAM Constantly Awake Mode
Max_PSP Max Power Savings
Fast_PSP Power Save Mode

21. FastRoaming=value
value
0 Disabled
1 Enabled

22. RoamThreshold=value
value
Positive Interger(dBm)

23. HT_RDG=value
value
0 Disabled
1 Enabled

24. HT_EXTCHA=value (Extended Channel Switch Announcement)
value
0 Below
1 Above

25. HT_OpMode=value
value
0 HT mixed format
1 HT greenfield format

26. HT_MpduDensity=value
value (based on 802.11n D2.0)
0: no restriction
1: 1/4 £gs
2: 1/2 £gs
3: 1 £gs
4: 2 £gs
5: 4 £gs
6: 8 £gs
7: 16 £gs

27. HT_BW=value
value
0 20MHz
1 40MHz

28. HT_AutoBA=value
value
0 Disabled
1 Enabled

29. HT_AMSDU=value
value
0 Disabled
1 Enabled

30. HT_BAWinSize=value
value
1 ~ 64

31. HT_GI=value
value
0 long GI
1 short GI

32. HT_MCS=value
value
0 ~ 15
33: auto

33. HT_MIMOPSMode=value
value (based on 802.11n D2.0)
0 Static SM Power Save Mode
1 Dynamic SM Power Save Mode
2 Reserved
3 SM enabled
(not fully support yet)

MORE INFORMATION
================================================== ===============================
If you want for rt2860 driver to auto-load at boot time:
A) choose ra0 for first RT2860 WLAN card, ra1 for second RT2860 WLAN card, etc.

B) create(edit) 'ifcfg-ra0' file in /etc/sysconfig/network-scripts/,
edit( or add the line) in /etc/modules.conf:
alias ra0 rt2860sta

C) edit(create) the file /etc/sysconfig/network-scripts/ifcfg-ra0
DEVICE='ra0'
ONBOOT='yes'


NOTE:
if you use dhcp, add this line too .
BOOTPROTO='dhcp'

*D) To ease the Default Gateway setting,
add the line
GATEWAY=x.x.x.x
in /etc/sysconfig/network



In os/linux/config.mk habe ich folgende Einstellung gewählt:




Build for being controlled by NetworkManager
Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y'.



Meine RT2860STA.dat sieht folgender maßen aus: (liegt übrigens in /etc/Wireless/RT2860STA/RT2860STA.dat)




#The word of "Default" must not be removed
Default
CountryRegion=5
CountryRegionABand=7
CountryCode=DE
SSID=SE551
NetworkType=Infra
WirelessMode=9
Channel=0
BasicRate=15
BeaconPeriod=100
TxPower=100
BGProtection=0
TxPreamble=0
RTSThreshold=2347
FragThreshold=2346
TxBurst=1
PktAggregate=0
WmmCapable=0
AckPolicy=0;0;0;0
AuthMode=WPAPSK
EncrypType=TKIP
WPAPSK=SRRJ33a41542D
DefaultKeyID=1
Key1Type=1
Key1Str=
Key2Type=0
Key2Str=
Key3Type=0
Key3Str=
Key4Type=0
Key4Str=
PSMode=CAM
FastRoaming=0
RoamThreshold=70
HT_RDG=1
HT_EXTCHA=0
HT_OpMode=1
HT_MpduDensity=4
HT_BW=1
HT_AutoBA=1
HT_AMSDU=0
HT_BAWinSize=64
HT_GI=1
HT_MCS=33
HT_MIMOPSMode=3



Ist jetzt allerdings mit Verschlüsselung.

Ich hoffe dass das jetzt irgendwie weiter helfen kann.

Ede
26.01.09, 17:01
iwlist scan
lo Interface doesn't support scanning.

eth0 Interface doesn't support scanning.

ra0 No scan results
Ist der WLAN-Rourter an? Ist die WLAN-Funktion im WLAN-Rourter aktiviert? Wie weit steht der WLAN-Rourter entfernt?

Die Ausgabe von iwconfig schaut gut aus, nur sagt sie genau dasselbe wie die Ausgabe von iwlist aus: Es gibt kein WLAN-Netz.
In RT2860STA.dat sollte "CountryRegion=0" stehen. "Channel=0" sieht seltsam aus. Es gibt keinen WLAN-Kanal 0. In Europa sind die von 1 bis 13 numeriert. Den Kanal stellt man im WLAN-Router ein.

Hier mal meine rt61sta.dat von der Ralink RT2561 mit WEP. Vielleicht kann das helfen.

[Default]
CountryRegion=0
CountryRegionABand=7
WirelessMode=4
SSID=essid
NetworkType=Infra
Channel=1
AuthMode=OPEN
EncrypType=WEP
DefaultKeyID=1
Key1Type=0
Key1=5e557b2b4641404f227c7a9160
TxBurst=0
PktAggregate=0
TurboRate=0
WmmCapable=0
AckPolicy1=0
AckPolicy2=0
AckPolicy3=0
AckPolicy4=0
BGProtection=0
ShortSlot=0
IEEE80211H=0
TxRate=12
RTSThreshold=2347
FragThreshold=2346
PSMode=CAM
TxPreamble=0

sven_rop
26.01.09, 17:21
@ Ede

Der Router ist an und ich stehe mit dem Lapptop direkt neben dem Router. Müsste ich nicht, wenn ich iwlist ra0 scan eingebe irgend ein Netz welches hier bei mir in der Nähe ist angezeigt bekommen? Unter Windows bekomme ich mindestens 10 Netze angezeigt.
Habe jetzt mal die Änderungen in der RT2860STA.dat vorgenommen, aber leider bringt das keine Änderung.
Irgendwie bekomme ich einfach keine Verbindung zu Router.

gadget
26.01.09, 17:31
Manche Treiber/Karten haben Probleme mit verborgenen ESSIDs. Wenn aber kein Netz angezeigt wird, stimmt wohl was noch nicht.

Zumindest solltest du in der Router-Konfirguration sicherstellen, dass die ESSID gesendet wird.

Gruß,
gadget

sven_rop
26.01.09, 17:44
SSID-Broadcast ist eingeschaltet, habe es gerade nochmal überprüft.

gadget
26.01.09, 19:14
Gibt's die Möglichkeit, unter Channel "auto" zu nehmen?

Ede
26.01.09, 20:12
Gibt's die Möglichkeit, unter Channel "auto" zu nehmen?
Das sollte keine Auswirkung auf "iwlist scan" haben, da unabhängig von den Einstellungen auf allen Kanälen gescant wird.

@ sven_rop
Wie schaut's mit firmware aus? Braucht deine WLAN-Karte welche? Wurde das im Thread schon abgehakt? Ich habe bei mir z. B. welche in /etc/Wireless/RT61STA/ drin.

sven_rop
27.01.09, 17:57
@ gadget

Laut Beschreibung soll das gehen, wenn ich in der Datei RT2860STA.dat die beim Treiber dabei ist und unter /etc/wireless/RT2870STA/RT2860STA.dat eingefügt wird der Kanal auf 0 gesetzt wird.

@ Ede

Ich hatte schon mal die Datei (Firmware) bei mir mit in den Ordner gepackt, hat aber keine Veränderung gebracht. Ist doch richtig, das ich die Datei RT2870_Firmware_V8\rt2870.bin in den Ordner /etc/wireless/RT2870STA/ eingefügt werden muss, oder? Müssen da dann noch irgendwelche Veränderungen gemacht werden?