On Wed, Apr 01, 2015 at 08:37:32AM +0000, Lukas Göstl via Devel wrote:
> When I start this setup wpa_supplicant is not able to start, I think this is 
> because I set the type of wlan0 to mp and bridge it to br0.
> wpa_supplicant wants to set the interface to the station-mode (I don’t know 
> why) and I think this is not possible if the wlan0 interface is bridged.
> 
> Here is the log of wpa_supplicant:

I think it will work if you manually add it to the bridge after the
device in wpa_s is up (although it would be nicer to do it differently.)

Here's a snippet from a script I have to set up a mesh AP (hostapd.conf
references the bridge device) -- sleep 5 is not great but it worked for
me:

    ip addr flush $iface
    ip link set $iface down
    ip link set addr $mesh_mac dev $iface
    iw dev $iface set type mp

    ip link set $iface up

    wpa_supplicant -dd -i $iface -c wpa_s.conf >wpas.log 2>&1 &

    sleep 5
    brctl addif $br_iface $iface
    ip addr add $meship/24 dev $br_iface
    ip link set $br_iface up

    hostapd -dd hostapd.conf >hostapd.log 2>&1 &

-- 
Bob Copeland %% http://bobcopeland.com/
_______________________________________________
Devel mailing list
[email protected]
http://lists.open80211s.org/cgi-bin/mailman/listinfo/devel

Reply via email to