]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Print an error if WDS STA interface cannot be set up
authorJouni Malinen <j@w1.fi>
Sun, 19 Aug 2012 15:28:55 +0000 (18:28 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 19 Aug 2012 15:28:55 +0000 (18:28 +0300)
Signed-hostap: Jouni Malinen <j@w1.fi>

src/drivers/driver_nl80211.c

index 192d631bb81efa994b68fa7103e8b2da33f1aed2..513293ed094b42b283feac871d3930963f2b19ae 100644 (file)
@@ -7650,7 +7650,10 @@ static int i802_set_wds_sta(void *priv, const u8 *addr, int aid, int val,
                                            bridge_ifname, name) < 0)
                                return -1;
                }
-               linux_set_iface_flags(drv->global->ioctl_sock, name, 1);
+               if (linux_set_iface_flags(drv->global->ioctl_sock, name, 1)) {
+                       wpa_printf(MSG_ERROR, "nl80211: Failed to set WDS STA "
+                                  "interface %s up", name);
+               }
                return i802_set_sta_vlan(priv, addr, name, 0);
        } else {
                i802_set_sta_vlan(priv, addr, bss->ifname, 0);