btmgmt: Fix printing Set PHY Configuration command error
authorAyush Garg <ayush.garg@samsung.com>
Tue, 16 Mar 2021 10:57:38 +0000 (16:27 +0530)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:35 +0000 (19:08 +0530)
Error was printed as MGMT_OP_GET_PHY_CONFIGURATION instead of
MGMT_OP_SET_PHY_CONFIGURATION.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
tools/btmgmt.c

index 51a5143..3a64b78 100755 (executable)
@@ -4726,7 +4726,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);
        }
 }