diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-05-21 19:29:57 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-05-21 19:29:57 +0200 |
commit | f6833ce42841f25799ecbde8b847b30bfe6241a6 (patch) | |
tree | f2d9d96cf0237cdd34cd7398a7b1d4bea9fc49b4 | |
parent | 7a9ecbed6a5baa70d5e7248f8a8d5d5eb88260e6 (diff) |
wifi: properly size internal wifi input processing queue
we only used wifi->iq to process management frames only, now its also used
to forward encrypted data frames, so size it accordingly.
-rw-r--r-- | sys/src/9/pc/wifi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/pc/wifi.c b/sys/src/9/pc/wifi.c index a23604569..1f0bd73b2 100644 --- a/sys/src/9/pc/wifi.c +++ b/sys/src/9/pc/wifi.c @@ -466,7 +466,7 @@ wifiattach(Ether *ether, void (*transmit)(Wifi*, Wnode*, Block*)) wifi = malloc(sizeof(Wifi)); if(wifi == nil) error(Enomem); - wifi->iq = qopen(8*1024, 0, 0, 0); + wifi->iq = qopen(ether->limit, 0, 0, 0); if(wifi->iq == nil){ free(wifi); error(Enomem); |