shithub: riscv

Download patch

ref: 49825fa795e89256383795a60cc365d4e4ede420
parent: 3b87d6114dceccd0a5cee998ab6d6cc393de1ef2
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Apr 21 01:22:17 EDT 2014

etheriwl: set msb for all rates

the 802.11 spec only specifies the msb of the rate for
Beacon, Probe Response, Association Response, Reassociation Response,
Mesh Peering Open, and Mesh Peering Confirm management frames
...
The MSB of each Supported Rate octet in other
management frame types is ignored by receiving STAs.

this should make no difference but on some netgear ap's not
setting this bit seems to ignore these data rates.

--- a/sys/src/9/pc/etheriwl.c
+++ b/sys/src/9/pc/etheriwl.c
@@ -1818,15 +1818,15 @@
 	0x80 | 4,
 	0x80 | 11,
 	0x80 | 22,
-	12,
-	18,
-	24,
-	36,
-	48,
-	72,
-	96,
-	108,
-	120,
+	0x80 | 12,
+	0x80 | 18,
+	0x80 | 24,
+	0x80 | 36,
+	0x80 | 48,
+	0x80 | 72,
+	0x80 | 96,
+	0x80 | 108,
+	0x80 | 120,
 
 	0
 };