[PATCH 2/2 v2] wlcore: Remove wl pointer from wl_sta structure

2016-08-15 Thread Maxim Altshul
as a parameter) Signed-off-by: Maxim Altshul <maxim.alts...@ti.com> --- Changed the commit message to better explain the changey drivers/net/wireless/ti/wlcore/main.c | 1 - drivers/net/wireless/ti/wlcore/wlcore_i.h | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/net/wireless/ti/

[PATCH 2/2 v2] wlcore: Remove wl pointer from wl_sta structure

2016-08-15 Thread Maxim Altshul
as a parameter) Signed-off-by: Maxim Altshul --- Changed the commit message to better explain the changey drivers/net/wireless/ti/wlcore/main.c | 1 - drivers/net/wireless/ti/wlcore/wlcore_i.h | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net

[PATCH 2/2] wlcore: Remove wl pointer from wl_sta structure

2016-08-04 Thread Maxim Altshul
No longer needed due to get_expected_throughput op change Signed-off-by: Maxim Altshul <maxim.alts...@ti.com> --- drivers/net/wireless/ti/wlcore/main.c | 1 - drivers/net/wireless/ti/wlcore/wlcore_i.h | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/net/wireless/ti/wlcore/

[PATCH 2/2] wlcore: Remove wl pointer from wl_sta structure

2016-08-04 Thread Maxim Altshul
No longer needed due to get_expected_throughput op change Signed-off-by: Maxim Altshul --- drivers/net/wireless/ti/wlcore/main.c | 1 - drivers/net/wireless/ti/wlcore/wlcore_i.h | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net

[PATCH 1/2] mac80211/wlcore: Add ieee80211_hw variable to get_expected_throughput

2016-08-04 Thread Maxim Altshul
- The variable is added to allow the driver an easy access to it's own hw->priv when the op is invoked. - Change wlcore op accordingly. Signed-off-by: Maxim Altshul <maxim.alts...@ti.com> --- drivers/net/wireless/ti/wlcore/main.c | 5 +++-- include/net/mac80211.h| 3

[PATCH 1/2] mac80211/wlcore: Add ieee80211_hw variable to get_expected_throughput

2016-08-04 Thread Maxim Altshul
- The variable is added to allow the driver an easy access to it's own hw->priv when the op is invoked. - Change wlcore op accordingly. Signed-off-by: Maxim Altshul --- drivers/net/wireless/ti/wlcore/main.c | 5 +++-- include/net/mac80211.h| 3 ++- net/mac80211/driver-op

[PATCH 0/2] get_expected_throughput interface update

2016-08-04 Thread Maxim Altshul
These two patches are two important patches (mainly 1/2) that solve a regression issue that was found in wlcore (where wl was found to be null in some cases) Also, they make it easier for driver to get hw->priv when op is invoked. Maxim Altshul (2): mac80211/wlcore: Add ieee80211_hw varia

[PATCH 0/2] get_expected_throughput interface update

2016-08-04 Thread Maxim Altshul
These two patches are two important patches (mainly 1/2) that solve a regression issue that was found in wlcore (where wl was found to be null in some cases) Also, they make it easier for driver to get hw->priv when op is invoked. Maxim Altshul (2): mac80211/wlcore: Add ieee80211_hw varia

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

2016-07-11 Thread Maxim Altshul
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.alts...@ti.com> --- drivers/net/wireless/ti/wlcore/main.c | 11 +++ 1 file changed, 11 inse

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

2016-07-11 Thread Maxim Altshul
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 --- drivers/net/wireless/ti/wlcore/main.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers

[PATCH 1/2 v4] wlcore/wl18xx: Add functionality to accept TX rate per link

2016-07-11 Thread Maxim Altshul
FW will provide a TX rate per link for each FW status, and wlcore will be able to store the information for the use of the mesh hwmp module. This is used mainly in mesh. Rates are reported when a mesh interface is up. Signed-off-by: Maxim Altshul <maxim.alts...@ti.com> --- Send both p

