diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-03-09 17:28:41 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-03-09 17:28:41 +0100 |
commit | 26792d8db58b64b31c0b74d0711a479690615de7 (patch) | |
tree | fd22fed214e80aeeb9f2b0f91aa678f2d4d936bb /sys/src/9/pc/etheriwl.c | |
parent | 420efd93d728c937f88beeeb6ff80e4182dfe172 (diff) |
wifi: add experimental wpa / tkip encryption support
Diffstat (limited to 'sys/src/9/pc/etheriwl.c')
-rw-r--r-- | sys/src/9/pc/etheriwl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/src/9/pc/etheriwl.c b/sys/src/9/pc/etheriwl.c index cb266fc73..05ae89193 100644 --- a/sys/src/9/pc/etheriwl.c +++ b/sys/src/9/pc/etheriwl.c @@ -1578,8 +1578,9 @@ qcmd(Ctlr *ctlr, uint qid, uint code, uchar *data, int size, Block *block) put32(d, PCIWADDR(c)); d += 4; put16(d, size << 4); d += 2; if(block != nil){ + size = BLEN(block); put32(d, PCIWADDR(block->rp)); d += 4; - put16(d, BLEN(block) << 4); + put16(d, size << 4); } coherence(); @@ -1695,7 +1696,7 @@ rxon(Ether *edev, Wnode *bss) char *err; ctlr = edev->ctlr; - filter = FilterMulticast | FilterBeacon; + filter = FilterNoDecrypt | FilterMulticast | FilterBeacon; if(ctlr->prom){ filter |= FilterPromisc; bss = nil; |