aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2018-12-30 23:05:23 (GMT)
committerJouni Malinen <j@w1.fi>2018-12-30 23:05:23 (GMT)
commitf9052d6ea5d5913d121e2604c11eefbf2fae39e0 (patch)
tree6a484d1e155c0bd1323cd0ced053c05f22f7d41a /src
parent544b5a0d3949d33a3ac1e87ccca3eef3cfe08956 (diff)
downloadhostap-f9052d6ea5d5913d121e2604c11eefbf2fae39e0.zip
hostap-f9052d6ea5d5913d121e2604c11eefbf2fae39e0.tar.gz
hostap-f9052d6ea5d5913d121e2604c11eefbf2fae39e0.tar.bz2
nl80211: Note interface-removal-from-bridge errors in debug log
One of the linux_br_del_if() calls did not log nl80211-specific entry. Make this more consistent with the other cases even though linux_br_add_if() function itself is logging an error in the ioctl() failure case (but not in the interface not found case). Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src')
-rw-r--r--src/drivers/driver_nl80211.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index e53dc20..b887eb2 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -6738,9 +6738,12 @@ static int i802_set_wds_sta(void *priv, const u8 *addr, int aid, int val,
}
return i802_set_sta_vlan(priv, addr, name, 0);
} else {
- if (bridge_ifname)
- linux_br_del_if(drv->global->ioctl_sock, bridge_ifname,
- name);
+ if (bridge_ifname &&
+ linux_br_del_if(drv->global->ioctl_sock, bridge_ifname,
+ name) < 0)
+ wpa_printf(MSG_INFO,
+ "nl80211: Failed to remove interface %s from bridge %s: %s",
+ name, bridge_ifname, strerror(errno));
i802_set_sta_vlan(priv, addr, bss->ifname, 0);
nl80211_remove_iface(drv, if_nametoindex(name));