Hostapd in bridge mode confusion.

Jan Ceuleers jan.ceuleers
Sat Jun 15 12:04:31 PDT 2013


On 06/14/2013 08:07 PM, Bhavesh Kamani wrote:
> I am using ath9k and hostapd to create AP. I want to put WiFi interface
> in bridge mode.
> 
>  
> 
> Is it the correct sequence to put the WiFi interface in bridge mode?

Here's how I have my AP configured. This is an extract from
/etc/network/interfaces on a debian-like system (Ubuntu 10.04 in fact):

# The primary network interface
auto br0
iface br0 inet static
	address 192.168.1.5
	netmask 255.255.255.0
	broadcast 192.168.1.255
	network 192.168.1.0
	bridge_ports eth3 wlan0 eth1
	post-up /usr/sbin/brctl setfd br0 0
	post-up /usr/sbin/brctl stp br0 on
	post-up /usr/bin/service dhcp3-server start

auto eth3
iface eth3 inet manual
	post-up ethtool -K eth3 gso on
	post-up ip link set eth3 txqueuelen 20

auto eth1
iface eth1 inet manual
	post-up ethtool -K eth1 gso on
	post-up ip link set eth1 txqueuelen 20


auto wlan0
iface wlan0 inet manual
	pre-up ifconfig wlan0 down || /bin/true
	pre-up rmmod ath9k ath9k_common ath9k_hw ath ath5k mac80211 ath
cfg80211 || /bin/true
	pre-up modprobe ath9k
	post-up /etc/init.d/hostapd restart
	post-up /usr/sbin/brctl addif br0 wlan0 || /bin/true
	pre-down /etc/init.d/hostapd stop
	pre-down /usr/sbin/brctl delif br0 wlan0
	post-down rmmod ath9k ath9k_common ath9k_hw mac80211 ath cfg80211 ||
/bin/true
	post-up ip link set wlan0 txqueuelen 20

> Can I use the bridge parameter in hostapd.conf file for each BSS for
> respective bridge?

I am using the bridge=br0 line in hostapd.conf, yes. And driver=nl80211

HTH, Jan




More information about the Hostap mailing list