Can a rt2400 work in Master mode?

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

anddam

26-06-2008 16:31:21

I wasn't able to figure it out searching in the forum
I've got a Asus WL-130b PCI card, I used the legacy driver for a couple years now, now I'd need to use the card in Master mode (the box should act as an AP), I've installed the rt2x00 driver using debian's module-assistant, I see the new module is called rt2400pci.ko rather than the previous rt2400.ko, loading this I get a wmaster0 device (that I rename with udev), iwconfig shows a wlan0_rename interface too.

So a feq question
is rt2400pci the beta rt2x00 driver, i.e. not the legacy?
Can it run in Master mode at all with rt2400 chipset?
How should I rename that wlan0_rename interface?


I can run
[code3o2mcria]$ sudo iwconfig wlan0_rename mode Master essid FOO
$ sudo ifconfig wlan0_rename 10.0.0.1 [/code3o2mcria]
but I can't see any FOO essid from other computer, what's wrong?


Any help appreciated

edit
I'm running 2.6.18 .

IvD

26-06-2008 16:36:35


is rt2400pci the beta rt2x00 driver, i.e. not the legacy?
[/quote3bi1i72y]

rt2400pci is the rt2x00 driver which is found in the kernel


Can it run in Master mode at all with rt2400 chipset?
[/quote3bi1i72y]
search.php?keywords=Master+mode&terms=all&author=&sc=1&sf=all&sk=t&sd=d&sr=posts&st=0&ch=300&t=0&submit=Search


How should I rename that wlan0_rename interface?
[/quote3bi1i72y]

Check your udev configuration


I can run
[code3bi1i72y]$ sudo iwconfig wlan0_rename mode Master essid FOO
$ sudo ifconfig wlan0_rename 10.0.0.1 [/code3bi1i72y]
but I can't see any FOO essid from other computer, what's wrong?
[/quote3bi1i72y]

Please see link to search results above.


I'm running 2.6.18 .[/quote3bi1i72y]

That would not be possible since there is no rt2x00 driver for that kernel.

anddam

26-06-2008 20:25:28

First of all thanks for replying,


search.php?keywords=Master+mode&terms=all&author=&sc=1&sf=all&sk=t&sd=d&sr=posts&st=0&ch=300&t=0&submit=Search
[/quote2a5tp49g]
I was searching explicit reference to "rt2400", I didn't knew if rt61 things worked the same on rt2400 chipset.


Check your udev configuration
[/quote2a5tp49g]
Right, I just read the man page.
I tought udev was only for devices but I was wrong.


Please see link to search results above.
[/quote2a5tp49g]
I am, seems this topic[/url2a5tp49g] is much like my issue.

[quote="IvD"2a5tp49g]
That would not be possible since there is no rt2x00 driver for that kernel.[/quote2a5tp49g]

I'm not sure what you mean

[code2a5tp49g]$ uname -rms
Linux 2.6.18-6-686 i686
$ dpkg -l rt2x00-modules-2.6.18-6-686
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-======================-======================-============================================================
ii rt2x00-modules-2.6.18- 0cvs20060928-1+2.6.18. RT2x00 wireless network drivers
$
[/code2a5tp49g]

IvD

26-06-2008 20:30:15


[code1nf08ct7]$ uname -rms
Linux 2.6.18-6-686 i686
$ dpkg -l rt2x00-modules-2.6.18-6-686
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-======================-======================-============================================================
ii rt2x00-modules-2.6.18- 0cvs20060928-1+2.6.18. RT2x00 wireless network drivers
$
[/code1nf08ct7][/quote1nf08ct7]

That version string is "cvs20060928" which means it is a 2 year old snapshot.
That means it a extremely old rt2x00 version which indeed was made for older kernels, but lacks any form of functionality. You won't get any master mode from that version.

anddam

27-06-2008 05:41:26

So I'm following these instructions[/url214mh5mb] until step 3 as I'm just going to build the driver.

I need to build the whole kernel from the cvs tree, don't I?

IvD

27-06-2008 18:13:04

So I'm following these instructions[/url101rtv1l] until step 3 as I'm just going to build the driver.

I need to build the whole kernel from the cvs tree, don't I?[/quote101rtv1l]

Yes, rt2x00.git is a complete kernel snapshot.

anddam

30-06-2008 18:37:28

I got source from git and built them, installed kernel and modules and this is what I got

[code1ifklv28]$ sudo iwconfig wlan0 mode Master
Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan0 ; Invalid argument.[/code1ifklv28]


Why is that?

For completeness I have the following output

[code1ifklv28]$ sudo lsmod | grep rt2
rt2400pci 10496 0
rt2x00pci 6464 1 rt2400pci
rt2x00lib 21856 2 rt2400pci,rt2x00pci
rfkill 5588 1 rt2x00lib
input_polldev 3752 1 rt2x00lib
mac80211 120176 2 rt2x00pci,rt2x00lib
cfg80211 21512 2 rt2x00lib,mac80211
eeprom_93cx6 2176 1 rt2400pci
$ uname -rms
Linux 2.6.26-rc5-bardeau-i386-wl i686[/code1ifklv28]

IvD

30-06-2008 20:16:57

That is because you _must_ use the latest hostapd version to get master mode working, and with lastest I do mean the bleeding edge hostapd.git snapshot with nl80211 support.