]> git.ipfire.org Git - thirdparty/hostap.git/commit
hostapd: Check the bridge if ioctl SIOCBRADDIF fails
authorMichael-CY Lee <michael-cy.lee@mediatek.com>
Thu, 14 Dec 2023 02:08:47 +0000 (10:08 +0800)
committerJouni Malinen <j@w1.fi>
Sat, 16 Dec 2023 16:16:05 +0000 (18:16 +0200)
commit0af4c1478efe23f8dfc053a6c18a6838d56d22d1
tree4376054c793e729d2559565a3f469f70f940a609
parent1b9006a8cb7be17a5cd5e1b442be8b82f017df50
hostapd: Check the bridge if ioctl SIOCBRADDIF fails

If ioctl() returns EBUSY on the command SIOCBRADDIF, the interface might
have already been added to the bridge by an external operation (e.g.,
netifd in OpenWrt), and linux_br_add_if() should not indicate an error.

Check whether the interface is correctly brigded when ioctl()
returns EBUSY and if so, report success.

Signed-off-by: Michael-CY Lee <michael-cy.lee@mediatek.com>
src/drivers/linux_ioctl.c