Bluetooth: btrtl: Correct the length of the HCI command for drop fw
authorMax Chou <max.chou@realtek.com>
Tue, 30 May 2023 08:34:20 +0000 (16:34 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 11 Aug 2023 18:36:31 +0000 (11:36 -0700)
commit6b42f04e241732158592aac6241822cd6b4a7aae
tree9cda713626dd9d043a0bb57e07feb26c418afca5
parent7f74563e6140e42b4ffae62adbef7a65967a3f98
Bluetooth: btrtl: Correct the length of the HCI command for drop fw

The original code did not determine the length value of the HCI command
for drop fw even there's no parameter needed. In this commit, use struct
hci_command_hdr to manage opcode and length. It would be more regular and
more readable.

Suggested-by: Alex Lu <alex_lu@realsil.com.cn>
Signed-off-by: Max Chou <max.chou@realtek.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btrtl.c