Skip to contentSkip to conversation

iw: fix wifi wmm ie print function

PATCH Applied Yoni Divinsky 2 participants 2 messages Nov 16, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iw: fix wifi wmm ie print function

When printing the acm bit of the wifi wmm ie, the incorrect bit was being printed.

---
 scan.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
scan.c +1 -1
index bde2276..8b8407e 100644
@@ -740,7 +740,7 @@ static bool print_wifi_wmm_param(const uint8_t *data, uint8_t len)
 
 	for (i = 0; i < 4; i++) {
 		printf("\n\t\t * %s:", aci_tbl[(data[0] >> 5) & 3]);
-		if (data[4] & 0x10)
+		if (data[0] & 0x10)
 			printf(" acm");
 		printf(" CW %d-%d", (1 << (data[1] & 0xf)) - 1,
 				    (1 << (data[1] >> 4)) - 1);
Signature · 1 line
1.7.0.4
#1 lore raw
Quoted 2 lines · Yoni Divinsky

When printing the acm bit of the wifi wmm ie, the incorrect bit was being printed.

Applied.

johannes