wext: Send name on events
Subsystems (3)
PATCH 1/1 wext: Send name on events
iproute2 doesnt like it, so i was getting irritated by this on my laptop.
cheers,
jamal
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 <[email protected]>
---
commit 8dd4c21ea0029bb6a9c838254460f9b1ca677531
tree ce70cdebe4dac4ba2543d1bb6d1e507aa2fd5da7
parent 82ca26fa474171326de9851a2f547c490f8e7276
author Jamal Hadi Salim <[email protected]> Thu, 07 Aug 2008 09:15:22 -0400 committer Jamal Hadi Salim <[email protected]> Thu, 07 Aug 2008 09:15:22 -0400
net/wireless/wext.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
net/wireless/wext.c +1 -0
@@ -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);
From: jamal <[email protected]>
Date: Thu, 07 Aug 2008 09:25:15 -0400
Quoted 2 lines
iproute2 doesnt like it, so i was getting irritated by this on my laptop.
Applied, thanks Jamal.