Имеется USB девайс TL-WN727N. Хочется завести его как AP в Debian (2.6.32-trunk-686).
Ставлю hostapd c оффсайта (пробоверял с 0.6.9 и 0.7.1), libnl-dev и libnl1 из репозитория. hostapd.conf такой
interface=ra0
driver=nl80211
logger_syslog=1
logger_syslog_level=2
logger_stdout=1
logger_stdout_level=2
debug=1
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ssid=MySsidName
hw_mode=g
channel=1
beacon_int=100
dtim_period=2
max_num_sta=255
rts_threshold=2347
fragm_threshold=2346
wpa=2
wpa_passphrase=MyPass
wpa_pairwise=TKIP CCMP
Затем качаю RT2870USB(RT2870/RT2770) с http://www.ralinktech.com/support.php?s=2/support.php?s=2. Компиляю по мануалу, заменив в os/linux/cfg80211.c
pWdev->wiphy->interface_modes =
BIT(NL80211_IFTYPE_STATION) |
BIT(NL80211_IFTYPE_ADHOC) |
BIT(NL80211_IFTYPE_MESH_POINT);
pWdev->wiphy->interface_modes =
BIT(NL80211_IFTYPE_STATION) |
BIT(NL80211_IFTYPE_AP) |
BIT(NL80211_IFTYPE_ADHOC) |
BIT(NL80211_IFTYPE_MONITOR);
ra0 Ralink STA ESSID:"MySsidName" Nickname:"RT2870STA"
Mode:Auto Frequency=2.412 GHz Access Point: Not-Associated
Bit Rate:1 Mb/s
RTS thr:off Fragment thr:off
Encryption key:off
Link Quality=10/100 Signal level:0 dBm Noise level:-97 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
./hostapd -dd hostapd.conf
Configuration file: hostapd.conf
Line 7: DEPRECATED: 'debug' configuration variable is not used anymore
nl80211: Add own interface ifindex 8
nl80211: Failed to set interface 8 to mode 3: -19 (No such device)
nl80211: Failed to set interface 8 to mode 3: -19 (No such device)
nl80211: Interface mode change to 3 from 0 failed
nl80211: Failed to set interface ra0 into AP mode
nl80211 driver initialization failed.
Flushing old station entries
Deauthenticate all stations
rmdir[ctrl_interface]: No such file or directory
ELOOP: remaining socket: sock=4 eloop_data=0x95d1880 user_data=0x95d1dc0 handler=0x80722f0
ELOOP: remaining socket: sock=6 eloop_data=0x95d3890 user_data=(nil) handler=0x807ab80