Bluetooth: MGMT: Fix always using HCI_MAX_AD_LENGTH
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 6 Jul 2023 19:06:32 +0000 (12:06 -0700)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 11 Aug 2023 18:45:26 +0000 (11:45 -0700)
commit112b5090c21905531314fee41f691f0317bbf4f6
treed6ca4752c506af92fa284d84ce55084eb76b9426
parent6f55eea116ba3646fb5fbb31de703f8cf79d8214
Bluetooth: MGMT: Fix always using HCI_MAX_AD_LENGTH

HCI_MAX_AD_LENGTH shall only be used if the controller doesn't support
extended advertising, otherwise HCI_MAX_EXT_AD_LENGTH shall be used
instead.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_event.c
net/bluetooth/mgmt.c