All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iw: fix wifi wmm ie print function
@ 2011-11-16 12:55 Yoni Divinsky
  2011-11-16 14:41 ` Johannes Berg
  0 siblings, 1 reply; 2+ messages in thread
From: Yoni Divinsky @ 2011-11-16 12:55 UTC (permalink / raw)
  To: linux-wireless; +Cc: Yoni Divinsky

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

Signed-off-by: Yoni Divinsky <yoni.divinsky@ti.com>
---
 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] iw: fix wifi wmm ie print function
  2011-11-16 12:55 [PATCH] iw: fix wifi wmm ie print function Yoni Divinsky
@ 2011-11-16 14:41 ` Johannes Berg
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2011-11-16 14:41 UTC (permalink / raw)
  To: Yoni Divinsky; +Cc: linux-wireless

On Wed, 2011-11-16 at 14:55 +0200, Yoni Divinsky wrote:
> When printing the acm bit of the wifi wmm ie, the incorrect bit
> was being printed.

Applied.

johannes


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-11-16 14:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-16 12:55 [PATCH] iw: fix wifi wmm ie print function Yoni Divinsky
2011-11-16 14:41 ` Johannes Berg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.