[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1466500699.3170.7.camel@sipsolutions.net>
Date: Tue, 21 Jun 2016 11:18:19 +0200
From: Johannes Berg <johannes@...solutions.net>
To: Maxim Altshul <maxim.altshul@...com>, kvalo@...eaurora.org
Cc: eliad@...ery.com, yanivma@...com, guym@...com, arik@...ery.com,
linux-wireless@...r.kernel.org, netdev@...r.kernel.org,
davem@...emloft.net
Subject: Re: [PATCH 3/3] mac80211: mesh: Add support for HW RC implementation
> - if (sta->mesh->fail_avg >= 100)
> - return MAX_METRIC;
> + /* try to get rate based on HW RC algorithm */
> + rate = drv_get_expected_throughput(local, &sta->sta);
This doesn't look correct, since you should use the rate control op if
available, to get data from rate control algorithms.
You should call sta_set_sinfo(), but that's far too much, so more
likely you should factor out the last few lines of that into a new
function and call that new function in both places.
johannes
Powered by blists - more mailing lists