This patch change all set commands for phy settings to NL802154_CMD_SET_WPAN_PHY which is the new command. The decision which setting should be set is now determined which attribute is set. Signed-off-by: Alexander Aring <alex.aring@xxxxxxxxx> --- src/phy.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/phy.c b/src/phy.c index 2e25013..ff38a42 100644 --- a/src/phy.c +++ b/src/phy.c @@ -45,7 +45,7 @@ nla_put_failure: return -ENOBUFS; } COMMAND(set, channel, "<page> <channel>", - NL802154_CMD_SET_CHANNEL, 0, CIB_PHY, handle_channel_set, NULL); + NL802154_CMD_SET_WPAN_PHY, 0, CIB_PHY, handle_channel_set, NULL); static int handle_tx_power_set(struct nl802154_state *state, struct nl_cb *cb, @@ -72,7 +72,7 @@ nla_put_failure: return -ENOBUFS; } COMMAND(set, tx_power, "<dBm>", - NL802154_CMD_SET_TX_POWER, 0, CIB_PHY, handle_tx_power_set, NULL); + NL802154_CMD_SET_WPAN_PHY, 0, CIB_PHY, handle_tx_power_set, NULL); static int handle_cca_mode_set(struct nl802154_state *state, struct nl_cb *cb, @@ -113,7 +113,7 @@ nla_put_failure: return -ENOBUFS; } COMMAND(set, cca_mode, "<mode|3 <1|0>>", - NL802154_CMD_SET_CCA_MODE, 0, CIB_PHY, handle_cca_mode_set, NULL); + NL802154_CMD_SET_WPAN_PHY, 0, CIB_PHY, handle_cca_mode_set, NULL); static int handle_cca_ed_level(struct nl802154_state *state, struct nl_cb *cb, @@ -140,4 +140,4 @@ nla_put_failure: return -ENOBUFS; } COMMAND(set, cca_ed_level, "<level>", - NL802154_CMD_SET_CCA_ED_LEVEL, 0, CIB_PHY, handle_cca_ed_level, NULL); + NL802154_CMD_SET_WPAN_PHY, 0, CIB_PHY, handle_cca_ed_level, NULL); -- 2.3.3 -- 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