Search Linux Wireless

[PATCH] iw: fix wifi wmm ie print function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Yoni Divinsky <yoni.divinsky@xxxxxx>
---
 scan.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scan.c b/scan.c
index bde2276..8b8407e 100644
--- a/scan.c
+++ b/scan.c
@@ -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);
-- 
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux