Atheros Ath5k/Ath9k Wireless Access Point

Kernel Configuration
Configure your kernel as follows.

Or if you prefer here is what your .config should look like.

Kernels 2.6.29.x and 2.6.30.x have the AP (Access Point) code but it is not activated yet so we must activate it before building the kernel. Add "BIT(NL80211_IFTYPE_AP) |" without the quotes to base.c as shown below.

Kernel 2.6.36 needs the CONFIG_HOSTAP symbol set.

Needed Software
hostapd is required to run a WAP (Wireless Access Point):

Services for your WAP (DHCP and DNS):

Make sure bind is listening on 192.168.0.1 and 192.168.1.1. If you are doing ethernet bridging then Bind only needs to be listening on 192.168.0.1

Optional: If you want to do ethernet bridging:

Ethernet Setup
This article assumes you have eth0 connecting to the Internet, eth1 is a wired subnet and wlan0 is a wireless subnet.

Optional:

There are two possible configurations that can occur here depending whether or not you want to do Ethernet bridging. Ethernet bridging allows you to combine your wired subnet and wireless subnet together into one subnet so you can copy files, stream video or music between a wired and wireless system and see all your computers in "My Network Place".

Without Ethernet Bridging
Edit the following files as shown...

Here are some iptables rules you will need

With Ethernet Bridging
Edit the following files as shown...

The following /etc/conf.d/net files are for kernel 2.6.33.x and newer. Notice that wlan0 is gone.

Configuration of Hostapd
If you are using kernel 2.6.33.x or newer make sure you have hostapd-0.7.1 or newer installed. The following configuration will work fine.

I will make this simple, here is a configuration that just works for hostapd-0.6.9 (well it did for me anyways)

Services
Configure your startup scripts

If NOT doing bridging

If you are doing bridging:

Here are some iptables rules you might use when doing Ethernet bridging

That's it. Just reboot and you should be all set.

Point d'accès Wifi avec Madwifi Atheros_Wi-Fi