summaryrefslogtreecommitdiff
path: root/sys/src/9/pc64
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2015-07-10 09:04:05 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2015-07-10 09:04:05 +0200
commitb5655b7247a657bd4b590218a68ed99bbab318f6 (patch)
treec1abbf0fb9b06ca100f857581d1254be5493d237 /sys/src/9/pc64
parent4ec93f94c92eec46433a962eb0f86b6f27909e6c (diff)
wifi: adjust transmit rate on error (for etheriwl), small mkfile changes
Wnode gets two new counters: txcount and txerror and actrate pointer that will be between minrate and maxrate. driver should use actrate instead of maxrate for transmission when it can provide error feedback. when a driver detects a transmission failed, it calls wifitxfail() with the original packet. wifitxfail() then reduces wn->actrate. every 256th packet, we optimistically increase wn->actrate before transmitting.
Diffstat (limited to 'sys/src/9/pc64')
-rw-r--r--sys/src/9/pc64/mkfile3
-rw-r--r--sys/src/9/pc64/pc642
2 files changed, 3 insertions, 2 deletions
diff --git a/sys/src/9/pc64/mkfile b/sys/src/9/pc64/mkfile
index 3027eaaa5..b9ab0efdd 100644
--- a/sys/src/9/pc64/mkfile
+++ b/sys/src/9/pc64/mkfile
@@ -86,7 +86,7 @@ install:V: $p$CONF
PCHEADERS=wifi.h usbehci.h screen.h etherif.h ethermii.h mp.h io.h ahci.h
REPCH=`{echo $PCHEADERS | sed 's/\.h//g; s/ /|/g'}
-^($REPCH)\.h:R: '../pc/\1.h'
+^($REPCH)\.h:R: ../pc/\1.h
cp $prereq .
REPCC=`{../port/mkfilelist ../pc}
@@ -122,6 +122,7 @@ usbehci.$O usbehcipc.$O: usbehci.h
trap.$O: /sys/include/tos.h
ethermii.$O: ethermii.h
etheriwl.$O: wifi.h
+etherwpi.$O: wifi.h
etherrt2860.$O: wifi.h
wifi.$O: wifi.h
diff --git a/sys/src/9/pc64/pc64 b/sys/src/9/pc64/pc64
index 67fae1818..3db977e06 100644
--- a/sys/src/9/pc64/pc64
+++ b/sys/src/9/pc64/pc64
@@ -69,7 +69,7 @@ link
# etherwavelan wavelan devi82365 cis pci
etheriwl pci wifi
etherwpi pci wifi
-# etherrt2860 pci wifi
+ etherrt2860 pci wifi
ethervirtio pci
ethermedium
# pcmciamodem