]> git.ipfire.org Git - thirdparty/hostap.git/commit
vlan: Ignore multiple NEWLINK messages
authorMichael Braun <michael-dev@fami-braun.de>
Fri, 10 Apr 2015 12:49:49 +0000 (14:49 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 13 Apr 2015 12:34:33 +0000 (15:34 +0300)
commitde31fb052c896d016e00b7bb36fa6dc7bac52f56
tree669e70fd7d06f0a4e72014dac1baf432a36c529c
parent371205dd0c1bd9ed40b815827ff9e2ccab484d19
vlan: Ignore multiple NEWLINK messages

hostapd receives NEWLINK messages multiple times and thus does
configuration of the the vlan interface multiple times.

This is not required and leads to the following during cleanup in
test pmksa_cache_preauth_vlan_used:
 1. run-test.py does: brctl delif brvlan1 wlan3.1
 2. hostapd processes NEWLINK and does: brctl addif brvlan1 wlan3.1
 3. run-test.py does: brctl delbr brvlan1
    -> fails as wlan3.1 is still in the bridge

This patch fixes this by ignoring repeated NEWLINK messages.

Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
src/ap/ap_config.h
src/ap/vlan_init.c