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

This commit is contained in:
cinap_lenrek 2013-02-10 04:55:57 +01:00
parent 97d136fb21
commit ccbfdd9e91

View file

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