linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] bcm43xx: honour promisc bit even in monitor mode
@ 2007-06-19 23:30 Johannes Berg
  2007-06-20 21:01 ` Michael Buesch
  0 siblings, 1 reply; 2+ messages in thread
From: Johannes Berg @ 2007-06-19 23:30 UTC (permalink / raw)
  To: linux-wireless; +Cc: Michael Buesch

When bcm43xx goes into monitor mode, it always is a promisc monitor
mode. For the hostapd using monitor interfaces, we'll want to only go
into monitor mode if it's really required. I previously thought that
this requires changes to mac80211, but mac80211 does in fact already
seem to handle IFF_PROMISC appropriately. Hence, this change is the
only required to get proper semantics for a monitor interface that
isn't in promiscuous mode on bcm43xx.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>

---
Since wireshark/tcpdump by default still set IFF_PROMISC everything will
work just fine, but if somebody really wants a monitor interface that
isn't promisc this makes it work too. However, you'll of course get all
packets still if any other interface is set promisc. We don't do any
promisc/non-promisc filtering in the stack when multiple monitor
interfaces are open.

 drivers/net/wireless/mac80211/bcm43xx/bcm43xx_main.c |    1 -
 1 file changed, 1 deletion(-)

--- wireless-dev.orig/drivers/net/wireless/mac80211/bcm43xx/bcm43xx_main.c	2007-06-20 01:03:35.547360230 +0200
+++ wireless-dev/drivers/net/wireless/mac80211/bcm43xx/bcm43xx_main.c	2007-06-20 01:03:42.467360230 +0200
@@ -1939,7 +1939,6 @@ static void bcm43xx_adjust_opmode(struct
 		}
 	}
 	if (wl->monitor) {
-		ctl |= BCM43xx_MACCTL_PROMISC;
 		ctl |= BCM43xx_MACCTL_KEEP_CTL;
 		if (modparam_mon_keep_bad)
 			ctl |= BCM43xx_MACCTL_KEEP_BAD;



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-06-20 21:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-19 23:30 [PATCH] bcm43xx: honour promisc bit even in monitor mode Johannes Berg
2007-06-20 21:01 ` Michael Buesch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).