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@xxxxxxx> --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-wpan" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html