linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5] iw: ack signal support for tx ack packets
@ 2018-07-19 14:29 Balaji Pothunoori
  2018-11-12 16:26 ` Balaji Pothunoori
  0 siblings, 1 reply; 4+ messages in thread
From: Balaji Pothunoori @ 2018-07-19 14:29 UTC (permalink / raw)
  To: johannes; +Cc: linux-wireless, Balaji Pothunoori

This patch is to display the average ack signal,
last ack signal of tx ack packets.

Signed-off-by: Balaji Pothunoori <bpothuno@codeaurora.org>
---
v5:
 * Rebased, No changes
v4:
 * Changed the subject
 * Added last ack signal support and renamed avg ack signal macro
v3:
 * Added version no
v2:
 * Removed nl80211.h changes and modified the commit log

 station.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/station.c b/station.c
index 38c5f91..fd38043 100644
--- a/station.c
+++ b/station.c
@@ -308,6 +308,8 @@ static int print_sta_handler(struct nl_msg *msg, void *arg)
 		[NL80211_STA_INFO_TID_STATS] = { .type = NLA_NESTED },
 		[NL80211_STA_INFO_BSS_PARAM] = { .type = NLA_NESTED },
 		[NL80211_STA_INFO_RX_DURATION] = { .type = NLA_U64 },
+		[NL80211_STA_INFO_ACK_SIGNAL] = {.type = NLA_U8 },
+		[NL80211_STA_INFO_ACK_SIGNAL_AVG] = { .type = NLA_U8 },
 	};
 	char *chain;
 
@@ -409,6 +411,14 @@ static int print_sta_handler(struct nl_msg *msg, void *arg)
 		printf("\n\trx duration:\t%lld us",
 		       (unsigned long long)nla_get_u64(sinfo[NL80211_STA_INFO_RX_DURATION]));
 
+	if (sinfo[NL80211_STA_INFO_ACK_SIGNAL])
+		printf("\n\tlast ack signal:%d dBm",
+			(int8_t)nla_get_u8(sinfo[NL80211_STA_INFO_ACK_SIGNAL]));
+
+	if (sinfo[NL80211_STA_INFO_ACK_SIGNAL_AVG])
+		printf("\n\tavg ack signal:\t%d dBm",
+			(int8_t)nla_get_u8(sinfo[NL80211_STA_INFO_ACK_SIGNAL_AVG]));
+
 	if (sinfo[NL80211_STA_INFO_EXPECTED_THROUGHPUT]) {
 		uint32_t thr;
 
-- 
2.7.4

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

* Re: [PATCH v5] iw: ack signal support for tx ack packets
  2018-07-19 14:29 [PATCH v5] iw: ack signal support for tx ack packets Balaji Pothunoori
@ 2018-11-12 16:26 ` Balaji Pothunoori
  2018-11-12 19:02   ` Johannes Berg
  0 siblings, 1 reply; 4+ messages in thread
From: Balaji Pothunoori @ 2018-11-12 16:26 UTC (permalink / raw)
  To: johannes; +Cc: linux-wireless

Hi Johannes,

Now that corresponding driver patches are merged, could you please let 
me know if anything is left from our end for merging this patch?

Regards,
Balaji.

On 2018-07-19 19:59, Balaji Pothunoori wrote:
> This patch is to display the average ack signal,
> last ack signal of tx ack packets.
> 
> Signed-off-by: Balaji Pothunoori <bpothuno@codeaurora.org>
> ---
> v5:
>  * Rebased, No changes
> v4:
>  * Changed the subject
>  * Added last ack signal support and renamed avg ack signal macro
> v3:
>  * Added version no
> v2:
>  * Removed nl80211.h changes and modified the commit log
> 
>  station.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/station.c b/station.c
> index 38c5f91..fd38043 100644
> --- a/station.c
> +++ b/station.c
> @@ -308,6 +308,8 @@ static int print_sta_handler(struct nl_msg *msg, 
> void *arg)
>  		[NL80211_STA_INFO_TID_STATS] = { .type = NLA_NESTED },
>  		[NL80211_STA_INFO_BSS_PARAM] = { .type = NLA_NESTED },
>  		[NL80211_STA_INFO_RX_DURATION] = { .type = NLA_U64 },
> +		[NL80211_STA_INFO_ACK_SIGNAL] = {.type = NLA_U8 },
> +		[NL80211_STA_INFO_ACK_SIGNAL_AVG] = { .type = NLA_U8 },
>  	};
>  	char *chain;
> 
> @@ -409,6 +411,14 @@ static int print_sta_handler(struct nl_msg *msg, 
> void *arg)
>  		printf("\n\trx duration:\t%lld us",
>  		       (unsigned long 
> long)nla_get_u64(sinfo[NL80211_STA_INFO_RX_DURATION]));
> 
> +	if (sinfo[NL80211_STA_INFO_ACK_SIGNAL])
> +		printf("\n\tlast ack signal:%d dBm",
> +			(int8_t)nla_get_u8(sinfo[NL80211_STA_INFO_ACK_SIGNAL]));
> +
> +	if (sinfo[NL80211_STA_INFO_ACK_SIGNAL_AVG])
> +		printf("\n\tavg ack signal:\t%d dBm",
> +			(int8_t)nla_get_u8(sinfo[NL80211_STA_INFO_ACK_SIGNAL_AVG]));
> +
>  	if (sinfo[NL80211_STA_INFO_EXPECTED_THROUGHPUT]) {
>  		uint32_t thr;

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

* Re: [PATCH v5] iw: ack signal support for tx ack packets
  2018-11-12 16:26 ` Balaji Pothunoori
