ref: a021f054b0aaba768b9182dadd2da4b76fdf9576
parent: e313265eefe579f2752e1bc8279fef9145bd301d
author: cinap_lenrek <[email protected]>
date: Thu Dec 28 22:41:32 EST 2017
wifi: revert rate adoption divider, breaks arpunks wifi
--- a/sys/src/9/pc/wifi.c
+++ b/sys/src/9/pc/wifi.c
@@ -223,7 +223,8 @@
wn = nodelookup(wifi, w->a1, 0);
if(wn == nil)
return;
- if((wn->txerror++ & 8) == 7 && wn->actrate != nil && wn->minrate != wn->actrate){
+ wn->txerror++;
+ if(wn->actrate != nil && wn->minrate != wn->actrate){
uchar *a, *p;
for(a = wn->minrate, p = wifi->rates; *p; p++){