shithub: riscv

Download patch

ref: 266057f0da23b5db7d8072fa4d9fad6fff5a7dc1
parent: 7cf2321ffbd4a524c559ec688b5f0f2c9949bce1
author: cinap_lenrek <[email protected]>
date: Fri Jul 10 15:13:15 EDT 2015

wifi: reflect current transmit rate in mbps

--- a/sys/src/9/pc/wifi.c
+++ b/sys/src/9/pc/wifi.c
@@ -702,7 +702,7 @@
 	tmout = 0;
 	while((wn = wifi->bss) != nil){
 		ether->link = (wn->status == Sassoc) || (wn->status == Sblocked);
-		if(ether->link && (rate = wn->maxrate) != nil)
+		if(ether->link && (rate = wn->actrate) != nil)
 			ether->mbps = ((*rate & 0x7f)+1)/2;
 		now = MACHP(0)->ticks;
 		if(wn->status != Sneedauth && TK2SEC(now - wn->lastseen) > 60 || goodbss(wifi, wn) == 0){