From acccac28dbb2b9a026756c4f5634a01065cbc784 Mon Sep 17 00:00:00 2001 From: Ayush Garg Date: Tue, 16 Mar 2021 16:27:38 +0530 Subject: [PATCH] btmgmt: Fix printing Set PHY Configuration command error Error was printed as MGMT_OP_GET_PHY_CONFIGURATION instead of MGMT_OP_SET_PHY_CONFIGURATION. --- tools/btmgmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/btmgmt.c b/tools/btmgmt.c index f4eb541fa..647c696f8 100644 --- a/tools/btmgmt.c +++ b/tools/btmgmt.c @@ -4725,7 +4725,7 @@ static void cmd_phy(int argc, char **argv) if (mgmt_send(mgmt, MGMT_OP_SET_PHY_CONFIGURATION, index, sizeof(cp), &cp, set_phy_rsp, NULL, NULL) == 0) { error("Unable to send %s cmd", - mgmt_opstr(MGMT_OP_GET_PHY_CONFIGURATION)); + mgmt_opstr(MGMT_OP_SET_PHY_CONFIGURATION)); return bt_shell_noninteractive_quit(EXIT_FAILURE); } } -- 2.47.3