I&#39;m using Ubuntu 9.10 with a RaLink RT61<br><br># lspci | grep -i rt61<br>05:08.0 Network controller: RaLink RT2561/RT61 rev B 802.11g<br><br>I&#39;ve setup a bridge using wlan0 and eth0, and assigned an IP address to br0 device, and I&#39;ve installed and configured hostapd 0.6.9 from the Ubuntu repository.<br>
<br># grep -v \# /etc/hostapd/hostapd.conf | grep -v &quot;^$&quot;<br>interface=wlan0<br>bridge=br0<br>logger_syslog=-1<br>logger_syslog_level=2<br>logger_stdout=-1<br>logger_stdout_level=2<br>dump_file=/tmp/hostapd.dump<br>
ctrl_interface=/var/run/hostapd<br>ctrl_interface_group=0<br>ssid=test<br>country_code=SE<br>hw_mode=g<br>channel=60<br>beacon_int=100<br>dtim_period=2<br>max_num_sta=255<br>rts_threshold=2347<br>fragm_threshold=2346<br>macaddr_acl=0<br>
auth_algs=3<br>ignore_broadcast_ssid=0<br>wme_enabled=1<br>wme_ac_bk_cwmin=4<br>wme_ac_bk_cwmax=10<br>wme_ac_bk_aifs=7<br>wme_ac_bk_txop_limit=0<br>wme_ac_bk_acm=0<br>wme_ac_be_aifs=3<br>wme_ac_be_cwmin=4<br>wme_ac_be_cwmax=10<br>
wme_ac_be_txop_limit=0<br>wme_ac_be_acm=0<br>wme_ac_vi_aifs=2<br>wme_ac_vi_cwmin=3<br>wme_ac_vi_cwmax=4<br>wme_ac_vi_txop_limit=94<br>wme_ac_vi_acm=0<br>wme_ac_vo_aifs=2<br>wme_ac_vo_cwmin=2<br>wme_ac_vo_cwmax=3<br>wme_ac_vo_txop_limit=47<br>
wme_ac_vo_acm=0<br>eapol_key_index_workaround=0<br>eap_server=0<br>own_ip_addr=127.0.0.1<br>wpa=2<br>wpa_passphrase=secret01<br>wpa_pairwise=TKIP CCMP<br><br>But when I try run hostapd from the Ubuntu repository, then although &quot;CONFIG_DRIVER_NL80211=y&quot; have been uncommented, I still get this error:<br>
<br># hostapd -K -dd /etc/hostapd/hostapd.conf<br>Configuration file: /etc/hostapd/hostapd.conf<br>ctrl_interface_group=0<br>ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Operation not supported<br>Could not enable hostapd mode for interface wlan0<br>
hostap driver initialization failed.<br>wlan0: Unable to setup interface.<br>rmdir[ctrl_interface]: No such file or directory<br><br>So I gathered hostapd from ubuntu is broken somehow.<br><br>I then followed (partly) this guide, <a href="http://rt2x00.serialmonkey.com/wiki/index.php/AP-mode_Howto">http://rt2x00.serialmonkey.com/wiki/index.php/AP-mode_Howto</a>. And downloaded the hostapd source with git. And after I&#39;ve build the code, I configured hostapd.conf the same way as above. But now I get this error:<br>
<br>root@etch:/usr/src/hostap/hostapd# ./hostapd -K -dd hostapd.conf <br>Configuration file: hostapd.conf<br>ctrl_interface_group=0<br>nl80211: Add own interface ifindex 5<br>nl80211: Add own interface ifindex 4<br>nl80211: Failed to set interface 4 to mode 3: -16 (Device or resource busy)<br>
nl80211: Failed to set interface wlan0 into AP mode<br>nl80211 driver initialization failed.<br>wlan0: Unable to setup interface.<br>Flushing old station entries<br>Deauthenticate all stations<br>rmdir[ctrl_interface]: No such file or directory<br>
ELOOP: remaining socket: sock=4 eloop_data=0x9b03850 user_data=0x9b055e8 handler=0x8075950<br>root@etch:/usr/src/hostap/hostapd# <br><br>Any idea whats causing the error?<br><br>Just for reference, Ubuntu 9.10 is using kernel 2.6.31.<br clear="all">
<br>-- <br>Mfg. Regards, Mvh.<br>Valdemar Lemche<br><br>127 Brännestadsvägen<br>297 93 Huaröd<br>Sweden<br><br>Phone:      +46 44330423<br>Cell:       +46 763471949<br>ICQ#:       28884381<br>GoogleTalk: <a href="mailto:vlemche@gmail.com">vlemche@gmail.com</a><br>
Email:      <a href="mailto:valdemar@lemche.net">valdemar@lemche.net</a><br><br>&quot;Intuitive Software can easily be learned.<br>You just have to work at it for a long time.&quot;<br>- Ponder Stibbons, Unseen University<br>