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.
This commit is contained in:
cinap_lenrek 2013-05-21 19:29:57 +02:00
parent 7a9ecbed6a
commit f6833ce428

View file

@ -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);