Linux IEEE 802.15.4 and 6LoWPAN development
 help / color / mirror / Atom feed
* [PATCH wpan-tools] wpan-tools: convert tx power value
@ 2015-05-27  8:21 Varka Bhadram
  2015-05-27 10:41 ` Varka Bhadram
  0 siblings, 1 reply; 2+ messages in thread
From: Varka Bhadram @ 2015-05-27  8:21 UTC (permalink / raw)
  To: linux-wpan; +Cc: alex.aring, Varka Bhadram

This patch convert the tx power value from long to float to
support the IEEE-802.15.4 radio power setting values.

Signed-off-by: Varka Bhadram <varkab@cdac.in>
---
 src/phy.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/phy.c b/src/phy.c
index ee0e7ad..285801c 100644
--- a/src/phy.c
+++ b/src/phy.c
@@ -53,14 +53,14 @@ static int handle_tx_power_set(struct nl802154_state *state,
 			       int argc, char **argv,
 			       enum id_input id)
 {
-	long dbm;
+	float dbm;
 	char *end;
 
 	if (argc < 1)
 		return 1;
 
 	/* TX_POWER */
-	dbm = strtol(argv[0], &end, 10);
+	dbm = strtof(argv[0], &end);
 	if (*end != '\0')
 		return 1;
 
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH wpan-tools] wpan-tools: convert tx power value
  2015-05-27  8:21 [PATCH wpan-tools] wpan-tools: convert tx power value Varka Bhadram
@ 2015-05-27 10:41 ` Varka Bhadram
  0 siblings, 0 replies; 2+ messages in thread
From: Varka Bhadram @ 2015-05-27 10:41 UTC (permalink / raw)
  To: linux-wpan; +Cc: alex.aring, Varka Bhadram

On 05/27/2015 01:51 PM, Varka Bhadram wrote:

> This patch convert the tx power value from long to float to
> support the IEEE-802.15.4 radio power setting values.

I think here i need to fix (wpan-tools to phy) the commit message to which
this patch was targeting about.

I will do, and resend the patch.

-- 
Varka Bhadram


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-27 10:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-27  8:21 [PATCH wpan-tools] wpan-tools: convert tx power value Varka Bhadram
2015-05-27 10:41 ` Varka Bhadram

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox