Linux IEEE 802.15.4 and 6LoWPAN development
 help / color / mirror / Atom feed
From: Varka Bhadram <varkab@cdac.in>
To: Marcel Holtmann <marcel@holtmann.org>,
	Varka Bhadram <varkabhadram@gmail.com>
Cc: linux-wpan@vger.kernel.org, alex.aring@gmail.com
Subject: Re: [PATCH bluetooth-next] mac802154: fix transmission power datatype
Date: Thu, 09 Apr 2015 13:11:01 +0530	[thread overview]
Message-ID: <55262D0D.8040403@cdac.in> (raw)
In-Reply-To: <0B968B37-EA54-47CE-B378-72D0B7CD8267@holtmann.org>

On 04/09/2015 12:58 PM, Marcel Holtmann wrote:
> Hi Varka,
>
>> Available 802.15.4 devices support multiple power levels,
>> which includes positive and negative values.This patch fix
>> set_txpower() operation arugument type to signed from int
>>
>> Signed-off-by: Varka Bhadram <varkab@cdac.in>
>> ---
>> include/net/mac802154.h |    2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/include/net/mac802154.h b/include/net/mac802154.h
>> index fb4e8a3d..1213419 100644
>> --- a/include/net/mac802154.h
>> +++ b/include/net/mac802154.h
>> @@ -213,7 +213,7 @@ struct ieee802154_ops {
>> 	int		(*set_hw_addr_filt)(struct ieee802154_hw *hw,
>> 					    struct ieee802154_hw_addr_filt *filt,
>> 					    unsigned long changed);
>> -	int		(*set_txpower)(struct ieee802154_hw *hw, int db);
>> +	int		(*set_txpower)(struct ieee802154_hw *hw, s8 dbm);
> the commit message is pretty much non-sense. int is as signed as s8.

The netlink attribute for the power level is s8. At mac level the values
stored in s8 only [1].

[1]: http://git.kernel.org/cgit/linux/kernel/git/bluetooth/bluetooth-next.git/tree/net/mac802154/driver-ops.h#n61

> Regards
>
> Marcel
>

-- 
Varka Bhadram


-------------------------------------------------------------------------------------------------------------------------------
[ C-DAC is on Social-Media too. Kindly follow us at:
Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ]

This e-mail is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. If you are not the
intended recipient, please contact the sender by reply e-mail and destroy
all copies and the original message. Any unauthorized review, use,
disclosure, dissemination, forwarding, printing or copying of this email
is strictly prohibited and appropriate legal action will be taken.
-------------------------------------------------------------------------------------------------------------------------------


  reply	other threads:[~2015-04-09  7:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-09  7:14 [PATCH bluetooth-next] mac802154: fix transmission power datatype Varka Bhadram
2015-04-09  7:28 ` Marcel Holtmann
2015-04-09  7:41   ` Varka Bhadram [this message]
2015-04-09  7:46     ` Marcel Holtmann
2015-04-09  8:16       ` Varka Bhadram

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=55262D0D.8040403@cdac.in \
    --to=varkab@cdac.in \
    --cc=alex.aring@gmail.com \
    --cc=linux-wpan@vger.kernel.org \
    --cc=marcel@holtmann.org \
    --cc=varkabhadram@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox