ref: ea15cb675fc8c157c26421900c471812da1a886d
parent: 7698629bfdf5e8103bb5378320dc0838cd9e319c
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);
}
--
⑨