&enable_cp);
}
+#ifndef CONFIG_TIZEN_WIP
static u8 get_cur_adv_instance_scan_rsp_len(struct hci_dev *hdev)
{
u8 instance = hdev->cur_adv_instance;
*/
return adv_instance->scan_rsp_len;
}
+#endif
void __hci_req_disable_advertising(struct hci_request *req)
{
cp.min_interval = cpu_to_le16(hdev->le_adv_min_interval);
cp.max_interval = cpu_to_le16(hdev->le_adv_max_interval);
+#ifdef CONFIG_TIZEN_WIP
+ /* User set the filter_polocy in advertisement on MGMT interface
+ * using set_advertising_params API but filter policy does not work
+ * as it was not set during ADV enable.
+ */
+ cp.filter_policy = hdev->adv_filter_policy;
+ cp.type = hdev->adv_type;
+#else
if (connectable)
cp.type = LE_ADV_IND;
else if (get_cur_adv_instance_scan_rsp_len(hdev))
cp.type = LE_ADV_SCAN_IND;
else
cp.type = LE_ADV_NONCONN_IND;
-
+#endif
cp.own_address_type = own_addr_type;
cp.channel_map = hdev->le_adv_channel_map;
-
hci_req_add(req, HCI_OP_LE_SET_ADV_PARAM, sizeof(cp), &cp);
hci_req_add(req, HCI_OP_LE_SET_ADV_ENABLE, sizeof(enable), &enable);