@ 2018-11-12 19:02   ` Johannes Berg
  2018-11-14  5:57     ` Balaji Pothunoori
  0 siblings, 1 reply; 4+ messages in thread
From: Johannes Berg @ 2018-11-12 19:02 UTC (permalink / raw)
  To: Balaji Pothunoori; +Cc: linux-wireless

On Mon, 2018-11-12 at 21:56 +0530, Balaji Pothunoori wrote:
> Hi Johannes,
> 
> Now that corresponding driver patches are merged, could you please let 
> me know if anything is left from our end for merging this patch?

Oh, I marked this as "changes requested" since I thought the updates we
discussed on the kernel side would require changes here (IIRC we talked
about changing some names?)

If it applies and compiles as is, I guess best if you just resend, since
I no longer have it in patchwork and am on vacation this week.

johannes


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

* Re: [PATCH v5] iw: ack signal support for tx ack packets
  2018-11-12 19:02   ` Johannes Berg
@ 2018-11-14  5:57     ` Balaji Pothunoori
  0 siblings, 0 replies; 4+ messages in thread
From: Balaji Pothunoori @ 2018-11-14  5:57 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless

Hi Johannes,

Seems to be v5 patch is applied on "Jul 19 19:59:50 2018" but i couldn't 
get acknowledgement for it.

commit id "d227267148275c63041aca62f4da5d5f07354a82"

kindly ignore my earlier comments.

Regards,
Balaji.

On 2018-11-13 00:32, Johannes Berg wrote:
> On Mon, 2018-11-12 at 21:56 +0530, Balaji Pothunoori wrote:
>> Hi Johannes,
>> 
>> Now that corresponding driver patches are merged, could you please let
>> me know if anything is left from our end for merging this patch?
> 
> Oh, I marked this as "changes requested" since I thought the updates we
> discussed on the kernel side would require changes here (IIRC we talked
> about changing some names?)
> 
> If it applies and compiles as is, I guess best if you just resend, 
> since
> I no longer have it in patchwork and am on vacation this week.
> 
> johannes


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

end of thread, other threads:[~2018-11-14  5:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-19 14:29 [PATCH v5] iw: ack signal support for tx ack packets Balaji Pothunoori
2018-11-12 16:26 ` Balaji Pothunoori
2018-11-12 19:02   ` Johannes Berg
2018-11-14  5:57     ` Balaji Pothunoori

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).