From: Ashok Raj Nagarajan <arnagara@codeaurora.org>
To: Ben Greear <greearb@candelatech.com>
Cc: linux-wireless@vger.kernel.org, johannes@sipsolutions.net,
Ashok Raj Nagarajan <arnagara@qti.qualcomm.com>,
ath10k@lists.infradead.org
Subject: Re: [PATCH v2 2/2] mac80211: store tx power value from user to station
Date: Wed, 01 Feb 2017 22:59:09 +0530 [thread overview]
Message-ID: <7584a5235b49b7799a2c15f91fb03794@codeaurora.org> (raw)
In-Reply-To: <eff562d4-7dd8-4b5a-812c-58f4f690cde3@candelatech.com>
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-off-by: Ashok Raj Nagarajan <arnagara@qti.qualcomm.com>
>> ---
>> include/net/mac80211.h | 6 ++++++
>> net/mac80211/cfg.c | 7 +++++++
>> net/mac80211/driver-ops.c | 21 +++++++++++++++++++++
>> net/mac80211/driver-ops.h | 5 +++++
>> net/mac80211/trace.h | 27 +++++++++++++++++++++++++++
>> 5 files changed, 66 insertions(+)
>>
>> diff --git a/include/net/mac80211.h b/include/net/mac80211.h
>> index 5345d35..e059d5a 100644
>> --- a/include/net/mac80211.h
>> +++ b/include/net/mac80211.h
>> @@ -1777,6 +1777,8 @@ struct ieee80211_sta_rates {
>> * This is defined by the spec (IEEE 802.11-2012 section 8.3.2.2 NOTE
>> 2).
>> * @support_p2p_ps: indicates whether the STA supports P2P PS
>> mechanism or not.
>> * @max_rc_amsdu_len: Maximum A-MSDU size in bytes recommended by
>> rate control.
>> + * @txpwr: indicates the tx power, in dBm, to be used when sending
>> data frames
>> + * to the STA. Value of 0 means, automatic (default) tx power.
>
> Atheros NICs use 1/2 dBm increments internally, so maybe pass down mBm
> to the driver so you don't
> loose the granularity? (Other NICs may potentially have even finer
> control.)
>
ath10k firmware expects values to be in dBm and the calculations
regarding 1/2 dBm is taken care in firmware.
Thanks,
Ashok
> Thanks,
> Ben
_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k
WARNING: multiple messages have this Message-ID (diff)
From: Ashok Raj Nagarajan <arnagara@codeaurora.org>
To: Ben Greear <greearb@candelatech.com>
Cc: Ashok Raj Nagarajan <arnagara@qti.qualcomm.com>,
linux-wireless@vger.kernel.org, johannes@sipsolutions.net,
ath10k@lists.infradead.org
Subject: Re: [PATCH v2 2/2] mac80211: store tx power value from user to station
Date: Wed, 01 Feb 2017 22:59:09 +0530 [thread overview]
Message-ID: <7584a5235b49b7799a2c15f91fb03794@codeaurora.org> (raw)
In-Reply-To: <eff562d4-7dd8-4b5a-812c-58f4f690cde3@candelatech.com>
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-off-by: Ashok Raj Nagarajan <arnagara@qti.qualcomm.com>
>> ---
>> include/net/mac80211.h | 6 ++++++
>> net/mac80211/cfg.c | 7 +++++++
>> net/mac80211/driver-ops.c | 21 +++++++++++++++++++++
>> net/mac80211/driver-ops.h | 5 +++++
>> net/mac80211/trace.h | 27 +++++++++++++++++++++++++++
>> 5 files changed, 66 insertions(+)
>>
>> diff --git a/include/net/mac80211.h b/include/net/mac80211.h
>> index 5345d35..e059d5a 100644
>> --- a/include/net/mac80211.h
>> +++ b/include/net/mac80211.h
>> @@ -1777,6 +1777,8 @@ struct ieee80211_sta_rates {
>> * This is defined by the spec (IEEE 802.11-2012 section 8.3.2.2 NOTE
>> 2).
>> * @support_p2p_ps: indicates whether the STA supports P2P PS
>> mechanism or not.
>> * @max_rc_amsdu_len: Maximum A-MSDU size in bytes recommended by
>> rate control.
>> + * @txpwr: indicates the tx power, in dBm, to be used when sending
>> data frames
>> + * to the STA. Value of 0 means, automatic (default) tx power.
>
> Atheros NICs use 1/2 dBm increments internally, so maybe pass down mBm
> to the driver so you don't
> loose the granularity? (Other NICs may potentially have even finer
> control.)
>
ath10k firmware expects values to be in dBm and the calculations
regarding 1/2 dBm is taken care in firmware.
Thanks,
Ashok
> Thanks,
> Ben
next prev parent reply other threads:[~2017-02-01 17:29 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-31 18:41 [PATCH v2 1/2] cfg80211: Add support to set tx power for a station associated Ashok Raj Nagarajan
2017-01-31 18:41 ` Ashok Raj Nagarajan
2017-01-31 18:41 ` [PATCH v2 2/2] mac80211: store tx power value from user to station Ashok Raj Nagarajan
2017-01-31 18:41 ` Ashok Raj Nagarajan
2017-01-31 19:00 ` Ben Greear
2017-01-31 19:00 ` Ben Greear
2017-02-01 17:29 ` Ashok Raj Nagarajan [this message]
2017-02-01 17:29 ` Ashok Raj Nagarajan
2017-02-01 17:32 ` Ben Greear
2017-02-01 17:32 ` Ben Greear
2017-02-01 17:47 ` Ashok Raj Nagarajan
2017-02-01 17:47 ` Ashok Raj Nagarajan
2017-01-31 19:06 ` [PATCH v2 1/2] cfg80211: Add support to set tx power for a station associated Ben Greear
2017-01-31 19:06 ` Ben Greear
2017-02-01 17:27 ` Ashok Raj Nagarajan
2017-02-01 17:27 ` Ashok Raj Nagarajan
2017-02-01 17:36 ` Ben Greear
2017-02-01 17:36 ` Ben Greear
2017-02-01 17:57 ` Ashok Raj Nagarajan
2017-02-01 17:57 ` Ashok Raj Nagarajan
2017-02-01 18:08 ` Ben Greear
2017-02-01 18:08 ` Ben Greear
2017-02-06 14:38 ` Johannes Berg
2017-02-06 14:38 ` Johannes Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7584a5235b49b7799a2c15f91fb03794@codeaurora.org \
--to=arnagara@codeaurora.org \
--cc=arnagara@qti.qualcomm.com \
--cc=ath10k@lists.infradead.org \
--cc=greearb@candelatech.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.