Message ID | 20230316175301.v2.1.I9113bb4f444afc2c5cb19d1e96569e01ddbd8939@changeid (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [v2] Bluetooth: mgmt: Fix MGMT add advmon with RSSI command | expand |
Dear Yun-hao, Am 16.03.23 um 10:53 schrieb Howard Chung: > The MGMT command: MGMT_OP_ADD_ADV_PATTERNS_MONITOR_RSSI uses variable > length argumenent. This patch adds right the field. There is still the typo in argument. > Reviewed-by: Archie Pusaka <apusaka@chromium.org> > Fixes: b338d91703fa ("Bluetooth: Implement support for Mesh") > Signed-off-by: Howard Chung <howardchung@google.com> > --- > Hi upstream maintainers, > Host is not able to register advmon with rssi due to the bug. > This patch has been locally tested by adding monitor with rssi via > btmgmt on a kernel 6.1 machine. I would add that information to the commit message. […] Kind regards, Paul
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index 39589f864ea7..249dc6777fb4 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c @@ -9357,7 +9357,8 @@ static const struct hci_mgmt_handler mgmt_handlers[] = { { add_ext_adv_data, MGMT_ADD_EXT_ADV_DATA_SIZE, HCI_MGMT_VAR_LEN }, { add_adv_patterns_monitor_rssi, - MGMT_ADD_ADV_PATTERNS_MONITOR_RSSI_SIZE }, + MGMT_ADD_ADV_PATTERNS_MONITOR_RSSI_SIZE, + HCI_MGMT_VAR_LEN }, { set_mesh, MGMT_SET_MESH_RECEIVER_SIZE, HCI_MGMT_VAR_LEN }, { mesh_features, MGMT_MESH_READ_FEATURES_SIZE },