This patch adds support for dumping the current cca ed level value. Signed-off-by: Alexander Aring <alex.aring@xxxxxxxxx> --- src/info.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/info.c b/src/info.c index 79b101e..e8f5dda 100644 --- a/src/info.c +++ b/src/info.c @@ -94,6 +94,9 @@ static int print_phy_handler(struct nl_msg *msg, void *arg) printf("\n"); } + if (tb_msg[NL802154_ATTR_CCA_ED_LEVEL]) + printf("cca_ed_level: %.3g\n", MBM_TO_DBM(nla_get_s32(tb_msg[NL802154_ATTR_CCA_ED_LEVEL]))); + if (tb_msg[NL802154_ATTR_TX_POWER]) printf("tx_power: %.3g\n", MBM_TO_DBM(nla_get_s32(tb_msg[NL802154_ATTR_TX_POWER]))); -- 2.4.1 -- 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