Return-path: Received: from comal.ext.ti.com ([198.47.26.152]:40472 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751938AbcFTNAD (ORCPT ); Mon, 20 Jun 2016 09:00:03 -0400 From: Maxim Altshul To: , CC: , , , , , , , Maxim Altshul Subject: [PATCH 0/3] *** Mesh Path Selection Metric Calculation *** Date: Mon, 20 Jun 2016 16:00:19 +0300 Message-ID: <1466427622-5953-1-git-send-email-maxim.altshul@ti.com> (sfid-20160620_150124_024285_D9A1D09E) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-wireless-owner@vger.kernel.org List-ID: Hi All, This patch series focuses on metric calculation that occurs during the path selection phase of a mesh network. During the path selection phase, the mesh hwmp module performs metric calculations, that take as parameters the last TX rate that was used for a specific link, and the packet error rate. These parameters should be reported by the FW to the driver constantly for the mechanism to work properly. In case that a vendor offloads the rate control mechanism to the FW, these parameters will be rarely updated, or updated incorrectly. This situation causes the mesh hwmp module to calculate incorrect metrics and as a consequence, not to choose the best paths possible. This patch series is divided to three patches and does the following: 1. Modifies mesh hwmp module and allows vendors that offload the rate control mechanism to their FW, to report last TX rates and PER to the mesh hwmp module by using an existing op called get_expected_throughput. In case that a vendor does not implement the op, all previous functionality still applies. 2. Implements the opcode and the mechanism that reports the rates in TI driver. Maxim Altshul (3): wlcore/wl18xx: Add functionality to accept TX rate per link wlcore: Add support for get_expected_throughput opcode mac80211: mesh: Add support for HW RC implementation drivers/net/wireless/ti/wl18xx/main.c | 4 ++++ drivers/net/wireless/ti/wl18xx/tx.c | 22 ++++++++++++++++++---- drivers/net/wireless/ti/wl18xx/wl18xx.h | 6 +++++- drivers/net/wireless/ti/wlcore/main.c | 16 ++++++++++++++++ drivers/net/wireless/ti/wlcore/rx.c | 7 +++++++ drivers/net/wireless/ti/wlcore/wlcore_i.h | 13 +++++++++++++ net/mac80211/mesh_hwmp.c | 23 +++++++++++++++-------- 7 files changed, 78 insertions(+), 13 deletions(-) -- 2.7.2