]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Add AP_VLAN interface to bridge after interface is up
authorRadha Krishna Simha Jiguru <quic_rjiguru@quicinc.com>
Wed, 17 Jul 2024 16:57:39 +0000 (22:27 +0530)
committerJouni Malinen <j@w1.fi>
Mon, 12 Aug 2024 09:40:03 +0000 (12:40 +0300)
commit43943ea5b31fb84bcb3b01f0d85d301a28e66e4c
tree08e498f7308ce21f726b5444c669a9ce25c628b5
parentc4f927926765eba6f6b6f80a328e53b720fab0aa
nl80211: Add AP_VLAN interface to bridge after interface is up

In the current hostapd flow, AP_VLAN net device is added to a bridge
before the interface is brought up.

Interface up event is used in mac80211 layer for setting device context
in the driver. Vendor specific datapath offload configurations for net
device might also be set up in interface up event context. Adding
AP_VLAN interface to a bridge before the UP event could cause
inconsistent state for datapath offload context setup in a vendor
driver.

Change the sequence to add AP_VLAN interface to a bridge after the
interface is set up. This makes the interface up and bridge add sequence
for AP_VLAN to be consistent with that of a regular AP interface.

Signed-off-by: Radha Krishna Simha Jiguru <quic_rjiguru@quicinc.com>
src/drivers/driver_nl80211.c