rt2x00 master mode

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

stringZ

03-12-2008 18:28:30

Hi there,

I have a TP-LINK TL-WN321G 54Mbit[/url31m4bs0u] (Ralink chipset) USB WiFi adapter and want to make an access point out of my homeserver (running Debian). I've found a similar [url=http://rt2x00.serialmonkey.com/phpBB/viewtopic.php?t=4000&highlight=master+mode+rt7331m4bs0u]topic[/url31m4bs0u] where it was told that master mode is only supported in the latest rt2x00 drivers, so I have compiled the latest kernel (2.6.28-rc5) downloaded from git as described in your [url=http://rt2x00.serialmonkey.com/wiki/index.php/Rt2x00_GIT_instructions31m4bs0u]GIT Instructions[/url31m4bs0u], but it seems it was for nothing. I still can't bring [b31m4bs0u]wlan0[/b31m4bs0u] into master mode (everything else, repeater, adhoc, managed, monitor works). There is also a device called [b31m4bs0u]wmaster0[/b31m4bs0u], but I can't ifconfig/iwconfig it nor has it any wireless extension. I spent two days figuring this out without success. I think I tried all available drivers ([url=http://www.ralinktech.com.tw/data/drivers/2008_0506_RT73_Linux_STA_Drv1.1.0.1.tar.bz231m4bs0u]Ralink official RT2501USB[/url31m4bs0u], rt73-k2wrlz (enhanced rt73), Legacy RT73) both with different kernel versions such as 2.4.36, 2.6.27.7 and the latest one available, 2.6.28-rc5 (from git).

What should I do?
Is there any solution (I don't really need any other modes, only master) to get this working?
It's really important for me.

Thanks in advance
stringZ

IvD

03-12-2008 18:35:51

After that, you need hostapd with nl80211 support to get the interface into master mode.[/quote1mxyjaq2]

Which hostapd version are you using?

stringZ

04-12-2008 15:03:26

I tried to compile the latest hostapd according to your AP-mode Howto[/urlp6xe9bg1], but it always says

[codep6xe9bg1]
cc -MMD -O2 -Wall -g -DHOSTAPD_DUMP_STATE -I../src -I../src/crypto -I../src/utils -I../src/common -I/usr/src/git/rt2x00/include/net -DCONFIG_CTRL_IFACE -DCONFIG_CTRL_IFACE_UNIX -DCONFIG_IAPP -DCONFIG_RSN_PREAUTH -DCONFIG_PEERKEY -DCONFIG_DRIVER_HOSTAP -DCONFIG_DRIVER_NL80211 -DEAP_MD5 -DEAP_TLS -DEAP_PEAP -DEAP_TTLS -DEAP_MSCHAPv2 -DEAP_GTC -DEAP_SERVER -DEAP_TLS_FUNCS -DPKCS12_FUNCS -DINTERNAL_SHA256 -DCONFIG_NO_FIPS186_2_PRF -DCONFIG_NO_T_PRF -DCONFIG_IPV6 -c -o hostapd.o hostapd.c
hostapd.c: In function `setup_interface':
hostapd.c:1558: error: structure has no member named `ieee80211n'
make: *** [hostapd.o] Error 1
[/codep6xe9bg1]

Tried variating the CFLAGS to change include directory...
[bp6xe9bg1]-I/usr/src/git/rt2x00/include/net[/bp6xe9bg1]
[bp6xe9bg1]-I/usr/src/git/rt2x00/include[/bp6xe9bg1]
[bp6xe9bg1]-I/usr/src/git/rt2x00[/bp6xe9bg1]

No success, so I only have a legacy hostapd, [bp6xe9bg1]0.3.7-2sarge1[/bp6xe9bg1], which can't bring the device into master mode.
By the way, why is this so difficult? Why do I need patches like [bp6xe9bg1]nl80211[/bp6xe9bg1] and the latest 2.6 kernel?
I thought master mode was a simple mode like any other, e.g. ad-hoc, monitor, etc.

IvD

04-12-2008 19:00:38


[code21x6nchd]
cc -MMD -O2 -Wall -g -DHOSTAPD_DUMP_STATE -I../src -I../src/crypto -I../src/utils -I../src/common -I/usr/src/git/rt2x00/include/net -DCONFIG_CTRL_IFACE -DCONFIG_CTRL_IFACE_UNIX -DCONFIG_IAPP -DCONFIG_RSN_PREAUTH -DCONFIG_PEERKEY -DCONFIG_DRIVER_HOSTAP -DCONFIG_DRIVER_NL80211 -DEAP_MD5 -DEAP_TLS -DEAP_PEAP -DEAP_TTLS -DEAP_MSCHAPv2 -DEAP_GTC -DEAP_SERVER -DEAP_TLS_FUNCS -DPKCS12_FUNCS -DINTERNAL_SHA256 -DCONFIG_NO_FIPS186_2_PRF -DCONFIG_NO_T_PRF -DCONFIG_IPV6 -c -o hostapd.o hostapd.c
hostapd.c: In function `setup_interface':
hostapd.c:1558: error: structure has no member named `ieee80211n'
make: *** [hostapd.o] Error 1
[/code21x6nchd]

Tried variating the CFLAGS to change include directory...
[b21x6nchd]-I/usr/src/git/rt2x00/include/net[/b21x6nchd]
[b21x6nchd]-I/usr/src/git/rt2x00/include[/b21x6nchd]
[b21x6nchd]-I/usr/src/git/rt2x00[/b21x6nchd]
[/quote21x6nchd]

You should ask the hostapd developers for support when you have problems with hostapd.


No success, so I only have a legacy hostapd, [b21x6nchd]0.3.7-2sarge1[/b21x6nchd], which can't bring the device into master mode.
By the way, why is this so difficult? Why do I need patches like [b21x6nchd]nl80211[/b21x6nchd] and the latest 2.6 kernel?
I thought master mode was a simple mode like any other, e.g. ad-hoc, monitor, etc.[/quote21x6nchd]

Because master mode is an advanced feature which is far more difficult then the other modes. You need the latest 2.6 kernel because that kernel contains the code that actually supports master mode.