[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] 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 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] 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] 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/

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 v2 2/2] ath10k: allow user to toggle ani_enable via debugfs

2015-03-19 Thread Ashok Raj Nagarajan
Now that ANI is enabled by default, allow user to disable or enable ANI feature from debugfs echo 0|1 /sys/kernel/debug/ieee80211/phyX/ath10k/ani_enable Signed-off-by: Ashok Raj Nagarajan arnag...@qti.qualcomm.com --- v2: Updated commit log Lock ar-ani_enabled (Kalle Valo) remove reduntant