USB AP card and/or rt2870 issue

GNUtoo GNUtoo
Sat Apr 24 08:51:41 PDT 2010


hi,I'm thinking about replacing my pentium III 500 router with something
like a sheevaplug.
The sheevaplug-like hardware do not have a pci slot or a wireless card
supported that can do access point(if they have one(depend on the
versions)).

So I'm looking for an usb card that can do AP

Someone wanted the exact same thing than me,but for other kind of
embedded devices.he tested a rt8070 and hostap displayed a line with the
ESSID,but the access point essid didn't appear when another computer
scanned it,association was also impossible.

I bought a card with the same chipset.
with my distribution(based on ubuntu hardy) I had the same results.

But...

I wanted and planed to try wireless-compat,libnl2,and hostapd from git:
(that's why I bought it,I was thinking that I could make it work)
here are the results:

With a card that does not support AP mode:
root at gnutoo-desktop:/usr/local/bin# LD_LIBRARY_PATH=/usr/local/lib/
hostapd -ddd /usr/local/etc/hostapd.conf 
Configuration file: /usr/local/etc/hostapd.conf
nl80211: Add own interface ifindex 11
nl80211: Failed to set interface 11 to mode 3: -95 (Operation not
supported)
nl80211: Failed to set interface 11 to mode 3: -95 (Operation not
supported)
nl80211: Interface mode change to 3 from 0 failed
nl80211: Failed to set interface wlan2 into AP mode
nl80211 driver initialization failed.
ELOOP: remaining socket: sock=4 eloop_data=0x8c26718 user_data=0x8c26bf8
handler=0x8072580
ELOOP: remaining socket: sock=6 eloop_data=0x8c286e8 user_data=(nil)
handler=0x807be40

With the rt2870 card:
root at gnutoo-desktop:/usr/local/bin# LD_LIBRARY_PATH=/usr/local/lib/
hostapd -ddd /usr/local/etc/hostapd.conf 
Configuration file: /usr/local/etc/hostapd.conf
nl80211: Register Action command failed: ret=-19 (No such device)
nl80211: Register Action match - hexdump(len=1): 06
nl80211: Failed to register Action frame processing - ignore for now
nl80211: Add own interface ifindex 10
nl80211: Failed to set interface 10 to mode 3: -19 (No such device)
nl80211: Failed to set interface 10 to mode 3: -19 (No such device)
nl80211: Interface mode change to 3 from 0 failed
nl80211: Failed to set interface wlan0 into AP mode
nl80211 driver initialization failed.
ELOOP: remaining socket: sock=4 eloop_data=0x9fca718 user_data=0x9fcabf8
handler=0x8072580
ELOOP: remaining socket: sock=6 eloop_data=0x9fcc6e8 user_data=(nil)
handler=0x807be40

here's the configuration(interface was changed between the 2 cards)

interface=wlan0
driver=nl80211
ssid=ralink
channel=2
hw_mode=g

here are the version used:
hostapd: 		0b86f67a2970403d1b1b6d34ce49f5485ef5dbb3
libnl2: 		d378220c96c3c8b6f27dca33e7d8ba03318f9c2d
compat-wireless:        compat-wireless-2010-04-23.tar.bz2

here is the config of hostapd compilation:

root at gnutoo-desktop:~/wireless/hostap/hostapd# cat .config | sed
's/#.*//' | sed '/^$/d'
CONFIG_DRIVER_NL80211=y
LIBNL=/usr/local
CFLAGS += -I$(LIBNL)/include
LIBS += -L$(LIBNL)/lib
CONFIG_LIBNL20=y
CONFIG_IAPP=y
CONFIG_RSN_PREAUTH=y
CONFIG_PEERKEY=y
CONFIG_EAP=y
CONFIG_EAP_MD5=y
CONFIG_EAP_TLS=y
CONFIG_EAP_MSCHAPV2=y
CONFIG_EAP_PEAP=y
CONFIG_EAP_GTC=y
CONFIG_EAP_TTLS=y
CONFIG_PKCS12=y
CONFIG_IPV6=y

I started to post here because I'm not shure if it's an hostap,a libnl2
or a wireless-dev problem.

I hope the problem can be fixed(or that after time(and effort of the
developers) it would be fixed,so I would only have to wait,I hope not
too long),else I would need to search for another card.

Denis.




More information about the Hostap mailing list