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>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
                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;
                cp.frag_pref = LE_SET_ADV_DATA_NO_FRAG;
                hdev->adv_data_len = len;
 
                cp.length = len;
-               cp.handle = 0;
+               cp.handle = instance;
                cp.operation = LE_SET_ADV_DATA_OP_COMPLETE;
                cp.frag_pref = LE_SET_ADV_DATA_NO_FRAG;
 
 
                memset(&cp, 0, sizeof(cp));
 
-               cp.handle = 0;
+               cp.handle = instance;
                bacpy(&cp.bdaddr, &random_addr);
 
                hci_req_add(req,