View Single Post
  #1   (View Single Post)  
Old 10th March 2011
sws sws is offline
Port Guard
Join Date: Mar 2011
Posts: 12
Default Wifi with atheros chipset AR9280


I am trying to get a wifi access point running on my SOHO-server, OpenBSD 4.8, Netfinity 3000. The server acts as a gateway and firewall to a dsl-router. IP is 192.1687.0.20. Connection to the internet passes through OpenVPN (tun0). The intranet is configured with subnet So nothing really strange there (I hope).

Card TP-Link TL-WN851N is recognized on system bootup:

athn0 at pci0 dev 16 function 0 "Atheros AR9280" rev 0x01: irq 11, address 74:ea:3a:f3:05:39
athn0: AR9280 rev 2 (2T2R), ROM rev 16
Configuring device works as well in /etc/hostname.athn0:

up media autoselect mediaopt hostap mode 11g chan 11 nwid FreiKINO wpa wpapsk $(wpa-psk FreiKINO password)
Device can be seen up and running:
# ifconfig athn0:

lladdr 74:ea:3a:f3:05:39
priority: 4
groups: wlan
media: IEEE802.11 autoselect mode 11g hostap
status: active
ieee80211: nwid FreiKINO chan 11 bssid 74:ea:3a:f3:05:39 wpapsk xxxxxxxxx wpaprotos wpa1,wpa2 wpaakms psk wpaciphers tkip,ccmp wpagroupcipher tkip
inet6 fe80::76ea:3aff:fef3:539%athn0 prefixlen 64 scopeid 0x2
inet netmask 0xffffff00 broadcast
To connect devices coming in from the access point I configured a dhcpd server pointing on the wifi device athn0.

My /etc/dhcpd.conf:

option domain-name "";
option domain-name-servers;
subnet netmask {
option routers;

But now problems arise:

1. I cannot ping the wifi card. And it doesn't matter if dhcpd is running or not.

ping: sendto: Host is down
ping: wrote 64 chars, ret=-1
--- ping statistics ---
9 packets transmitted, 0 packets received, 100.0% packet loss
2. Every time I start dhcpd

# dhcpd athn0

it tries to give IP-Adresses to every network device on the net. Thus my openvpn connection breaks down and routing dies.

Where is the missing link? Any help appreciated.

Reply With Quote