[PATCH v3] iw: Add support for controlling tx power for per station

2017-02-08 Thread Ashok Raj Nagarajan
This patch allows userspace to set transmit power, in mBm units, to a station associated to the AP. To set a limit tx power of 2000 mBm: iw wlan0 station set txpwr limit 2000 To revert the user defined tx power for a station: iw wlan0 station set txpwr auto Signed-off-by: Ashok Raj Nagarajan

[PATCH v3] ath10k: add support for controlling tx power to a station

2017-02-08 Thread Ashok Raj Nagarajan
, it will revert to the automatic tx power for the station. Signed-off-by: Ashok Raj Nagarajan <arnag...@qti.qualcomm.com> --- v3: - reword commit log - remove range check for the input from user. (Ben Greear) drivers/net/wireless/ath/ath10k/mac.c | 31 +++ d

[PATCH v3 2/2] mac80211: store tx power value from user to station

2017-02-08 Thread Ashok Raj Nagarajan
This patch introduce a new driver callback drv_sta_set_txpwr. This API will copy the transmit power value passed from user space and call the driver callback to set the tx power for the station. Signed-off-by: Ashok Raj Nagarajan <arnag...@qti.qualcomm.com> --- v3: - Store txpwr

[PATCH v3 1/2] cfg80211: Add support to set tx power for a station associated

2017-02-08 Thread Ashok Raj Nagarajan
, with the level defined in mBm format. Signed-off-by: Ashok Raj Nagarajan <arnag...@qti.qualcomm.com> --- v2: - refactor the shared code - "keep what you had" using STATION_PARAM_APPLY_* BIT - feature flag to let the user know if this feature is supported o

Re: [PATCH v2 1/2] cfg80211: Add support to set tx power for a station associated

