From: jamal <hadi@cyberus.ca>
To: "John W. Linville" <linville@tuxdriver.com>
Cc: netdev@vger.kernel.org
Subject: [PATCH] wext: Send name on events
Date: Thu, 07 Aug 2008 09:25:15 -0400 [thread overview]
Message-ID: <1218115515.4735.3.camel@localhost> (raw)
[-- Attachment #1: Type: text/plain, Size: 91 bytes --]
iproute2 doesnt like it, so i was getting irritated by this on my
laptop.
cheers,
jamal
[-- Attachment #2: wext-1 --]
[-- Type: text/plain, Size: 1052 bytes --]
wext: Send name on events
In the minimal the wireless extensions oughta send at least
the name in addition to the ifindex.
Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
---
commit 8dd4c21ea0029bb6a9c838254460f9b1ca677531
tree ce70cdebe4dac4ba2543d1bb6d1e507aa2fd5da7
parent 82ca26fa474171326de9851a2f547c490f8e7276
author Jamal Hadi Salim <hadi@cyberus.ca> Thu, 07 Aug 2008 09:15:22 -0400
committer Jamal Hadi Salim <hadi@cyberus.ca> Thu, 07 Aug 2008 09:15:22 -0400
net/wireless/wext.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/net/wireless/wext.c b/net/wireless/wext.c
index df5b388..d98ffb7 100644
--- a/net/wireless/wext.c
+++ b/net/wireless/wext.c
@@ -1277,6 +1277,7 @@ static int rtnetlink_fill_iwinfo(struct sk_buff *skb, struct net_device *dev,
r->ifi_flags = dev_get_flags(dev);
r->ifi_change = 0; /* Wireless changes don't affect those flags */
+ NLA_PUT_STRING(skb, IFLA_IFNAME, dev->name);
/* Add the wireless events in the netlink packet */
NLA_PUT(skb, IFLA_WIRELESS, event_len, event);
next reply other threads:[~2008-08-07 13:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-07 13:25 jamal [this message]
2008-08-13 9:40 ` [PATCH] wext: Send name on events David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1218115515.4735.3.camel@localhost \
--to=hadi@cyberus.ca \
--cc=linville@tuxdriver.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.