Can't add wlan0 to br0

Jouni Malinen j
Mon Jan 11 08:54:49 PST 2010


On Mon, Jan 11, 2010 at 05:45:42PM +0100, Kacper wrote:
> After further testing I have concluded that you can only add the
> wireless interface into a bridge after hostapd has started. Why is
> that and how can it be fixed?

That is a recent change in the kernel, i.e., it is preventing users from
configuring bridging incorrect (IEEE 802.11 does not allow it to be used
in station mode). I'm not sure whether I would fully agree with it being
that good of an idea for kernel to enforce this because of this
particular issue that you are seeing. There is really no fix for this.
As a workaround, you could try to set interface type into AP mode first
with iw and then adding the bridge entry before starting hostapd. You
will need to use an undocumented "__ap" with iw since this operation is
not really recommended for users to avoid confusion on AP mode
requirements.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list