Lines Matching refs:plan

72 	struct rtw_regulation_chplan_group *plan = NULL;  in _chnlplan_update_2g()  local
94 plan = &rg->chplan[FREQ_GROUP_2GHZ]; in _chnlplan_update_2g()
95 plan->cnt = 0; in _chnlplan_update_2g()
98 _convert_ch2g(rg, &plan->cnt, plan->ch, ch, passive); in _chnlplan_update_2g()
100 PHL_INFO("[REGU], 2 GHz, total channel = %d\n", plan->cnt); in _chnlplan_update_2g()
208 struct rtw_regulation_chplan_group *plan = NULL; in _chnlplan_update_5g() local
235 plan = &rg->chplan[group]; in _chnlplan_update_5g()
236 plan->cnt = 0; in _chnlplan_update_5g()
239 _convert_ch5g((u8)(i + 1), rg, &plan->cnt, plan->ch, in _chnlplan_update_5g()
241 total += plan->cnt; in _chnlplan_update_5g()
274 struct rtw_regulation_chplan *plan) in _get_group_chplan() argument
284 plan->ch[plan->cnt].band = in _get_group_chplan()
286 plan->ch[plan->cnt].channel = in _get_group_chplan()
288 plan->ch[plan->cnt].property = in _get_group_chplan()
290 plan->cnt++; in _get_group_chplan()
310 struct rtw_regulation_chplan *plan) in _get_chnlplan() argument
317 plan->cnt = 0; in _get_chnlplan()
325 _get_group_chplan(rg, group, plan); in _get_chnlplan()
337 _get_group_chplan(rg, group, plan); in _get_chnlplan()
345 _get_group_chplan(rg, group, plan); in _get_chnlplan()
353 _get_group_chplan(rg, group, plan); in _get_chnlplan()
361 _get_group_chplan(rg, group, plan); in _get_chnlplan()
366 regu_get_chnlplan_6g(rg, type, plan); in _get_chnlplan()
389 struct rtw_regulation_chplan *plan, in _filter_chnlplan() argument
395 if (!d || !plan || !filter) in _filter_chnlplan()
398 if (plan->cnt < filter->cnt) in _filter_chnlplan()
401 _os_mem_cpy(d, &inplan, plan, sizeof(struct rtw_regulation_chplan)); in _filter_chnlplan()
407 plan->cnt = 0; in _filter_chnlplan()
412 plan->ch[k].band = inplan.ch[j].band; in _filter_chnlplan()
413 plan->ch[k].channel = inplan.ch[j].channel; in _filter_chnlplan()
414 plan->ch[k].property = inplan.ch[j].property; in _filter_chnlplan()
416 plan->cnt++; in _filter_chnlplan()
448 struct rtw_regulation_chplan_group *plan = NULL; in _query_channel() local
457 plan = &rg->chplan[i]; in _query_channel()
458 for (j = 0; j < plan->cnt; j++) { in _query_channel()
459 if (channel == plan->ch[j].channel) { in _query_channel()
460 ch->band = plan->ch[j].band; in _query_channel()
461 ch->channel = plan->ch[j].channel; in _query_channel()
462 ch->property = plan->ch[j].property; in _query_channel()
471 static void _display_chplan(struct rtw_regulation_chplan *plan) in _display_chplan() argument
475 for (i = 0; i < plan->cnt; i++) { in _display_chplan()
477 ((plan->ch[i].band == BAND_ON_24G) ? "2g" : in _display_chplan()
478 ((plan->ch[i].band == BAND_ON_5G) ? "5g" : in _display_chplan()
479 ((plan->ch[i].band == BAND_ON_6G) ? "6g" : ""))), in _display_chplan()
480 (plan->ch[i].channel), in _display_chplan()
481 ((plan->ch[i].property & CH_PASSIVE) ? in _display_chplan()
483 ((plan->ch[i].property & CH_DFS) ? ", dfs" : ""), in _display_chplan()
484 ((plan->ch[i].property & CH_PSC) ? ", psc" : "")); in _display_chplan()
587 struct rtw_regulation_chplan_group *plan = NULL; in rtw_phl_set_user_def_chplan() local
617 plan = &rg->chplan[FREQ_GROUP_2GHZ]; in rtw_phl_set_user_def_chplan()
618 plan->cnt = 0; in rtw_phl_set_user_def_chplan()
621 _convert_ch2g(rg, &plan->cnt, plan->ch, ch, passive); in rtw_phl_set_user_def_chplan()
623 PHL_INFO("[REGU], 2 GHz, total channel = %d\n", plan->cnt); in rtw_phl_set_user_def_chplan()
628 plan = &rg->chplan[group]; in rtw_phl_set_user_def_chplan()
629 plan->cnt = 0; in rtw_phl_set_user_def_chplan()
632 _convert_ch5g((u8)(i + 1), rg, &plan->cnt, plan->ch, in rtw_phl_set_user_def_chplan()
862 struct rtw_regulation_chplan *plan) in rtw_phl_regulation_query_chplan() argument
869 if (!phl || !plan) in rtw_phl_regulation_query_chplan()
894 status = _get_chnlplan(rg, type, plan); in rtw_phl_regulation_query_chplan()
896 _filter_chnlplan(d, plan, filter); in rtw_phl_regulation_query_chplan()
926 struct rtw_regulation_chplan *plan) in rtw_phl_query_specific_chplan() argument
939 if (!plan) in rtw_phl_query_specific_chplan()
941 plan->cnt = 0; in rtw_phl_query_specific_chplan()
979 _convert_ch2g(rg, &plan->cnt, plan->ch, ch, passive); in rtw_phl_query_specific_chplan()
988 _convert_ch5g((u8)(i + 1), rg, &plan->cnt, plan->ch, in rtw_phl_query_specific_chplan()
994 domain, plan->cnt); in rtw_phl_query_specific_chplan()
995 _display_chplan(plan); in rtw_phl_query_specific_chplan()