code: plan9front

Download patch

ref: b388488ab6823aa434b3e701184e27a4b8c4245c
parent: 0231537cbac846087f5ac132aba5c97ec9d4cffa
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Dec 6 10:50:09 EST 2023

ether4330: ignore join request while bypassed

--- a/sys/src/9/bcm/ether4330.c
+++ b/sys/src/9/bcm/ether4330.c
@@ -1773,6 +1773,17 @@
 	uchar *p;
 	int n;
 
+	if(ctl->edev->bypass != nil){
+		/*
+		 * firmware appears to be sending broadcast frames
+		 * with unknown ethertype 0x0006 when connected,
+		 * so avoid joining while the interface is bypassed
+		 * to avoid generating traffic.
+		 */
+		ctl->status = Disconnected;
+		return;
+	}
+
 	if(chan != 0)
 		chan |= 0x2b00;		/* 20Mhz channel width */
 	p = params;