lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20101124162435.GB7435@tuxdriver.com>
Date:	Wed, 24 Nov 2010 11:24:36 -0500
From:	"John W. Linville" <linville@...driver.com>
To:	Bruno Randolf <br1@...fach.org>
Cc:	randy.dunlap@...cle.com, br1@...nktube.com, peterz@...radead.org,
	blp@...stanford.edu, linux-wireless@...r.kernel.org,
	linux-kernel@...r.kernel.org, Lars_Ericsson@...ia.com,
	stefanr@...6.in-berlin.de, kosaki.motohiro@...fujitsu.com,
	akpm@...ux-foundation.org, kevin.granade@...il.com
Subject: Re: [PATCH v8 3/3] nl80211/mac80211: Report signal average

On Tue, Nov 16, 2010 at 10:58:48AM +0900, Bruno Randolf wrote:
> Extend nl80211 to report an exponential weighted moving average (EWMA) of the
> signal value. Since the signal value usually fluctuates between different
> packets, an average can be more useful than the value of the last packet.
> 
> This uses the recently added generic EWMA library function.
> 
> Signed-off-by: Bruno Randolf <br1@...fach.org>
> ---
>  include/linux/nl80211.h |    2 ++
>  include/net/cfg80211.h  |    4 ++++
>  net/mac80211/Kconfig    |    1 +
>  net/mac80211/cfg.c      |    3 ++-
>  net/mac80211/rx.c       |    1 +
>  net/mac80211/sta_info.c |    2 ++
>  net/mac80211/sta_info.h |    3 +++
>  net/wireless/nl80211.c  |    3 +++
>  8 files changed, 18 insertions(+), 1 deletions(-)
> 
> diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h
> index fb877b5..0ceb552 100644
> --- a/include/linux/nl80211.h
> +++ b/include/linux/nl80211.h
> @@ -1132,6 +1132,7 @@ enum nl80211_rate_info {
>   * @__NL80211_STA_INFO_AFTER_LAST: internal
>   * @NL80211_STA_INFO_MAX: highest possible station info attribute
>   * @NL80211_STA_INFO_SIGNAL: signal strength of last received PPDU (u8, dBm)
> + * @NL80211_STA_INFO_SIGNAL_AVG: signal strength average (u8, dBm)
>   * @NL80211_STA_INFO_TX_BITRATE: current unicast tx rate, nested attribute
>   * 	containing info as possible, see &enum nl80211_sta_info_txrate.
>   * @NL80211_STA_INFO_RX_PACKETS: total received packet (u32, from this station)
> @@ -1149,6 +1150,7 @@ enum nl80211_sta_info {
>  	NL80211_STA_INFO_PLID,
>  	NL80211_STA_INFO_PLINK_STATE,
>  	NL80211_STA_INFO_SIGNAL,
> +	NL80211_STA_INFO_SIGNAL_AVG,
>  	NL80211_STA_INFO_TX_BITRATE,
>  	NL80211_STA_INFO_RX_PACKETS,
>  	NL80211_STA_INFO_TX_PACKETS,

It's been pointed-out that this breaks kernel->userland ABI.

That could be fixed rather easily, but due to the performance concerns
I'm going to just revert this one for now.  Please correct the ABI
issue when submitting a new version that addresses the performance
concerns raised by Jouni.

John
-- 
John W. Linville		Someday the world will need a hero, and you
linville@...driver.com			might be all we have.  Be ready.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