From f6833ce42841f25799ecbde8b847b30bfe6241a6 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 21 May 2013 19:29:57 +0200 Subject: 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. --- sys/src/9/pc/wifi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3