[PATCHv2,18/21] driver nl80211: print interface name

Submitted by michael-dev@fami-braun.de on May 17, 2013, 4:02 p.m.

Details

Message ID 8e56c1700c5dad0c1a15e1e7de365185613ca303.1370512966.git.michael-dev@fami-braun.de
State Accepted
Commit 8393e1a024f62cdf11b90a46a4e1e330e4c1580f
Headers show

Commit Message

michael-dev@fami-braun.de May 17, 2013, 4:02 p.m.
Sometimes an interface name that cannot be resolved is given
to the set_key function, so print the ifname in addition
to the ifidx.

Signed-hostap: Michael Braun <michael-dev@fami-braun.de>

Comments

Jouni Malinen June 25, 2013, 9:26 a.m.
On Fri, May 17, 2013 at 06:02:02PM +0200, Michael Braun wrote:
> Sometimes an interface name that cannot be resolved is given
> to the set_key function, so print the ifname in addition
> to the ifidx.

Thanks, applied.

Patch hide | download patch | download mbox

diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 6c13bcf..495c3e7 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -4550,9 +4550,9 @@  static int wpa_driver_nl80211_set_key(const char *ifname, struct i802_bss *bss,
 	struct nl_msg *msg;
 	int ret;
 
-	wpa_printf(MSG_DEBUG, "%s: ifindex=%d alg=%d addr=%p key_idx=%d "
+	wpa_printf(MSG_DEBUG, "%s: ifindex=%d (%s) alg=%d addr=%p key_idx=%d "
 		   "set_tx=%d seq_len=%lu key_len=%lu",
-		   __func__, ifindex, alg, addr, key_idx, set_tx,
+		   __func__, ifindex, ifname, alg, addr, key_idx, set_tx,
 		   (unsigned long) seq_len, (unsigned long) key_len);
 #ifdef CONFIG_TDLS
 	if (key_idx == -1)