diff --git a/wireless/bluetooth/bt_hcicore.c b/wireless/bluetooth/bt_hcicore.c index a828e46a4a0..7e2a42d405f 100644 --- a/wireless/bluetooth/bt_hcicore.c +++ b/wireless/bluetooth/bt_hcicore.c @@ -1002,11 +1002,6 @@ static int hci_tx_kthread(int argc, FAR char *argv[]) g_btdev.ncmd = 0; - wlinfo("Sending command %04x buf %p to driver\n", - buf->u.hci.opcode, buf); - - btdev->send(btdev, buf); - /* Clear out any existing sent command */ if (g_btdev.sent_cmd) @@ -1017,6 +1012,11 @@ static int hci_tx_kthread(int argc, FAR char *argv[]) } g_btdev.sent_cmd = buf; + + wlinfo("Sending command %04x buf %p to driver\n", + buf->u.hci.opcode, buf); + + btdev->send(btdev, buf); } return EXIT_SUCCESS; /* Can't get here */