From: Jamal Hadi Salim Date: Wed, 13 Aug 2008 09:39:56 +0000 (-0700) Subject: wext: Send name on events X-Git-Tag: v2.6.27-rc4~103^2~35 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=317900cb010f4aca0e3cb14a02d0ddcc44ddafa7;p=linux-2.6 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 Signed-off-by: David S. Miller --- diff --git a/net/wireless/wext.c b/net/wireless/wext.c index df5b3886c3..d98ffb7511 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);