shithub: riscv

Download patch

ref: 3376977d06e6dc8132dee443c20be6e045321c2f
parent: 8f991a3faaae210d8acfd5e0c56d699643410041
author: cinap_lenrek <[email protected]>
date: Sun Feb 10 20:29:10 EST 2013

wifi: actually check if management replies are for us

--- a/sys/src/9/pc/wifi.c
+++ b/sys/src/9/pc/wifi.c
@@ -303,6 +303,8 @@
 			}
 			continue;
 		}
+		if(memcmp(w->a1, wifi->ether->ea, Eaddrlen))
+			continue;
 		if((wn = nodelookup(wifi, w->a3, 0)) == nil)
 			continue;
 		if(wn != wifi->bss)