Message ID | 35e52a8c25411e799a5ffece3e51c290c7dfb967.camel@linux.intel.com (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Marcel Holtmann |
Headers | show |
Series | Bluetooth: Fix advertising handle is set to 0 | expand |
Hi Tedd, > This patch fix the advertising handle is set to 0 regardless of actual > instance value. The affected commands are LE Set Advertising Set Random > Address, LE Set Extended Advertising Data, and LE Set Extended Scan > Response Data commands. > > Signed-off-by: Tedd Ho-Jeong An <tedd.an@intel.com> > > --- > net/bluetooth/hci_request.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) seems the patch does not cleanly apply to bluetooth-next. Please update as needed. Regards Marcel
diff --git a/net/bluetooth/hci_request.c b/net/bluetooth/hci_request.c index 9ea40106ef17..3f470f0e432c 100644 --- a/net/bluetooth/hci_request.c +++ b/net/bluetooth/hci_request.c @@ -1447,7 +1447,7 @@ void __hci_req_update_scan_rsp_data(struct hci_request *req, u8 instance) memcpy(hdev->scan_rsp_data, cp.data, sizeof(cp.data)); hdev->scan_rsp_data_len = len; - cp.handle = 0; + cp.handle = instance; cp.length = len; cp.operation = LE_SET_ADV_DATA_OP_COMPLETE;