This is a follow-up to my previous post about a USB wireless dongle I had acquired some weeks ago.
As I said this device shows up as:
Bus 002 Device 008: ID 148f:2573 Ralink Technology, Corp.
RT2501USB Wireless Adapter
There seems to be some ambiquity about the vendorid/productid because this matches multiple chipsets. Usually it is pointing to rt73 chipset but be warned!
Firstly I installed Gentoo in VirtualBox since I didn't want to mess with my Estobuntu install. The rt2x00 guys have landed in Linux Git repository and they have a branch there with most up-to-date drivers. Note that this pulls over 100MB of changsets!:
ln -s linux-rt2x00 linux
make menuconfig # Enable rt2x00 modules under networking device drivers
Next I installed hostapd. Note that "iwconfig wlan0 mode master" DOES NOT work anymore. Instead hostapd is used which is relies on new mac80211 framework in kernel to set wireless card settings. Gentoo had hostapd version 0.6.9 in portage which failed with this card, I installed manually 0.7.2:
tar xvzf hostapd-0.7.2.tar.gz
cp defconfig .config
nano .config # Enable CONFIG_DRIVER_NL80211 there
Afterward I created hostapd.conf with content like this:
Note that before starting hostapd I needed firmware for this card. Firmware wasn't shipped within the Git branch. I had to copy it from my Estobuntu install. The file in question is /lib/firmware/rt73.bin, I placed it in the same place in my virtual machine:
hostapd -dd /path/to/hostapd.conf
The AP should be visible now. Next step is to set IP for the card:
ifconfig wlan0 192.168.100
Finally I had to configure DHCP server in /etc/dhcp/dhcpd.conf and restart DHCP server.