Hi,
First i'd like to thank you all for the huge work done om maintaining rt2x00 drivers. I've been following this forum over a year and now i felt i had time to try rt2x00 drivers on my soekris net4801 board with RT2561/RT61 miniPCI card. so far, the ad-hoc mode worked fine with ndiswrapper.
Here's my story:
first, i compiled latest 2.6.26-rc5 kernel from rt2x00 git repository
then libnl from git repository. (had to fight with some linker errors)
finally, i succeeded compiling hostapd from git repository.
the modifications made to config file were:
Code:
CONFIG_DRIVER_NL80211=y
LIBNL=/usr/src/libnl
CFLAGS += -I$(LIBNL)/include/
LIBS += -L$(LIBNL)/lib/
To compile hostapd, i had to modify driver_nl80211.c, because libnl had changed the names and behaviour of some functions:
Code:
nl_handle_alloc_cb -> nl_socket_alloc_cb
nl_handle_destroy -> nl_socket_free
foo = genl_ctrl_alloc_cache(bar) -> genl_ctrl_alloc_cache(bar,&foo)
also, for the linker to succeed, i had to modify Makefile:
Code:
LIBS += -lnl -lnl-genl -lnl-nf -lnl-route
at this point the driver fails to work neither in master nor ad-hoc modes.
when i fire hostapd, i get:
Code:
moosipurk:~# hostapd -dd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
ctrl_interface_group=0
Opening raw packet socket for ifindex -1208805724
BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits)
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
Hardware does not support configured mode
wlan0: IEEE 802.11 Hardware does not support configured mode (0)
Could not select hw_mode and channel. (-1)
wlan0: Unable to setup interface.
Flushing old station entries
Deauthenticate all stations
rmdir[ctrl_interface]: No such file or directory
following error appears to dmesg:
Code:
phy1: TX to low-level driver (len=26) FC=0x00c0 DUR=0x0000 A1=ff:ff:ff:ff:ff:ff A2=00:14:85:cd:9b:6d A3=00:14:85:cd:9b:6d
__dev_addr_discard: address leakage! da_users=1
iwconfig shows the wlan0 interface in master mode, but when i assign the SSID, IP and bring the interface up, my laptop doesnt see it and doesnt associate to it.
Any thoughts, or something i havent noticed yet?