Lines Matching refs:set_param
219 struct bt_hci_cp_le_set_ext_scan_param *set_param; in start_le_scan_ext() local
245 sizeof(*set_param) + in start_le_scan_ext()
252 set_param = net_buf_add(buf, sizeof(*set_param)); in start_le_scan_ext()
253 set_param->own_addr_type = own_addr_type; in start_le_scan_ext()
254 set_param->phys = 0; in start_le_scan_ext()
255 set_param->filter_policy = scan_param->options & BT_LE_SCAN_OPT_FILTER_ACCEPT_LIST in start_le_scan_ext()
260 set_param->phys |= BT_HCI_LE_EXT_SCAN_PHY_1M; in start_le_scan_ext()
265 set_param->phys |= BT_HCI_LE_EXT_SCAN_PHY_CODED; in start_le_scan_ext()
286 struct bt_hci_cp_le_set_scan_param set_param; in start_le_scan_legacy() local
291 (void)memset(&set_param, 0, sizeof(set_param)); in start_le_scan_legacy()
293 set_param.scan_type = param->type; in start_le_scan_legacy()
298 set_param.interval = sys_cpu_to_le16(param->interval); in start_le_scan_legacy()
299 set_param.window = sys_cpu_to_le16(param->window); in start_le_scan_legacy()
303 set_param.filter_policy = BT_HCI_LE_SCAN_FP_BASIC_FILTER; in start_le_scan_legacy()
305 set_param.filter_policy = BT_HCI_LE_SCAN_FP_BASIC_NO_FILTER; in start_le_scan_legacy()
309 err = bt_id_set_scan_own_addr(active_scan, &set_param.addr_type); in start_le_scan_legacy()
314 buf = bt_hci_cmd_create(BT_HCI_OP_LE_SET_SCAN_PARAM, sizeof(set_param)); in start_le_scan_legacy()
319 net_buf_add_mem(buf, &set_param, sizeof(set_param)); in start_le_scan_legacy()