Skip to content

Commit 1a0291f

Browse files
howardchunggVudentz
authored andcommitted
Bluetooth: mgmt: Fix MGMT add advmon with RSSI command
The MGMT command: MGMT_OP_ADD_ADV_PATTERNS_MONITOR_RSSI uses variable length argument. This causes host not able to register advmon with rssi. This patch has been locally tested by adding monitor with rssi via btmgmt on a kernel 6.1 machine. Reviewed-by: Archie Pusaka <[email protected]> Fixes: b338d91 ("Bluetooth: Implement support for Mesh") Signed-off-by: Howard Chung <[email protected]> Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent 1e9ac11 commit 1a0291f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

net/bluetooth/mgmt.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9357,7 +9357,8 @@ static const struct hci_mgmt_handler mgmt_handlers[] = {
93579357
{ add_ext_adv_data, MGMT_ADD_EXT_ADV_DATA_SIZE,
93589358
HCI_MGMT_VAR_LEN },
93599359
{ add_adv_patterns_monitor_rssi,
9360-
MGMT_ADD_ADV_PATTERNS_MONITOR_RSSI_SIZE },
9360+
MGMT_ADD_ADV_PATTERNS_MONITOR_RSSI_SIZE,
9361+
HCI_MGMT_VAR_LEN },
93619362
{ set_mesh, MGMT_SET_MESH_RECEIVER_SIZE,
93629363
HCI_MGMT_VAR_LEN },
93639364
{ mesh_features, MGMT_MESH_READ_FEATURES_SIZE },

0 commit comments

Comments
 (0)