Bluetooth: hci_core: Fix missing instances using HCI_MAX_AD_LENGTH
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 18 Aug 2023 21:19:27 +0000 (14:19 -0700)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 24 Aug 2023 19:22:05 +0000 (12:22 -0700)
commitdb08722fc7d46168fe31d9b8a7b29229dd959f9f
treeb4aa9f8dd1a71e4c93caab34bcd78b8092490e8b
parentfbdc4bc47268953c80853489f696e02d61f9a2c6
Bluetooth: hci_core: Fix missing instances using HCI_MAX_AD_LENGTH

There a few instances still using HCI_MAX_AD_LENGTH instead of using
max_adv_len which takes care of detecting what is the actual maximum
length depending on if the controller supports EA or not.

Fixes: 112b5090c219 ("Bluetooth: MGMT: Fix always using HCI_MAX_AD_LENGTH")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
include/net/bluetooth/hci_core.h
net/bluetooth/eir.c
net/bluetooth/mgmt.c