I still cannot get the rt61pci to get into host ap mode.
Things learned in the process, mostly Debian Sid related, all together in one place:
Code:
apt-get install git-core
will install git. Needed.
Code:
008-allow-ap-vlan-modes.patch
which enables host ap mode is in linux kernel 2.6.28 onwards.
Debian has 2.6.26 in unstable, 2.6.27 in experimental so you need a custom kernel.
Code:
apt-get install firmware-ralink
will install needed firmware for Debian.
Debian has an too old hostapd which does not contain needed driver. However, it also contains usefull manual pages and infrastructure. So do install the old version with
Code:
apt-get install hostapd
Get hostapd with '
Code:
git clone git://w1.fi/srv/git/hostap.git
'. All dependencies are in Debian packages (
Code:
apt-get install libnl-dev
)
hostapd needs to be configured to use driver 80211nl. This needs to be compiled in manually (don't know why not enabled by default), copy hostapd/defconfig to hostapd/.config and set
Code:
CONFIG_DRIVER_NL80211=y
. Run make. Copy hostapd to /usr/sbin over the old version in Debian.
Edit /etc/hostapd/hostapd.conf
Add to /etc/network/interfaces:
Quote:
auto wlan0
iface wlan0 inet manual
hostapd /etc/hostapd/hostapd.conf
This should bring up wlan0 on boot, and run hostapd.
Test configuration with '
Code:
hostapd -dd /etc/hostapd/hostapd.conf
'. Also look in dmesg for clues.
....but...
This doesn't work for me, while I've got the feeling that it should.
Code:
latti:~# hostapd -dd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
ctrl_interface_group=0
Failed to set interface wlan0 to master mode.
nl80211 driver initialization failed.
wlan0: Unable to setup interface.
rmdir[ctrl_interface]: No such file or directory
ELOOP: remaining socket: sock=5 eloop_data=0x8d6e840 user_data=(nil) handler=0x807bc00
Ok, so could not set master mode. That's the same error as when patch is not applied, but this is 2.6.28 which should work out-of-the-box.
More output:
Code:
latti:~# uname -a
Linux latti 2.6.28 #4 Mon Jan 5 12:18:15 CET 2009 i686 GNU/Linux
latti:~# hostapd -v
hostapd v0.6.6
User space daemon for IEEE 802.11 AP management,
IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
Copyright (c) 2002-2008, Jouni Malinen <j@w1.fi> and contributors
latti:~# iwconfig wlan0
wlan0 IEEE 802.11bg ESSID:""
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
Tx-Power=19 dBm
Retry min limit:7 RTS thr:off Fragment thr=2352 B
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
latti:~# iwconfig wlan0 mode master
Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan0 ; Invalid argument.
The only worrisome part from dmesg is:
Code:
[ 22.909172] cfg80211: Calling CRDA for country: US
...and I'm in .nl and don't know how to set the crda and don't know whether it matters.
Anyone any idea?
Thanks,
Rutger.