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] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 18 Jul 2016 11:43:10 +0300
From:	Kalle Valo <kvalo@...eaurora.org>
To:	Maxim Altshul <maxim.altshul@...com>
Cc:	<linux-kernel@...r.kernel.org>, Eliad Peller <eliad@...ery.com>,
	Arik Nemtsov <arik@...ery.com>, Yaniv Machani <yanivma@...com>,
	<linux-wireless@...r.kernel.org>
Subject: Re: [PATCH 2/2 v4] wlcore: Add support for get_expected_throughput opcode

Maxim Altshul <maxim.altshul@...com> writes:

> Adding this opcode, allows the TI wireless driver,
> to report throughput directly from FW to mac80211.
>
> This is used mainly for mesh metric calculation.
>
> Signed-off-by: Maxim Altshul <maxim.altshul@...com>

[...]

> +static u32 wlcore_op_get_expected_throughput(struct ieee80211_sta *sta)
> +{
> +	struct wl1271_station *wl_sta = (struct wl1271_station *)sta->drv_priv;
> +	struct wl1271 *wl = wl_sta->wl;
> +	u8 hlid = wl_sta->hlid;
> +
> +	/* return in units of Kbps */
> +		return (wl->links[hlid].fw_rate_mbps * 1000);

The indentation looks wrong, but I can fix it before I apply the patch.

-- 
Kalle Valo

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