shithub: riscv

Download patch

ref: ccbfdd9e91de5acaaa5841d3781ce6f58d57dc08
parent: 97d136fb21aa6068825c4fda5a7936ba98743ac2
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Sat Feb 9 23:55:57 EST 2013

wifi: lie a bit more about the supported rates to get into more ap's

--- a/sys/src/9/pc/wifi.c
+++ b/sys/src/9/pc/wifi.c
@@ -183,9 +183,12 @@
 	*p = strlen(bss->ssid);
 	memmove(p+1, bss->ssid, *p);
 	p += 1+*p;
-	*p++ = 1;	/* RATES */
-	*p++ = 1;
-	*p++ = 0x96;	/* BUG: hardcoded 11Mbit (802.11b) */
+	*p++ = 1;	/* RATES (BUG: these are all lies!) */
+	*p++ = 4;
+	*p++ = 0x82;
+	*p++ = 0x84;
+	*p++ = 0x8b;
+	*p++ = 0x96;
 	b->wp = p;
 	wifitx(wifi, b);
 }
--