2017-02-01 Thread Ashok Raj Nagarajan
On 2017-02-01 23:06, Ben Greear wrote: On 02/01/2017 09:27 AM, Ashok Raj Nagarajan wrote: +static int nl80211_parse_sta_txpower_setting(struct genl_info *info, + struct station_parameters *params) +{ +struct cfg80211_registered_device *rdev = info->user_pt

Re: [PATCH v2 2/2] mac80211: store tx power value from user to station

2017-02-01 Thread Ashok Raj Nagarajan
On 2017-02-01 23:02, Ben Greear wrote: On 02/01/2017 09:29 AM, Ashok Raj Nagarajan wrote: On 2017-02-01 00:30, Ben Greear wrote: On 01/31/2017 10:41 AM, Ashok Raj Nagarajan wrote: This patch introduce a new driver callback drv_sta_set_txpwr. This API will copy the transmit power value passed

Re: [PATCH v2] ath10k: add support for controlling tx power to a station

2017-02-01 Thread Ashok Raj Nagarajan
On 2017-02-01 00:27, Ben Greear wrote: On 01/31/2017 10:42 AM, Ashok Raj Nagarajan wrote: This patch will add the support to control the transmit power for traffic to a station associated with the AP. Userspace provide the transmit power value in mBm units and the allowed range is from 0 to 70

Re: [PATCH v2 2/2] mac80211: store tx power value from user to station

2017-02-01 Thread Ashok Raj Nagarajan
On 2017-02-01 00:30, Ben Greear wrote: On 01/31/2017 10:41 AM, Ashok Raj Nagarajan wrote: This patch introduce a new driver callback drv_sta_set_txpwr. This API will copy the transmit power value passed from user space and call the driver callback to set the tx power for the station. Signed

Re: [PATCH v2 1/2] cfg80211: Add support to set tx power for a station associated

2017-02-01 Thread Ashok Raj Nagarajan
On 2017-02-01 00:36, Ben Greear wrote: On 01/31/2017 10:41 AM, Ashok Raj Nagarajan wrote: This patch adds support to set transmit power setting type and transmit power level attributes to NL80211_CMD_SET_STATION in order to facilitate adjusting the transmit power level of a station associated

[PATCH v2 2/2] mac80211: store tx power value from user to station

2017-01-31 Thread Ashok Raj Nagarajan
This patch introduce a new driver callback drv_sta_set_txpwr. This API will copy the transmit power value passed from user space and call the driver callback to set the tx power for the station. Signed-off-by: Ashok Raj Nagarajan <arnag...@qti.qualcomm.com> --- include/net/mac80211.h

[PATCH v2 1/2] cfg80211: Add support to set tx power for a station associated

2017-01-31 Thread Ashok Raj Nagarajan
, with the level defined in mBm format. Signed-off-by: Ashok Raj Nagarajan <arnag...@qti.qualcomm.com> --- v2: - refactor the shared code - "keep what you had" using STATION_PARAM_APPLY_* BIT - feature flag to let the user know if this feature is supported o

[PATCH v2] ath10k: add support for controlling tx power to a station

2017-01-31 Thread Ashok Raj Nagarajan
requirements. If the user given transmit power is greater than the allowed tx power in the given channel, then the FW will use the maximum tx power in the same channel. When 0 is sent to the FW as tx power, it will revert to the automatic tx power for the station. Signed-off-by: Ashok Raj Nagarajan

[PATCH] ath10k: fix reading sram contents for QCA4019

2017-01-31 Thread Ashok Raj Nagarajan
pointer pertaining to different chips. Signed-off-by: Ashok Raj Nagarajan <arnag...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/ahb.c | 23 drivers/net/wireless/ath/ath10k/pci.c | 51 ++- drivers/net/wireless/ath/ath10k/pci.h | 5 +

Re: [PATCH 1/2] cfg80211: Add support to set tx power for a station associated

2016-11-07 Thread Ashok Raj Nagarajan
On 2016-08-01 18:57, Ben Greear wrote: On 08/01/2016 02:29 AM, Johannes Berg wrote: Sure.. First use case will be to help with the problem of legacy client devices that roam across multiple APs. It is a classic enterprise Wi-Fi AP problem, often managed by a "network controller" unit that is

[PATCH] ath10k: fix reporting channel survey data

2016-09-01 Thread Ashok Raj Nagarajan
the correct and current survey information to userspace. Fixes: fa7937e3d5c2 ("ath10k: update bss channel survey information") Signed-off-by: Ashok Raj Nagarajan <arnag...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[PATCH] ath10k: fix sending frame in management path in push txq logic

2016-08-18 Thread Ashok Raj Nagarajan
escriptor limit handle under mgmt_tx" Signed-off-by: Ashok Raj Nagarajan <arnag...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/mac.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/at

[PATCH] ath10k: fix get rx_status from htt context

2016-07-26 Thread Ashok Raj Nagarajan
: 18235664e7f9 ("ath10k: cleanup amsdu processing for rx indication") Signed-off-by: Ashok Raj Nagarajan <arnag...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/htt_rx.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/wireless/ath/at

Re: [PATCH 1/2] cfg80211: Add support to set tx power for a station associated

2016-07-05 Thread Ashok Raj Nagarajan
On 2016-06-28 16:18, Johannes Berg wrote: On Tue, 2016-06-14 at 23:14 +0530, Ashok Raj Nagarajan wrote: This patch adds support to set transmit power setting type and transmit power level attributes to NL80211_CMD_SET_STATION in order to facilitate adjusting the transmit power level

[PATCH] ath10k: simplify pktlog htt event processing

2016-06-22 Thread Ashok Raj Nagarajan
the payload size calculation without the use of ath10k pktlog headers. While there, remove the unused ath10k pktlog headers. Signed-off-by: Ashok Raj Nagarajan <arnag...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/htt_rx.c | 8 +++- drivers/net/wireless/ath/ath10k/hw.h

[PATCH] iw: Add support for controlling tx power for per station

2016-06-14 Thread Ashok Raj Nagarajan
This patch allows userspace to set transmit power, in mBm units, to a station associated to the AP. To set a limit tx power of 2000 mBm: iw wlan0 station set txpwr limit 2000 To revert the user defined tx power for a station: iw wlan0 station set txpwr auto Signed-off-by: Ashok Raj Nagarajan

[PATCH 2/2] mac80211: store tx power value from user to station

2016-06-14 Thread Ashok Raj Nagarajan
This patch introduce a new driver callback drv_sta_set_txpwr. This API will copy the transmit power value passed from user space and call the driver callback to set the tx power for the station. Signed-off-by: Ashok Raj Nagarajan <arnag...@qti.qualcomm.com> --- include/net/mac80211.h

[PATCH 1/2] cfg80211: Add support to set tx power for a station associated

2016-06-14 Thread Ashok Raj Nagarajan
, with the level defined in mBm format. Signed-off-by: Ashok Raj Nagarajan <arnag...@qti.qualcomm.com> --- include/net/cfg80211.h | 5 include/uapi/linux/nl80211.h | 12 ++ net/wireless/nl80211.c | 54 3 files chang

[PATCH] ath10k: add support for controlling tx power to a station

2016-06-14 Thread Ashok Raj Nagarajan
requirements. If the user given transmit power is greater than the allowed tx power in the given channel, then the FW will use the maximum tx power in the same channel. When 0 is sent to the FW as tx power, it will revert to the automatic tx power for the station. Signed-off-by: Ashok Raj Nagarajan

[PATCH] ath10k: fix diag_read to collect data for larger memory

2016-05-25 Thread Ashok Raj Nagarajan
() to dma_alloc_coherent()') Signed-off-by: Ashok Raj Nagarajan <arnag...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/pci.c | 28 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/

[PATCH 1/2] ath10k: fix pktlog in QCA99X0

2016-02-05 Thread Ashok Raj Nagarajan
t;) Signed-off-by: Ashok Raj Nagarajan <arnag...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/htt_rx.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/htt_rx.c b/drivers/net/wireless/ath/ath10k/htt_rx.c index 3079434

