commit b1c4a505b23fdbc08c36bd530e22ea4b3fe02ae8 parent 3a91efd3a8435c300930170cbfb942ade09ddb49 Author: James Prestwood <prestwoj@gmail.com> Date: Mon, 14 Feb 2022 12:34:37 -0800 hwsim: don't print on when send frame fails This happens quite often and spams the console with this error. Diffstat:
| M | tools/hwsim.c | | | 6 | +----- |
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/tools/hwsim.c b/tools/hwsim.c @@ -1336,11 +1336,7 @@ static void send_frame_callback(struct l_genl_msg *msg, void *user_data) { struct send_frame_info *info = user_data; - if (l_genl_msg_get_error(msg) < 0) - /* Radio address or frequency didn't match */ - l_debug("HWSIM_CMD_FRAME failed for destination %s", - util_address_to_string(info->radio->addrs[0])); - else { + if (l_genl_msg_get_error(msg) == 0) { info->frame->acked = true; info->frame->ack_radio = info->radio; }