diff options
author | Jamal Hadi Salim <hadi@cyberus.ca> | 2008-08-13 02:39:56 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-08-13 02:39:56 -0700 |
commit | 317900cb010f4aca0e3cb14a02d0ddcc44ddafa7 (patch) | |
tree | 57953187ee4cb208f29c880e4429da3ac8b2f823 /net | |
parent | 6bf90b2bf4084a64bbcf96a0b93dc64c77288028 (diff) | |
download | linux-3.10-317900cb010f4aca0e3cb14a02d0ddcc44ddafa7.tar.gz linux-3.10-317900cb010f4aca0e3cb14a02d0ddcc44ddafa7.tar.bz2 linux-3.10-317900cb010f4aca0e3cb14a02d0ddcc44ddafa7.zip |
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | 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 df5b3886c36..d98ffb75119 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); |