You are not logged in.

#1 2011-11-01 21:45:06

Bullet Dodger
New member
Registered: 2011-11-01
Posts: 2

Setting up a Atheros AR9285 as a wifi access point [Solved]

Can anyone give me some pointers on how to get an Atheros AR9285 in master mode to use as a wifi access point.
This is my 1st attempt to set up a linux wifi access point / router.
I have previously run gentoo and recently switched to funtoo.

I have also posted this in the gentoo forum as I have always found the people there very helpful.

http://forums.gentoo.org/viewtopic-p-68 … ml#6859452

So I have got as far as a wlan0 in managed mode that can find a wifi router using iwlist.

# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:01:2e:2f:28:c0  
          inet addr:192.168.2.4  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::201:2eff:fe2f:28c0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5823 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3006 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:724302 (707.3 KiB)  TX bytes:668611 (652.9 KiB)
          Interrupt:42 Base address:0x4000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:64 errors:0 dropped:0 overruns:0 frame:0
          TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:4542 (4.4 KiB)  TX bytes:4542 (4.4 KiB)

wlan0     Link encap:Ethernet  HWaddr 1c:4b:d6:72:3b:e7  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

# iwconfig 
lo        no wireless extensions.

eth0      no wireless extensions.

wlan0     IEEE 802.11bgn  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=17 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:on
          

I am using the 2.6.38-sysrescue-std220 kernel as per the funtoo install guide, and would prefer not to get into genkernel if possible.

I have a net.ath0 that is running

# rc-status |grep ath
 net.ath0                                                          [  started  ]

But hostapd refuses to start

# /etc/init.d/hostapd start
 * Starting hostapd ...
 * start-stop-daemon: failed to start `/usr/sbin/hostapd'                                                                                                                                                                               [ !! ]
 * ERROR: hostapd failed to start

Thanks

Last edited by Bullet Dodger (2011-11-04 01:33:35)

Offline

#2 2011-11-03 06:44:32

ahm
New member
Registered: 2011-11-03
Posts: 1

Re: Setting up a Atheros AR9285 as a wifi access point [Solved]

Can u see any output of hostapd in /var/log/messages or doing dmesg ?

Last edited by ahm (2011-11-03 06:46:05)

Offline

#3 2011-11-04 01:33:11

Bullet Dodger
New member
Registered: 2011-11-01
Posts: 2

Re: Setting up a Atheros AR9285 as a wifi access point [Solved]

Solved it.
madwifi is not required - unmerged it.
madwifi sets up ath0 and ath9k sets up wlan0, so I need to use wlan0.
hw_mode and channel were missing from /etc/hostapd/hostapd.conf - added these.
In /etc/hostapd/hostapd.conf there was a space at the end of the line:
interface=wlan0
Removed the extra space and started hostapd and it worked.

Offline

#4 2013-06-22 22:56:32

donjames
Member
Registered: 2010-10-09
Posts: 99

Re: Setting up a Atheros AR9285 as a wifi access point [Solved]

Hi Bullet Dodger,

hostapd has been installed, but gives an error when it tries to start: "ERROR: hostapd needs service(s) net.wlan0"  I'm not sure what to do here.

Where is net.wlan0?

Thanks,

Don James

Offline

#5 2013-06-22 23:51:56

overkill
Member
Registered: 2011-09-13
Posts: 243

Re: Setting up a Atheros AR9285 as a wifi access point [Solved]

net.wlan0 would be the gentoo link to /etc/init.d/net.lo.  Funtoo uses a modified version of openrc.  Should be netif.wlan0 afaik, and should be a soft link to /etc/init.d/netif.tmpl.  If that doesn't work with hostapd, you many need to file a bug at bugs.funtoo.org.

Offline

#6 2013-06-23 00:03:14

donjames
Member
Registered: 2010-10-09
Posts: 99

Re: Setting up a Atheros AR9285 as a wifi access point [Solved]

I have set netif.wlan0 as a soft link to /etc/init.d/netif.tmpl

I tried to file and bug report and it asked for version.  What version?  What is the format of version?  How about an example.

Thanks,

Don James

Offline

#7 2013-06-23 02:07:13

overkill
Member
Registered: 2011-09-13
Posts: 243

Re: Setting up a Atheros AR9285 as a wifi access point [Solved]

version?  in the bug report?  if you don't know just leave it blank.

Offline

#8 2013-06-23 03:07:54

donjames
Member
Registered: 2010-10-09
Posts: 99

Re: Setting up a Atheros AR9285 as a wifi access point [Solved]

I created a bug report.

Offline

Board footer

Powered by FluxBB