[PATCH 1/2 v4] wlcore/wl18xx: Add functionality to accept TX rate per link

2016-07-11 Thread Maxim Altshul
FW will provide a TX rate per link for each FW status, and wlcore will be able to store the information for the use of the mesh hwmp module. This is used mainly in mesh. Rates are reported when a mesh interface is up. Signed-off-by: Maxim Altshul --- Send both patches + fixes for reduntant null

[PATCH v3] mac80211: mesh: Add support for HW RC implementation

2016-07-11 Thread Maxim Altshul
-off-by: Maxim Altshul <maxim.alts...@ti.com> --- 1. Added DIV_ROUND_UP to protect from rate < 100Kbps 2. Removed redudant initialization net/mac80211/mesh_hwmp.c | 27 +++ net/mac80211/sta_info.c | 23 +++ net/mac80211/sta_info.h | 2 ++

[PATCH v3] mac80211: mesh: Add support for HW RC implementation

2016-07-11 Thread Maxim Altshul
-off-by: Maxim Altshul --- 1. Added DIV_ROUND_UP to protect from rate < 100Kbps 2. Removed redudant initialization net/mac80211/mesh_hwmp.c | 27 +++ net/mac80211/sta_info.c | 23 +++ net/mac80211/sta_info.h | 2 ++ 3 files changed, 40 inserti

[PATCH v3] wlcore: Add support for get_expected_throughput opcode

2016-06-30 Thread Maxim Altshul
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.alts...@ti.com> --- Removed ret and NULL test. drivers/net/wireless/ti/wlcore/main.c | 11

[PATCH v3] wlcore: Add support for get_expected_throughput opcode

2016-06-30 Thread Maxim Altshul
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 --- Removed ret and NULL test. drivers/net/wireless/ti/wlcore/main.c | 11 +++ 1 file changed, 11

[PATCH v2] mac80211: mesh: Add support for HW RC implementation

2016-06-30 Thread Maxim Altshul
-off-by: Maxim Altshul <maxim.alts...@ti.com> --- Changed the function to return u32, I agree that this is much clearer. As for the rate, two things: 1. I had to divide the returned value by 100, since drv_get_expected_throughput returns values in units of Kbps. On the contrary, the fu

[PATCH v2] mac80211: mesh: Add support for HW RC implementation

2016-06-30 Thread Maxim Altshul
-off-by: Maxim Altshul --- Changed the function to return u32, I agree that this is much clearer. As for the rate, two things: 1. I had to divide the returned value by 100, since drv_get_expected_throughput returns values in units of Kbps. On the contrary, the function cfg80211_calculate_bitrate

[PATCH v2] wlcore: Add support for get_expected_throughput opcode

2016-06-30 Thread Maxim Altshul
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.alts...@ti.com> --- Changed the units of returned value. drv_get_expected_throughput returns units o

[PATCH v2] wlcore: Add support for get_expected_throughput opcode

2016-06-30 Thread Maxim Altshul
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 --- Changed the units of returned value. drv_get_expected_throughput returns units of Kbps by definition, and thus

[PATCH v2] mac80211: mesh: Add support for HW RC implementation

2016-06-23 Thread Maxim Altshul
-off-by: Maxim Altshul <maxim.alts...@ti.com> --- Changed previous implementation according to Johannes's comment. Combined the RC test and throughput assignment to a sta_get_expected_throughput function. Using the function both from airtime_link_metric and from sta_set_sinfo. net/ma

[PATCH v2] mac80211: mesh: Add support for HW RC implementation

2016-06-23 Thread Maxim Altshul
-off-by: Maxim Altshul --- Changed previous implementation according to Johannes's comment. Combined the RC test and throughput assignment to a sta_get_expected_throughput function. Using the function both from airtime_link_metric and from sta_set_sinfo. net/mac80211/mesh_hwmp.c | 22