r61 on ubuntu

Live forum: http://rt2x00.serialmonkey.com/viewtopic.php?t=5152

razius

07-01-2009 16:21:44

does the rt2x00pci driver support rt61 chipsets?

[quote2rzcwoi7]root@apollyon/media# lspci | grep Ra
0300.0 Network controller RaLink RT2561/RT61 802.11g PCI
root@apollyon/media# modprobe rt2x00pci
root@apollyon/media# lsmod |grep rt
rt2x00pci 15104 0
rt2x00lib 36224 1 rt2x00pci
rfkill 17176 1 rt2x00lib
led_class 12164 1 rt2x00lib
iTCO_vendor_support 11652 1 iTCO_wdt
parport_pc 39204 1
parport 42604 3 ppdev,lp,parport_pc
mac80211 216820 2 rt2x00pci,rt2x00lib
cfg80211 32392 2 rt2x00lib,mac80211
agpgart 42184 3 drm,intel_agp
root@apollyon/media# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

eth1 no wireless extensions.

vmnet1 no wireless extensions.

vmnet8 no wireless extensions.

ppp0 no wireless extensions.

root@apollyon/media#
[/quote2rzcwoi7]

I can't seem to get my card to be recognised

IvD

07-01-2009 16:33:43

Apparently the rt61pci module isn't being loaded. (rt2x00pci is a dependency for rt61pci)

What does 'modinfo rt61pci' return?
And what is the output of 'dmesg'?

IvD

07-01-2009 16:34:50

Oh wait I see it now, you are modprobing rt2x00pci, that is useless. You must modprobe rt61pci.
You could also install the modules, run 'depmod -a' to make sure the correct modules will load automatically when you plugin the device.

razius

07-01-2009 16:41:31

i don't want rt61pci because i want to configure it as an ap wich means i need to use master mode (unsupported by legacy drivers).

does that mean that the next-generation rt2x00 drivers are not the same as those included in the kernel (rt2x00pci)?

IvD

07-01-2009 16:43:37

i don't want rt61pci because i want to configure it as an ap wich means i need to use master mode (unsupported by legacy drivers).

does that mean that the next-generation rt2x00 drivers are not the same as those included in the kernel (rt2x00pci)?[/quote2wadeq5m]

Yes they are, but the rt2x00 driver for rt61 hardware is named rt61pci. The modules rt2x00pci and rt2x00lib are dependencies for that module. Note that the legacy driver is named rt61 (note the lack of the pci postfix).

razius

07-01-2009 16:46:10

aha , and do they support master mode? i get this error why i try to set it

[quote3uz8mkp2]root@apollyon/usr/src# iwconfig wlan0 mode master
Error for wireless request "Set Mode" (8B06)
SET failed on device wlan0 ; Invalid argument.
[/quote3uz8mkp2]

IvD

07-01-2009 17:35:31

aha , and do they support master mode?
[/quote1ibbdzd8]

Yes, but you must use rt2x00.git or wireless-compat. Ubuntu ships a too old version of rt61pci.


i get this error why i try to set it

[quote1ibbdzd8]root@apollyon/usr/src# iwconfig wlan0 mode master
Error for wireless request "Set Mode" (8B06)
SET failed on device wlan0 ; Invalid argument.
[/quote1ibbdzd8][/quote1ibbdzd8]

Search this forum for howtos on how to configure master mode using hostapd. 'iwconfig wlan0 mode master' will _always_ faill.

razius

07-01-2009 18:51:07

i installed wireless-compat and managed to put it into master mode but i can't seem to set a essid

[quote3cwfo814]root@apollyon/etc/hostapd# iwconfig wlan0 essid abaddon
Error for wireless request "Set ESSID" (8B1A)
SET failed on device wlan0 ; Operation not supported.
[/quote3cwfo814]

IvD

07-01-2009 18:53:58

Isn't the essid supposed to be set through hostap?

razius

07-01-2009 19:04:27

i tried using hostapd but i don't see my ap on my laptop

[quoteuqtd2bij]root@apollyon/etc/hostapd# hostapd -d /etc/hostapd/hostapd.conf
Configuration file /etc/hostapd/hostapd.conf
Line 44 DEPRECATED 'debug' configuration variable is not used anymore
ctrl_interface_group=0
Opening raw packet socket for ifindex 209
BSS count 1, BSSID mask ffffffffffff (0 bits)
SIOCGIWRANGE WE(compiled)=22 WE(source)=21 enc_capa=0xf
nl80211 Added 802.11b mode based on 802.11g information
RATE[0] rate=10 flags=0x2
RATE[1] rate=20 flags=0x6
RATE[2] rate=55 flags=0x4
RATE[3] rate=110 flags=0x4
Passive scanning not supported
Flushing old station entries
Deauthenticate all stations
Using interface wlan0 with hwaddr 001f1f1b58c2 and ssid 'abaddon'
wlan0 Setup of interface done.
MGMT (TX callback) ACK
[/quoteuqtd2bij]
[quoteuqtd2bij]root@apollyon/etc/hostapd# iwconfig wlan0
wlan0 IEEE 802.11bg ModeMaster Frequency2.412 GHz Tx-Power=13 dBm
Retry min limit7 RTS thr=2347 B Fragment thr=2346 B
Encryption keyoff
Power Managementoff
Link Quality0 Signal level0 Noise level0
Rx invalid nwid0 Rx invalid crypt0 Rx invalid frag0
Tx excessive retries0 Invalid misc0 Missed beacon0
[/quoteuqtd2bij]

but if i do a iwlist wlan0 scann on my laptop it doesn't appear


LE the weird thing is that i can see this

[quoteuqtd2bij]STA 001cbfd5a45f sent probe request for broadcast SSID
MGMT (TX callback) ACK
mgmtproberesp cb
[/quoteuqtd2bij]

001cbfd5a45f is the mac of my laptop

razius

07-01-2009 20:17:39

nevermind it seemed that i didn't set a channel number in hostapd.

mizvekov

31-01-2009 01:39:37

nevermind it seemed that i didn't set a channel number in hostapd.[/quote1k0rap4u]

Congrats, but how did you make that work? I'm using the same driver but hostapd quits if i specify a channel in hostapd.conf.