summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/9/pc/wifi.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/src/9/pc/wifi.c b/sys/src/9/pc/wifi.c
index 040420529..3f5cb8153 100644
--- a/sys/src/9/pc/wifi.c
+++ b/sys/src/9/pc/wifi.c
@@ -183,9 +183,12 @@ sendassoc(Wifi *wifi, Wnode *bss)
*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);
}