diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-07-10 19:13:15 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-07-10 19:13:15 +0200 |
commit | 266057f0da23b5db7d8072fa4d9fad6fff5a7dc1 (patch) | |
tree | d17db94111c598b08763687941ede1bd562a8b4f | |
parent | 7cf2321ffbd4a524c559ec688b5f0f2c9949bce1 (diff) |
wifi: reflect current transmit rate in mbps
-rw-r--r-- | sys/src/9/pc/wifi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/pc/wifi.c b/sys/src/9/pc/wifi.c index 77d2deb96..a594df78b 100644 --- a/sys/src/9/pc/wifi.c +++ b/sys/src/9/pc/wifi.c @@ -702,7 +702,7 @@ Scan: 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){ |