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:
parent
7a9ecbed6a
commit
f6833ce428
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue