WiFi client-to-client

Romick <[email protected]> Fri, 29 May 2015 19:28:05 +1000
Newsgroups gmane.os.dragonfly-bsd.kernel
Message-ID <[email protected]>
I found myself in a situation where I need a wifi client-to-client link through
the access point. Unfortunately, the line 325 in the file 
sys/netproto/802_11/wlan/ieee80211_output.c silently drops a broadcast
packets. So no ARP and no client-to-client link because of this.

Included patch solves my problem, but I think there should be a better way
to manage client isolation.

-- 
  with best reagrds, Yellow Rabbit
  DragonFly 4.1-DEVELOPMENT x86_64
hack.diff (text/x-diff, 530 B)
diff --git a/sys/netproto/802_11/wlan/ieee80211_output.c b/sys/netproto/802_11/wlan/ieee80211_output.c
index 88edf6f..13ea588 100644
--- a/sys/netproto/802_11/wlan/ieee80211_output.c
+++ b/sys/netproto/802_11/wlan/ieee80211_output.c
@@ -322,7 +322,7 @@ ieee80211_start_pkt(struct ieee80211vap *vap, struct mbuf *m)
 			/* XXX better status? */
 			return (ENOBUFS);
 		}
-		if (vap->iv_opmode == IEEE80211_M_HOSTAP) {
+		if (0 && vap->iv_opmode == IEEE80211_M_HOSTAP) {
 			/*
 			 * Spam DWDS vap's w/ multicast traffic.
 			 */