ref: 7cdd1c46c5bb29572c69cbf2dcff3fba6a4a7a1d
parent: 8e924edeeb15d6350e531e73cf519f2bd6ed5a74
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Mar 6 17:09:17 EST 2014
wifi: remove misleading packet header length check in wifidecrypt() we do not need to check block length in wifidecrypt() again as wifiiq() already filters out truncated frames.
--- a/sys/src/9/pc/wifi.c
+++ b/sys/src/9/pc/wifi.c
@@ -997,9 +997,6 @@
Wkey *k;
w = (Wifipkt*)b->rp;
- if(BLEN(b) < WIFIHDRSIZE)
- goto drop;
-
n = wifihdrlen(w);
b->rp += n;
if(BLEN(b) < 8+8)