[PATCH] nl80211: Fix bridge name print while removing interface from bridge.

Amit Khatri amit.khatri at samsung.com
Thu Aug 31 21:27:33 PDT 2017

Please review and merge below patch.
it will fix print wrong variable name during fail case.
From e35844b0426d543e981b22acb473f086b7051c59 Mon Sep 17 00:00:00 2001
From: Rohit Pratap Singh <rohit.s at samsung.com>
Date: Wed, 23 Aug 2017 15:59:10 +0530
Subject: [PATCH] nl80211: Fix bridge name print while removing interface from
Removing interface from brige in_br
linux_br_del_if(drv->global->ioctl_sock, in_br, ifname)
but in case of failure ,Error print is incorrect,
it should show error for "in_br" instead of wrong bridge name "brname".
Signed-off-by: Rohit Pratap Singh <rohit.s at samsung.com>
Signed-off-by: Amit Khatri <amit.khatri at samsung.com>
 src/drivers/driver_nl80211.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index e446acd..c46be89 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -6064,7 +6064,7 @@ static int i802_check_bridge(struct wpa_driver_nl80211_data *drv,
                         wpa_printf(MSG_ERROR, "nl80211: Failed to "
                                    "remove interface %s from bridge "
                                    "%s: %s",
-                                   ifname, brname, strerror(errno));
+                                   ifname, in_br, strerror(errno));
                         return -1;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-nl80211-Fix-bridge-name-print-while-removing-interfa.patch
Type: application/octet-stream
Size: 1145 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/hostap/attachments/20170901/5d56f855/attachment.obj>

More information about the Hostap mailing list