Search Linux Wireless

Re: [PATCH 2/2 v4] wlcore: Add support for get_expected_throughput opcode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Maxim Altshul <maxim.altshul@xxxxxx> 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@xxxxxx>

[...]

> +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
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux