linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] iw: fix ampdu spacing & max amsdu length reporting
@ 2010-06-26 22:51 Christian Lamparter
  2010-07-07 21:15 ` Luis R. Rodriguez
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Lamparter @ 2010-06-26 22:51 UTC (permalink / raw)
  To: linux-wireless; +Cc: Johannes Berg

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
---
diff --git a/scan.c b/scan.c
index 09b1047..cd58290 100644
--- a/scan.c
+++ b/scan.c
@@ -497,7 +497,7 @@ static void print_ht_capa(const uint8_t type, uint8_t len, const uint8_t *data)
 	printf("\n");
 	print_ht_capability(data[0] | (data[1] << 8));
 	print_ampdu_length(data[2] & 3);
-	print_ampdu_spacing((data[2] >> 2) & 3);
+	print_ampdu_spacing((data[2] >> 2) & 7);
 	print_ht_mcs(data + 3);
 }
 
diff --git a/util.c b/util.c
index 0c6d978..80d5402 100644
--- a/util.c
+++ b/util.c
@@ -457,8 +457,8 @@ void print_ht_capability(__u16 cap)
 
 	PRINT_HT_CAP((cap & BIT(10)), "HT Delayed Block Ack");
 
-	PRINT_HT_CAP((cap & BIT(11)), "Max AMSDU length: 3839 bytes");
-        PRINT_HT_CAP(!(cap & BIT(11)), "Max AMSDU length: 7935 bytes");
+	PRINT_HT_CAP(!(cap & BIT(11)), "Max AMSDU length: 3839 bytes");
+	PRINT_HT_CAP((cap & BIT(11)), "Max AMSDU length: 7935 bytes");
 
 	/*
 	 * For beacons and probe response this would mean the BSS

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

* Re: [PATCH] iw: fix ampdu spacing & max amsdu length reporting
  2010-06-26 22:51 [PATCH] iw: fix ampdu spacing & max amsdu length reporting Christian Lamparter
@ 2010-07-07 21:15 ` Luis R. Rodriguez
  0 siblings, 0 replies; 2+ messages in thread
From: Luis R. Rodriguez @ 2010-07-07 21:15 UTC (permalink / raw)
  To: Christian Lamparter; +Cc: linux-wireless, Johannes Berg

I know Johannes is on vacation, so just a reminder :)

On Sat, Jun 26, 2010 at 3:51 PM, Christian Lamparter
<chunkeey@googlemail.com> wrote:
> Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
> ---
> diff --git a/scan.c b/scan.c
> index 09b1047..cd58290 100644
> --- a/scan.c
> +++ b/scan.c
> @@ -497,7 +497,7 @@ static void print_ht_capa(const uint8_t type, uint8_t len, const uint8_t *data)
>        printf("\n");
>        print_ht_capability(data[0] | (data[1] << 8));
>        print_ampdu_length(data[2] & 3);
> -       print_ampdu_spacing((data[2] >> 2) & 3);
> +       print_ampdu_spacing((data[2] >> 2) & 7);
>        print_ht_mcs(data + 3);
>  }
>
> diff --git a/util.c b/util.c
> index 0c6d978..80d5402 100644
> --- a/util.c
> +++ b/util.c
> @@ -457,8 +457,8 @@ void print_ht_capability(__u16 cap)
>
>        PRINT_HT_CAP((cap & BIT(10)), "HT Delayed Block Ack");
>
> -       PRINT_HT_CAP((cap & BIT(11)), "Max AMSDU length: 3839 bytes");
> -        PRINT_HT_CAP(!(cap & BIT(11)), "Max AMSDU length: 7935 bytes");
> +       PRINT_HT_CAP(!(cap & BIT(11)), "Max AMSDU length: 3839 bytes");
> +       PRINT_HT_CAP((cap & BIT(11)), "Max AMSDU length: 7935 bytes");
>
>        /*
>         * For beacons and probe response this would mean the BSS
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

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

end of thread, other threads:[~2010-07-07 21:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-26 22:51 [PATCH] iw: fix ampdu spacing & max amsdu length reporting Christian Lamparter
2010-07-07 21:15 ` Luis R. Rodriguez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).