wifi: lie a bit more about the supported rates to get into more ap's
This commit is contained in:
parent
97d136fb21
commit
ccbfdd9e91
1 changed files with 6 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue