Skip to contentSkip to conversation

IFF_BROADCAST and dscape

PATCH Applied Jon Smirl 3 participants 4 messages Feb 7, 2007 – Feb 8, 2007 Networking

lore
Share & tools
lore

Jon Smirl

author
#0 lore raw

Dscape doesn't appear to be setting IFF_BROADCAST. I have an existing app that is refusing to load since it wants that flag. Grepping the dscape source doesn't show IFF_BROADCAST.

zd1211 on Intel sets it:
eth1 Link encap:Ethernet HWaddr 00:02:72:53:E3:A6
UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

rt2500usb on dscape doesn't
wlan0 Link encap:Ethernet HWaddr 00:15:E9:2D:76:57
UP RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

Signature · 2 lines
Jon Smirl
[email protected]
author
#1 lore raw
Quoted 3 lines · Jon Smirl

Dscape doesn't appear to be setting IFF_BROADCAST. I have an existing app that is refusing to load since it wants that flag. Grepping the dscape source doesn't show IFF_BROADCAST.

This appears to fix the problem, but I'm not 100% if it is the correct fix.

Index: ieee80211_iface.c
===================================================================
RCS file: /cvsroot/rt2400/source/rt2x00/ieee80211/ieee80211_iface.c,v retrieving revision 1.21
diff -r1.21 ieee80211_iface.c
78c78
< ndev->flags = dev->flags & IFF_MULTICAST;
---

Quoted 1 line
      ndev->flags = dev->flags & (IFF_MULTICAST | IFF_BROADCAST);
Signature · 2 lines
Jon Smirl
[email protected]
#2 lore raw

PATCH 1/1 d80211: use default flags on virtual interfaces

In reply to Jon Smirl

d80211: use default flags on virtual interfaces

There is no need to set dev->flags on virtual interfaces during registration.

---

 net/d80211/ieee80211_iface.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
net/d80211/ieee80211_iface.c +0 -1
index 3b2d259..342ad2a 100644
@@ -75,7 +75,6 @@ int ieee80211_if_add(struct net_device *
 	ndev->irq = dev->irq;
 	ndev->mem_start = dev->mem_start;
 	ndev->mem_end = dev->mem_end;
-	ndev->flags = dev->flags & IFF_MULTICAST;
 	SET_NETDEV_DEV(ndev, local->hw.dev);
 
 	sdata = IEEE80211_DEV_TO_SUB_IF(ndev);
Applied
#3 lore raw

Re: [PATCH] d80211: use default flags on virtual interfaces

Quoted 2 lines · Michael Wu

There is no need to set dev->flags on virtual interfaces during registration.

Applied to my tree, thanks to both Jon and Michael for fixing this.

Jiri

Signature · 2 lines
Jiri Benc
SUSE Labs