[PATCH 2/2] ath10k: add hw_rev to trace events to support pktlog

2016-02-05 Thread Ashok Raj Nagarajan
to determine the firmware variant sending these trace events. So add hw_rev to trace events. Signed-off-by: Ashok Raj Nagarajan <arnag...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/trace.h | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/drive

Re: [PATCH v2 2/2] ath10k: allow user to toggle ani_enable via debugfs

2015-03-23 Thread Ashok Raj Nagarajan
On Fri, Mar 20, 2015 at 10:28:06AM +0100, Jose Antonio Delgado Alfonso wrote: Hi Ashok, Just a quick question, is it supported by all firmware versions? Yes Jose. It is supported by all firmware versions. Thanks, Ashok Thanks, Jose A. Delgado On 19/03/15 12:08, Ashok Raj Nagarajan

[PATCH 2/2] ath10k: allow user to toggle ani_enable via debugfs

2015-03-18 Thread Ashok Raj Nagarajan
Now that ANI is enabled by default, allow user to disable or enable ANI feature from debugfs Signed-off-by: Ashok Raj Nagarajan arnag...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/core.h | 1 + drivers/net/wireless/ath/ath10k/debug.c | 58 + drivers

[PATCH v2] iw: display allowable channel bandwidth information

2015-03-03 Thread Ashok Raj Nagarajan
-, HT40+, VHT80, VHT160) Signed-off-by: Ashok Raj Nagarajan arnag...@qti.qualcomm.com --- v2: Display channel bw information in separate line (Johannes) Updated commit log to reflect above change. info.c | 25 + 1 file changed, 25 insertions(+) diff --git

[PATCH] cfg80211: remove ht40allow_map debugfs entry

2015-02-16 Thread Ashok Raj Nagarajan
We provide these information to userspace. So let us print there Signed-off-by: Ashok Raj Nagarajan arnag...@qti.qualcomm.com --- net/wireless/debugfs.c | 63 -- 1 file changed, 63 deletions(-) diff --git a/net/wireless/debugfs.c b/net/wireless

[PATCH] iw: display allowable channel bandwidth information

2015-02-08 Thread Ashok Raj Nagarajan
Raj Nagarajan arnag...@qti.qualcomm.com --- info.c | 12 1 file changed, 12 insertions(+) diff --git a/info.c b/info.c index 6e21e45..84db716 100644 --- a/info.c +++ b/info.c @@ -173,6 +173,18 @@ static int print_phy_handler(struct nl_msg *msg, void *arg

[PATCH] cfg80211: add debugfs VHT80 allow map

2015-02-05 Thread Ashok Raj Nagarajan
5825 VHT80 Y Signed-off-by: Ashok Raj Nagarajan arnag...@qti.qualcomm.com --- net/wireless/debugfs.c | 61 1 file changed, 61 insertions(+) diff --git a/net/wireless/debugfs.c b/net/wireless/debugfs.c index 4541577..0349dcd 100644 --- a/net/wireless