• Home
  • Raw
  • Download

Lines Matching refs:params

459 static void iwl_scan_build_ssids(struct iwl_mvm_scan_params *params,  in iwl_scan_build_ssids()  argument
472 for (i = 0, j = params->n_match_sets - 1; in iwl_scan_build_ssids()
476 if (!params->match_sets[j].ssid.ssid_len) in iwl_scan_build_ssids()
479 ssids[i].len = params->match_sets[j].ssid.ssid_len; in iwl_scan_build_ssids()
480 memcpy(ssids[i].ssid, params->match_sets[j].ssid.ssid, in iwl_scan_build_ssids()
485 for (j = params->n_ssids - 1; in iwl_scan_build_ssids()
488 index = iwl_ssid_exist(params->ssids[j].ssid, in iwl_scan_build_ssids()
489 params->ssids[j].ssid_len, in iwl_scan_build_ssids()
493 ssids[i].len = params->ssids[j].ssid_len; in iwl_scan_build_ssids()
494 memcpy(ssids[i].ssid, params->ssids[j].ssid, in iwl_scan_build_ssids()
740 struct iwl_mvm_scan_params *params) in iwl_mvm_build_scan_probe() argument
742 struct ieee80211_mgmt *frame = (void *)params->preq.buf; in iwl_mvm_build_scan_probe()
744 const u8 *mac_addr = params->flags & NL80211_SCAN_FLAG_RANDOM_ADDR ? in iwl_mvm_build_scan_probe()
745 params->mac_addr : NULL; in iwl_mvm_build_scan_probe()
755 params->mac_addr_mask); in iwl_mvm_build_scan_probe()
768 params->preq.mac_header.offset = 0; in iwl_mvm_build_scan_probe()
769 params->preq.mac_header.len = cpu_to_le16(24 + 2); in iwl_mvm_build_scan_probe()
776 params->preq.band_data[0].offset = cpu_to_le16(pos - params->preq.buf); in iwl_mvm_build_scan_probe()
777 params->preq.band_data[0].len = cpu_to_le16(newpos - pos); in iwl_mvm_build_scan_probe()
782 params->preq.band_data[1].offset = cpu_to_le16(pos - params->preq.buf); in iwl_mvm_build_scan_probe()
783 params->preq.band_data[1].len = in iwl_mvm_build_scan_probe()
789 params->preq.band_data[2].offset = cpu_to_le16(pos - params->preq.buf); in iwl_mvm_build_scan_probe()
790 params->preq.band_data[2].len = in iwl_mvm_build_scan_probe()
794 params->preq.common_data.offset = cpu_to_le16(pos - params->preq.buf); in iwl_mvm_build_scan_probe()
800 params->preq.common_data.len = cpu_to_le16(ies->common_ie_len + in iwl_mvm_build_scan_probe()
803 params->preq.common_data.len = cpu_to_le16(ies->common_ie_len); in iwl_mvm_build_scan_probe()
809 struct iwl_mvm_scan_params *params) in iwl_mvm_scan_lmac_dwell() argument
815 cmd->max_out_time = cpu_to_le32(scan_timing[params->type].max_out_time); in iwl_mvm_scan_lmac_dwell()
816 cmd->suspend_time = cpu_to_le32(scan_timing[params->type].suspend_time); in iwl_mvm_scan_lmac_dwell()
857 static inline bool iwl_mvm_is_regular_scan(struct iwl_mvm_scan_params *params) in iwl_mvm_is_regular_scan() argument
859 return params->n_scan_plans == 1 && in iwl_mvm_is_regular_scan()
860 params->scan_plans[0].iterations == 1; in iwl_mvm_is_regular_scan()
870 struct iwl_mvm_scan_params *params, in iwl_mvm_scan_lmac_flags() argument
875 if (params->n_ssids == 0) in iwl_mvm_scan_lmac_flags()
878 if (params->n_ssids == 1 && params->ssids[0].ssid_len != 0) in iwl_mvm_scan_lmac_flags()
881 if (iwl_mvm_is_scan_fragmented(params->type)) in iwl_mvm_scan_lmac_flags()
889 if (params->pass_all) in iwl_mvm_scan_lmac_flags()
902 if (iwl_mvm_is_regular_scan(params) && in iwl_mvm_scan_lmac_flags()
904 !iwl_mvm_is_scan_fragmented(params->type)) in iwl_mvm_scan_lmac_flags()
924 struct iwl_mvm_scan_params *params) in iwl_mvm_scan_lmac() argument
934 if (WARN_ON(params->n_scan_plans > IWL_MAX_SCHED_SCAN_PLANS)) in iwl_mvm_scan_lmac()
937 iwl_mvm_scan_lmac_dwell(mvm, cmd, params); in iwl_mvm_scan_lmac()
941 cmd->n_channels = (u8)params->n_channels; in iwl_mvm_scan_lmac()
943 cmd->delay = cpu_to_le32(params->delay); in iwl_mvm_scan_lmac()
945 cmd->scan_flags = cpu_to_le32(iwl_mvm_scan_lmac_flags(mvm, params, in iwl_mvm_scan_lmac()
948 band = iwl_mvm_phy_band_from_nl80211(params->channels[0]->band); in iwl_mvm_scan_lmac()
952 iwl_mvm_scan_fill_tx_cmd(mvm, cmd->tx_cmd, params->no_cck); in iwl_mvm_scan_lmac()
953 iwl_scan_build_ssids(params, cmd->direct_scan, &ssid_bitmap); in iwl_mvm_scan_lmac()
958 for (i = 0; i < params->n_scan_plans; i++) { in iwl_mvm_scan_lmac()
960 &params->scan_plans[i]; in iwl_mvm_scan_lmac()
992 iwl_mvm_lmac_scan_cfg_channels(mvm, params->channels, in iwl_mvm_scan_lmac()
993 params->n_channels, ssid_bitmap, cmd); in iwl_mvm_scan_lmac()
995 iwl_mvm_scan_set_legacy_probe_req(preq, &params->preq); in iwl_mvm_scan_lmac()
1278 struct iwl_mvm_scan_params *params) in iwl_mvm_scan_umac_dwell() argument
1283 timing = &scan_timing[params->type]; in iwl_mvm_scan_umac_dwell()
1301 else if (params->ssids && params->ssids[0].ssid_len) in iwl_mvm_scan_umac_dwell()
1315 hb_timing = &scan_timing[params->hb_type]; in iwl_mvm_scan_umac_dwell()
1344 hb_timing = &scan_timing[params->hb_type]; in iwl_mvm_scan_umac_dwell()
1369 if (iwl_mvm_is_regular_scan(params)) in iwl_mvm_scan_umac_dwell()
1375 static u32 iwl_mvm_scan_umac_ooc_priority(struct iwl_mvm_scan_params *params) in iwl_mvm_scan_umac_ooc_priority() argument
1377 return iwl_mvm_is_regular_scan(params) ? in iwl_mvm_scan_umac_ooc_priority()
1385 struct iwl_mvm_scan_params *params) in iwl_mvm_scan_umac_dwell_v11() argument
1390 timing = &scan_timing[params->type]; in iwl_mvm_scan_umac_dwell_v11()
1403 else if (params->ssids && params->ssids[0].ssid_len) in iwl_mvm_scan_umac_dwell_v11()
1416 hb_timing = &scan_timing[params->hb_type]; in iwl_mvm_scan_umac_dwell_v11()
1651 struct iwl_mvm_scan_params *params, in iwl_mvm_umac_scan_fill_6g_chan_list() argument
1656 params->scan_6ghz_params; in iwl_mvm_umac_scan_fill_6g_chan_list()
1660 for (j = 0; j < params->n_ssids && idex_s < SCAN_SHORT_SSID_MAX_SIZE; in iwl_mvm_umac_scan_fill_6g_chan_list()
1662 if (!params->ssids[j].ssid_len) in iwl_mvm_umac_scan_fill_6g_chan_list()
1666 cpu_to_le32(~crc32_le(~0, params->ssids[j].ssid, in iwl_mvm_umac_scan_fill_6g_chan_list()
1667 params->ssids[j].ssid_len)); in iwl_mvm_umac_scan_fill_6g_chan_list()
1671 pp->direct_scan[idex_s].len = params->ssids[j].ssid_len; in iwl_mvm_umac_scan_fill_6g_chan_list()
1672 memcpy(pp->direct_scan[idex_s].ssid, params->ssids[j].ssid, in iwl_mvm_umac_scan_fill_6g_chan_list()
1673 params->ssids[j].ssid_len); in iwl_mvm_umac_scan_fill_6g_chan_list()
1686 for (j = 0; j < params->n_6ghz_params; j++) { in iwl_mvm_umac_scan_fill_6g_chan_list()
1723 struct iwl_mvm_scan_params *params, in iwl_mvm_umac_scan_cfg_channels_v6_6g() argument
1731 params->scan_6ghz_params; in iwl_mvm_umac_scan_cfg_channels_v6_6g()
1734 for (i = 0, ch_cnt = 0; i < params->n_channels; i++) { in iwl_mvm_umac_scan_cfg_channels_v6_6g()
1748 if (!cfg80211_channel_is_psc(params->channels[i]) && in iwl_mvm_umac_scan_cfg_channels_v6_6g()
1749 !params->n_6ghz_params && params->n_ssids) in iwl_mvm_umac_scan_cfg_channels_v6_6g()
1752 cfg->v1.channel_num = params->channels[i]->hw_value; in iwl_mvm_umac_scan_cfg_channels_v6_6g()
1765 for (j = 0; j < params->n_6ghz_params; j++) { in iwl_mvm_umac_scan_cfg_channels_v6_6g()
1824 if (cfg80211_channel_is_psc(params->channels[i]) && in iwl_mvm_umac_scan_cfg_channels_v6_6g()
1848 if (!iwl_mvm_is_scan_fragmented(params->type)) { in iwl_mvm_umac_scan_cfg_channels_v6_6g()
1849 if (!cfg80211_channel_is_psc(params->channels[i]) || in iwl_mvm_umac_scan_cfg_channels_v6_6g()
1857 } else if (cfg80211_channel_is_psc(params->channels[i])) { in iwl_mvm_umac_scan_cfg_channels_v6_6g()
1866 !cfg80211_channel_is_psc(params->channels[i]))) in iwl_mvm_umac_scan_cfg_channels_v6_6g()
1875 if (params->n_channels > ch_cnt) in iwl_mvm_umac_scan_cfg_channels_v6_6g()
1878 params->n_channels, ch_cnt); in iwl_mvm_umac_scan_cfg_channels_v6_6g()
1884 struct iwl_mvm_scan_params *params, in iwl_mvm_scan_umac_chan_flags_v2() argument
1898 iwl_mvm_is_scan_fragmented(params->type)) || in iwl_mvm_scan_umac_chan_flags_v2()
1900 iwl_mvm_is_scan_fragmented(params->hb_type))) in iwl_mvm_scan_umac_chan_flags_v2()
1908 iwl_mvm_is_scan_fragmented(params->type) && params->respect_p2p_go) || in iwl_mvm_scan_umac_chan_flags_v2()
1910 iwl_mvm_is_scan_fragmented(params->hb_type) && in iwl_mvm_scan_umac_chan_flags_v2()
1911 params->respect_p2p_go_hb)) { in iwl_mvm_scan_umac_chan_flags_v2()
1920 struct iwl_mvm_scan_params *params, in iwl_mvm_scan_6ghz_passive_scan() argument
1927 params->enable_6ghz_passive = false; in iwl_mvm_scan_6ghz_passive_scan()
1929 if (params->scan_6ghz) in iwl_mvm_scan_6ghz_passive_scan()
1964 if (params->n_channels < IWL_MVM_6GHZ_PASSIVE_SCAN_MIN_CHANS) { in iwl_mvm_scan_6ghz_passive_scan()
1970 for (i = 0; i < params->n_ssids; i++) { in iwl_mvm_scan_6ghz_passive_scan()
1971 if (!params->ssids[i].ssid_len) in iwl_mvm_scan_6ghz_passive_scan()
1976 if (i == params->n_ssids) { in iwl_mvm_scan_6ghz_passive_scan()
2005 params->enable_6ghz_passive = true; in iwl_mvm_scan_6ghz_passive_scan()
2009 struct iwl_mvm_scan_params *params, in iwl_mvm_scan_umac_flags_v2() argument
2021 if (params->n_ssids == 0) in iwl_mvm_scan_umac_flags_v2()
2023 else if (params->n_ssids == 1 && params->ssids[0].ssid_len) in iwl_mvm_scan_umac_flags_v2()
2026 if (iwl_mvm_is_scan_fragmented(params->type)) in iwl_mvm_scan_umac_flags_v2()
2029 if (iwl_mvm_is_scan_fragmented(params->hb_type)) in iwl_mvm_scan_umac_flags_v2()
2032 if (params->pass_all) in iwl_mvm_scan_umac_flags_v2()
2037 if (!iwl_mvm_is_regular_scan(params)) in iwl_mvm_scan_umac_flags_v2()
2040 if (params->iter_notif || in iwl_mvm_scan_umac_flags_v2()
2051 params->flags & NL80211_SCAN_FLAG_COLOCATED_6GHZ) in iwl_mvm_scan_umac_flags_v2()
2054 if (params->enable_6ghz_passive) in iwl_mvm_scan_umac_flags_v2()
2058 (params->flags & (NL80211_SCAN_FLAG_ACCEPT_BCAST_PROBE_RESP | in iwl_mvm_scan_umac_flags_v2()
2067 struct iwl_mvm_scan_params *params, in iwl_mvm_scan_umac_flags2() argument
2073 if (params->respect_p2p_go) in iwl_mvm_scan_umac_flags2()
2075 if (params->respect_p2p_go_hb) in iwl_mvm_scan_umac_flags2()
2078 if (params->respect_p2p_go) in iwl_mvm_scan_umac_flags2()
2087 struct iwl_mvm_scan_params *params, in iwl_mvm_scan_umac_flags() argument
2092 if (params->n_ssids == 0) in iwl_mvm_scan_umac_flags()
2095 if (params->n_ssids == 1 && params->ssids[0].ssid_len != 0) in iwl_mvm_scan_umac_flags()
2098 if (iwl_mvm_is_scan_fragmented(params->type)) in iwl_mvm_scan_umac_flags()
2102 iwl_mvm_is_scan_fragmented(params->hb_type)) in iwl_mvm_scan_umac_flags()
2110 if (params->pass_all) in iwl_mvm_scan_umac_flags()
2115 if (!iwl_mvm_is_regular_scan(params)) in iwl_mvm_scan_umac_flags()
2118 if (params->iter_notif) in iwl_mvm_scan_umac_flags()
2137 if (iwl_mvm_is_regular_scan(params) && in iwl_mvm_scan_umac_flags()
2139 !iwl_mvm_is_scan_fragmented(params->type) && in iwl_mvm_scan_umac_flags()
2145 if ((params->flags & in iwl_mvm_scan_umac_flags()
2153 if ((params->flags & in iwl_mvm_scan_umac_flags()
2157 if ((params->flags & NL80211_SCAN_FLAG_FILS_MAX_CHANNEL_TIME)) in iwl_mvm_scan_umac_flags()
2165 iwl_mvm_fill_scan_sched_params(struct iwl_mvm_scan_params *params, in iwl_mvm_fill_scan_sched_params() argument
2170 if (WARN_ON(!params->n_scan_plans || in iwl_mvm_fill_scan_sched_params()
2171 params->n_scan_plans > IWL_MAX_SCHED_SCAN_PLANS)) in iwl_mvm_fill_scan_sched_params()
2174 for (i = 0; i < params->n_scan_plans; i++) { in iwl_mvm_fill_scan_sched_params()
2176 &params->scan_plans[i]; in iwl_mvm_fill_scan_sched_params()
2189 if (!schedule[params->n_scan_plans - 1].iter_count) in iwl_mvm_fill_scan_sched_params()
2190 schedule[params->n_scan_plans - 1].iter_count = 0xff; in iwl_mvm_fill_scan_sched_params()
2192 *delay = cpu_to_le16(params->delay); in iwl_mvm_fill_scan_sched_params()
2198 struct iwl_mvm_scan_params *params, in iwl_mvm_scan_umac() argument
2218 iwl_mvm_scan_umac_dwell(mvm, cmd, params); in iwl_mvm_scan_umac()
2223 gen_flags = iwl_mvm_scan_umac_flags(mvm, params, vif); in iwl_mvm_scan_umac()
2258 chan_param->count = params->n_channels; in iwl_mvm_scan_umac()
2260 ret = iwl_mvm_fill_scan_sched_params(params, tail_v2->schedule, in iwl_mvm_scan_umac()
2268 tail_v2->preq = params->preq; in iwl_mvm_scan_umac()
2273 &params->preq); in iwl_mvm_scan_umac()
2276 iwl_scan_build_ssids(params, direct_scan, &ssid_bitmap); in iwl_mvm_scan_umac()
2277 iwl_mvm_umac_scan_cfg_channels(mvm, params->channels, in iwl_mvm_scan_umac()
2278 params->n_channels, ssid_bitmap, in iwl_mvm_scan_umac()
2285 struct iwl_mvm_scan_params *params, in iwl_mvm_scan_umac_fill_general_p_v11() argument
2292 iwl_mvm_scan_umac_dwell_v11(mvm, gp, params); in iwl_mvm_scan_umac_fill_general_p_v11()
2309 iwl_mvm_scan_umac_fill_probe_p_v3(struct iwl_mvm_scan_params *params, in iwl_mvm_scan_umac_fill_probe_p_v3() argument
2312 pp->preq = params->preq; in iwl_mvm_scan_umac_fill_probe_p_v3()
2313 pp->ssid_num = params->n_ssids; in iwl_mvm_scan_umac_fill_probe_p_v3()
2314 iwl_scan_build_ssids(params, pp->direct_scan, NULL); in iwl_mvm_scan_umac_fill_probe_p_v3()
2318 iwl_mvm_scan_umac_fill_probe_p_v4(struct iwl_mvm_scan_params *params, in iwl_mvm_scan_umac_fill_probe_p_v4() argument
2322 pp->preq = params->preq; in iwl_mvm_scan_umac_fill_probe_p_v4()
2323 iwl_scan_build_ssids(params, pp->direct_scan, bitmap_ssid); in iwl_mvm_scan_umac_fill_probe_p_v4()
2328 struct iwl_mvm_scan_params *params, in iwl_mvm_scan_umac_fill_ch_p_v4() argument
2333 cp->flags = iwl_mvm_scan_umac_chan_flags_v2(mvm, params, vif); in iwl_mvm_scan_umac_fill_ch_p_v4()
2334 cp->count = params->n_channels; in iwl_mvm_scan_umac_fill_ch_p_v4()
2337 iwl_mvm_umac_scan_cfg_channels_v4(mvm, params->channels, cp, in iwl_mvm_scan_umac_fill_ch_p_v4()
2338 params->n_channels, in iwl_mvm_scan_umac_fill_ch_p_v4()
2345 struct iwl_mvm_scan_params *params, in iwl_mvm_scan_umac_fill_ch_p_v6() argument
2350 cp->flags = iwl_mvm_scan_umac_chan_flags_v2(mvm, params, vif); in iwl_mvm_scan_umac_fill_ch_p_v6()
2351 cp->count = params->n_channels; in iwl_mvm_scan_umac_fill_ch_p_v6()
2355 iwl_mvm_umac_scan_cfg_channels_v6(mvm, params->channels, cp, in iwl_mvm_scan_umac_fill_ch_p_v6()
2356 params->n_channels, in iwl_mvm_scan_umac_fill_ch_p_v6()
2360 if (params->enable_6ghz_passive) { in iwl_mvm_scan_umac_fill_ch_p_v6()
2386 struct iwl_mvm_scan_params *params, int type, in iwl_mvm_scan_umac_v12() argument
2396 cmd->ooc_priority = cpu_to_le32(iwl_mvm_scan_umac_ooc_priority(params)); in iwl_mvm_scan_umac_v12()
2399 gen_flags = iwl_mvm_scan_umac_flags_v2(mvm, params, vif, type); in iwl_mvm_scan_umac_v12()
2400 iwl_mvm_scan_umac_fill_general_p_v11(mvm, params, vif, in iwl_mvm_scan_umac_v12()
2404 ret = iwl_mvm_fill_scan_sched_params(params, in iwl_mvm_scan_umac_v12()
2410 iwl_mvm_scan_umac_fill_probe_p_v3(params, &scan_p->probe_params); in iwl_mvm_scan_umac_v12()
2411 iwl_mvm_scan_umac_fill_ch_p_v4(mvm, params, vif, in iwl_mvm_scan_umac_v12()
2419 struct iwl_mvm_scan_params *params, in iwl_mvm_scan_umac_v14_and_above() argument
2433 cmd->ooc_priority = cpu_to_le32(iwl_mvm_scan_umac_ooc_priority(params)); in iwl_mvm_scan_umac_v14_and_above()
2436 gen_flags = iwl_mvm_scan_umac_flags_v2(mvm, params, vif, type); in iwl_mvm_scan_umac_v14_and_above()
2439 gen_flags2 = iwl_mvm_scan_umac_flags2(mvm, params, vif, type); in iwl_mvm_scan_umac_v14_and_above()
2443 iwl_mvm_scan_umac_fill_general_p_v11(mvm, params, vif, in iwl_mvm_scan_umac_v14_and_above()
2447 ret = iwl_mvm_fill_scan_sched_params(params, in iwl_mvm_scan_umac_v14_and_above()
2453 if (!params->scan_6ghz) { in iwl_mvm_scan_umac_v14_and_above()
2454 iwl_mvm_scan_umac_fill_probe_p_v4(params, &scan_p->probe_params, in iwl_mvm_scan_umac_v14_and_above()
2456 iwl_mvm_scan_umac_fill_ch_p_v6(mvm, params, vif, in iwl_mvm_scan_umac_v14_and_above()
2461 pb->preq = params->preq; in iwl_mvm_scan_umac_v14_and_above()
2464 cp->flags = iwl_mvm_scan_umac_chan_flags_v2(mvm, params, vif); in iwl_mvm_scan_umac_v14_and_above()
2468 iwl_mvm_umac_scan_fill_6g_chan_list(mvm, params, pb); in iwl_mvm_scan_umac_v14_and_above()
2470 cp->count = iwl_mvm_umac_scan_cfg_channels_v6_6g(mvm, params, in iwl_mvm_scan_umac_v14_and_above()
2471 params->n_channels, in iwl_mvm_scan_umac_v14_and_above()
2478 if (!params->n_ssids || in iwl_mvm_scan_umac_v14_and_above()
2479 (params->n_ssids == 1 && !params->ssids[0].ssid_len)) in iwl_mvm_scan_umac_v14_and_above()
2486 struct iwl_mvm_scan_params *params, int type, in iwl_mvm_scan_umac_v14() argument
2489 return iwl_mvm_scan_umac_v14_and_above(mvm, vif, params, type, uid, 14); in iwl_mvm_scan_umac_v14()
2493 struct iwl_mvm_scan_params *params, int type, in iwl_mvm_scan_umac_v15() argument
2496 return iwl_mvm_scan_umac_v14_and_above(mvm, vif, params, type, uid, 15); in iwl_mvm_scan_umac_v15()
2586 struct iwl_mvm_scan_params *params, in iwl_mvm_fill_scan_type() argument
2590 params->type = in iwl_mvm_fill_scan_type()
2593 params->hb_type = in iwl_mvm_fill_scan_type()
2597 params->type = iwl_mvm_get_scan_type(mvm, vif); in iwl_mvm_fill_scan_type()
2604 struct iwl_mvm_scan_params *params, int type, int uid);
2622 struct iwl_mvm_scan_params *params, in iwl_mvm_build_scan_cmd() argument
2634 return iwl_mvm_scan_lmac(mvm, vif, params); in iwl_mvm_build_scan_cmd()
2653 return ver_handler->handler(mvm, vif, params, type, uid); in iwl_mvm_build_scan_cmd()
2656 err = iwl_mvm_scan_umac(mvm, vif, params, type, uid); in iwl_mvm_build_scan_cmd()
2727 struct iwl_mvm_scan_params *params, in iwl_mvm_fill_respect_p2p_go() argument
2731 params->respect_p2p_go = in iwl_mvm_fill_respect_p2p_go()
2734 params->respect_p2p_go_hb = in iwl_mvm_fill_respect_p2p_go()
2738 params->respect_p2p_go = iwl_mvm_get_respect_p2p_go(mvm, vif); in iwl_mvm_fill_respect_p2p_go()
2751 struct iwl_mvm_scan_params params = {}; in iwl_mvm_reg_scan_start() local
2773 params.n_ssids = req->n_ssids; in iwl_mvm_reg_scan_start()
2774 params.flags = req->flags; in iwl_mvm_reg_scan_start()
2775 params.n_channels = req->n_channels; in iwl_mvm_reg_scan_start()
2776 params.delay = 0; in iwl_mvm_reg_scan_start()
2777 params.ssids = req->ssids; in iwl_mvm_reg_scan_start()
2778 params.channels = req->channels; in iwl_mvm_reg_scan_start()
2779 params.mac_addr = req->mac_addr; in iwl_mvm_reg_scan_start()
2780 params.mac_addr_mask = req->mac_addr_mask; in iwl_mvm_reg_scan_start()
2781 params.no_cck = req->no_cck; in iwl_mvm_reg_scan_start()
2782 params.pass_all = true; in iwl_mvm_reg_scan_start()
2783 params.n_match_sets = 0; in iwl_mvm_reg_scan_start()
2784 params.match_sets = NULL; in iwl_mvm_reg_scan_start()
2786 params.scan_plans = &scan_plan; in iwl_mvm_reg_scan_start()
2787 params.n_scan_plans = 1; in iwl_mvm_reg_scan_start()
2789 params.n_6ghz_params = req->n_6ghz_params; in iwl_mvm_reg_scan_start()
2790 params.scan_6ghz_params = req->scan_6ghz_params; in iwl_mvm_reg_scan_start()
2791 params.scan_6ghz = req->scan_6ghz; in iwl_mvm_reg_scan_start()
2792 iwl_mvm_fill_scan_type(mvm, &params, vif); in iwl_mvm_reg_scan_start()
2793 iwl_mvm_fill_respect_p2p_go(mvm, &params, vif); in iwl_mvm_reg_scan_start()
2796 params.iter_notif = true; in iwl_mvm_reg_scan_start()
2798 iwl_mvm_build_scan_probe(mvm, vif, ies, &params); in iwl_mvm_reg_scan_start()
2800 iwl_mvm_scan_6ghz_passive_scan(mvm, &params, vif); in iwl_mvm_reg_scan_start()
2802 uid = iwl_mvm_build_scan_cmd(mvm, vif, &hcmd, &params, in iwl_mvm_reg_scan_start()
2826 if (params.enable_6ghz_passive) in iwl_mvm_reg_scan_start()
2846 struct iwl_mvm_scan_params params = {}; in iwl_mvm_sched_scan_start() local
2867 params.n_ssids = req->n_ssids; in iwl_mvm_sched_scan_start()
2868 params.flags = req->flags; in iwl_mvm_sched_scan_start()
2869 params.n_channels = req->n_channels; in iwl_mvm_sched_scan_start()
2870 params.ssids = req->ssids; in iwl_mvm_sched_scan_start()
2871 params.channels = req->channels; in iwl_mvm_sched_scan_start()
2872 params.mac_addr = req->mac_addr; in iwl_mvm_sched_scan_start()
2873 params.mac_addr_mask = req->mac_addr_mask; in iwl_mvm_sched_scan_start()
2874 params.no_cck = false; in iwl_mvm_sched_scan_start()
2875 params.pass_all = iwl_mvm_scan_pass_all(mvm, req); in iwl_mvm_sched_scan_start()
2876 params.n_match_sets = req->n_match_sets; in iwl_mvm_sched_scan_start()
2877 params.match_sets = req->match_sets; in iwl_mvm_sched_scan_start()
2881 params.n_scan_plans = req->n_scan_plans; in iwl_mvm_sched_scan_start()
2882 params.scan_plans = req->scan_plans; in iwl_mvm_sched_scan_start()
2884 iwl_mvm_fill_scan_type(mvm, &params, vif); in iwl_mvm_sched_scan_start()
2885 iwl_mvm_fill_respect_p2p_go(mvm, &params, vif); in iwl_mvm_sched_scan_start()
2895 params.delay = U16_MAX; in iwl_mvm_sched_scan_start()
2897 params.delay = req->delay; in iwl_mvm_sched_scan_start()
2904 iwl_mvm_build_scan_probe(mvm, vif, ies, &params); in iwl_mvm_sched_scan_start()
2907 for (i = 0; i < params.n_channels; i++) { in iwl_mvm_sched_scan_start()
2908 struct ieee80211_channel *channel = params.channels[i]; in iwl_mvm_sched_scan_start()
2918 params.channels = kmemdup(params.channels, in iwl_mvm_sched_scan_start()
2919 sizeof(params.channels[0]) * in iwl_mvm_sched_scan_start()
2920 params.n_channels, in iwl_mvm_sched_scan_start()
2922 if (!params.channels) in iwl_mvm_sched_scan_start()
2925 for (i = j = 0; i < params.n_channels; i++) { in iwl_mvm_sched_scan_start()
2926 if (params.channels[i]->band == NL80211_BAND_6GHZ && in iwl_mvm_sched_scan_start()
2927 !cfg80211_channel_is_psc(params.channels[i])) in iwl_mvm_sched_scan_start()
2929 params.channels[j++] = params.channels[i]; in iwl_mvm_sched_scan_start()
2931 params.n_channels = j; in iwl_mvm_sched_scan_start()
2935 !iwl_mvm_scan_fits(mvm, req->n_ssids, ies, params.n_channels)) { in iwl_mvm_sched_scan_start()
2936 kfree(params.channels); in iwl_mvm_sched_scan_start()
2940 uid = iwl_mvm_build_scan_cmd(mvm, vif, &hcmd, &params, type); in iwl_mvm_sched_scan_start()
2943 kfree(params.channels); in iwl_mvm_sched_scan_start()