nl80211: Fix interface-in-different-bridge case
authorJouni Malinen <j@w1.fi>
Sat, 20 Dec 2014 19:00:08 +0000 (21:00 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 20 Dec 2014 19:00:08 +0000 (21:00 +0200)
commit5ef8e39fa79737bccfff0074f7ec57a9b719bae3
tree8d5355e584aae3a4028f20ac3b54912623bdf188
parenta42f88f8e7fc7467c54683878dba6df4243cac34
nl80211: Fix interface-in-different-bridge case

The local ifindex list needs to be updated only if the current bridge
interface is the correct one. If hostapd is going to move the interface
to another bridge, the old bridge ifindex must not be added. In
addition, when removing the bridge interface on deinit, it may need to
be set down to allow bridge removal.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/drivers/driver_nl80211.c