shithub: riscv

Download patch

ref: f6833ce42841f25799ecbde8b847b30bfe6241a6
parent: 7a9ecbed6a5baa70d5e7248f8a8d5d5eb88260e6
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Tue May 21 15:29:57 EDT 2013

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.

--- a/sys/src/9/pc/wifi.c
+++ b/sys/src/9/pc/wifi.c
@@ -466,7 +466,7 @@
 	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);
--