All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH wpan-tools 1/3] phy: fix cca ed level parameter parsing
@ 2015-05-27 10:25 Alexander Aring
  2015-05-27 10:25 ` [PATCH wpan-tools 2/3] info: fix tx power printout Alexander Aring
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Alexander Aring @ 2015-05-27 10:25 UTC (permalink / raw)
  To: linux-wpan; +Cc: kernel, Alexander Aring

This patch fix the parsing of cca ed level parameter which is now an
floating point dbm value.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
---
 src/phy.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/phy.c b/src/phy.c
index 285801c..8adffcc 100644
--- a/src/phy.c
+++ b/src/phy.c
@@ -121,14 +121,14 @@ static int handle_cca_ed_level(struct nl802154_state *state,
 			       int argc, char **argv,
 			       enum id_input id)
 {
-	long level;
+	float level;
 	char *end;
 
 	if (argc < 1)
 		return 1;
 
 	/* CCA_ED_LEVEL */
-	level = strtol(argv[0], &end, 10);
+	level = strtof(argv[0], &end);
 	if (*end != '\0')
 		return 1;
 
-- 
2.4.1


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

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

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-27 10:25 [PATCH wpan-tools 1/3] phy: fix cca ed level parameter parsing Alexander Aring
2015-05-27 10:25 ` [PATCH wpan-tools 2/3] info: fix tx power printout Alexander Aring
2015-05-27 10:33   ` Varka Bhadram
2015-05-27 10:25 ` [PATCH wpan-tools 3/3] info: add support for cca ed level info Alexander Aring
2015-05-27 10:35   ` Varka Bhadram
2015-05-27 10:33 ` [PATCH wpan-tools 1/3] phy: fix cca ed level parameter parsing Varka Bhadram

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.