Hey all, I think I might know the problem. After doing some reading apparently many distrutions, including Gentoo, don't ship hostapd with support for the nl80211 driver. I checked the Gentoo tarball and this is the case. I tried editing the defconfig file in hostapd.tar.gz (enabling CONFIG_DRIVER_NL80211=y)but when I opened the tarball, edited it, and created a new tarball then tried to emerge it it gave me this...
penguin distfiles # emerge hostapd Calculating dependencies... done! >>> Verifying ebuild manifests >>> Emerging (1 of 1) net-wireless/hostapd-0.6.9 Refetching... File renamed to '/usr/portage/distfiles/hostapd-0.6.9.tar.gz._checksum_failure_.70f9W1' ...and then wanted to download hostapd again. Anyone know how I edit the source of the hostapd tarball so it will work? > Greetings, > > I am trying to setup a wireless access point using the atheros kernel > driver (Built into the kernel, not as a module). I am using > Vanilla-Sources 2.6.29.4. I need my wireless network card to start up in > "master mode" but for some reason it is starting up in "managed mode". > > > When wlan0 starts up I get this error message... > > > * Bringing up interface wlan0 > * configuring wireless network for wlan0 > Error for wireless request "Set Mode" (8B06) : > SET failed on device wlan0 ; invalid argument. > * wlan0 connected to SSID "MyNetwork" > * in managed mode (WEP Disabled) > * null... [ ok ] > > > then when hostapd starts up I get this error message... > > > * Starting hostapd... > Configuration file: /etc/hostapd/hostapd.conf > Failed to set interface wlan0 to master mode. > nl80211 driver initialization failed. > ELOOP: remaining socket: sock=5 eloop_data=0x80f5a38 user_data=(nil) > handler=0x8094b70 > * start-stop-daemon: failed to start `/usr/sbin/hostapd' > [ !! ] > * ERROR: hostapd failed to start > > > Here is my /etc/conf.d/net > > > config_eth0="69.196.152.151 netmask 255.255.255.0 broadcast > 69.196.152.255" > config_eth1="null" > config_wlan0="null" > bridge_br0="eth1 wlan0" > config_br0="192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255" > channel_wlan0="1" > mode_wlan0="master" > essid_wlan0="MyNetwork" > > > Here is my hostapd.conf > > > interface=wlan0 > bridge=br0 > driver=nl80211 > ssid=MyNetwork > hw_mode=g > channel=1 > macaddr_acl=0 > auth_algs=1 > ignore_broadcast_ssid=0 > country_code=CA > wpa=1 > wpa_passphrase=passphrase > wpa_key_mgmt=WPA-PSK > wpa_pairwise=TKIP > rsn_pairwise=CCMP > > > Anyone know how to change my wireless card to "master mode" and make it so > I don't get those error messages? > > > Thanks > > > P.S. I have everything working with madwifi and an older kernel so worst > case scenario I stay with that configuration until I get this problem > figured out. > > >