Lines Matching refs:params_batch
499 if (pno_params->params_batch.bestn) in _dhd_pno_set()
500 pfn_param.bestn = pno_params->params_batch.bestn; in _dhd_pno_set()
501 if (pno_params->params_batch.scan_fr) in _dhd_pno_set()
502 pfn_param.scan_freq = htod32(pno_params->params_batch.scan_fr); in _dhd_pno_set()
503 if (pno_params->params_batch.mscan) in _dhd_pno_set()
504 pfn_param.mscan = pno_params->params_batch.mscan; in _dhd_pno_set()
525 if (_params->params_batch.bestn) in _dhd_pno_set()
526 pfn_param.bestn = _params->params_batch.bestn; in _dhd_pno_set()
527 if (_params->params_batch.scan_fr) in _dhd_pno_set()
528 pfn_param.scan_freq = htod32(_params->params_batch.scan_fr); in _dhd_pno_set()
529 if (_params->params_batch.mscan) in _dhd_pno_set()
530 pfn_param.mscan = _params->params_batch.mscan; in _dhd_pno_set()
787 _dhd_pno_convert_format(dhd_pub_t *dhd, struct dhd_pno_batch_params *params_batch, in _dhd_pno_convert_format() argument
804 NULL_CHECK(params_batch, "params_batch is NULL", err); in _dhd_pno_convert_format()
811 if (!params_batch->get_batch.batch_started) { in _dhd_pno_convert_format()
813 params_batch->get_batch.expired_tot_scan_cnt); in _dhd_pno_convert_format()
815 params_batch->get_batch.batch_started = TRUE; in _dhd_pno_convert_format()
817 DHD_PNO(("%s scancount %d\n", __FUNCTION__, params_batch->get_batch.expired_tot_scan_cnt)); in _dhd_pno_convert_format()
821 ¶ms_batch->get_batch.expired_scan_results_list, list) { in _dhd_pno_convert_format()
901 if (cnt < params_batch->get_batch.expired_tot_scan_cnt) { in _dhd_pno_convert_format()
904 cnt, params_batch->get_batch.expired_tot_scan_cnt - cnt)); in _dhd_pno_convert_format()
906 params_batch->get_batch.expired_tot_scan_cnt -= cnt; in _dhd_pno_convert_format()
909 if (list_empty(¶ms_batch->get_batch.expired_scan_results_list)) { in _dhd_pno_convert_format()
911 params_batch->get_batch.batch_started = FALSE; in _dhd_pno_convert_format()
1037 params->params_batch.scan_fr = 0; in _dhd_pno_reinitialize_prof()
1038 params->params_batch.mscan = 0; in _dhd_pno_reinitialize_prof()
1039 params->params_batch.nchan = 0; in _dhd_pno_reinitialize_prof()
1040 params->params_batch.rtt = 0; in _dhd_pno_reinitialize_prof()
1041 params->params_batch.bestn = 0; in _dhd_pno_reinitialize_prof()
1042 params->params_batch.nchan = 0; in _dhd_pno_reinitialize_prof()
1043 params->params_batch.band = WLC_BAND_AUTO; in _dhd_pno_reinitialize_prof()
1044 memset(params->params_batch.chan_list, 0, in _dhd_pno_reinitialize_prof()
1045 sizeof(params->params_batch.chan_list)); in _dhd_pno_reinitialize_prof()
1046 params->params_batch.get_batch.batch_started = FALSE; in _dhd_pno_reinitialize_prof()
1047 params->params_batch.get_batch.buf = NULL; in _dhd_pno_reinitialize_prof()
1048 params->params_batch.get_batch.bufsize = 0; in _dhd_pno_reinitialize_prof()
1049 params->params_batch.get_batch.reason = 0; in _dhd_pno_reinitialize_prof()
1051 ¶ms->params_batch.get_batch.scan_results_list, FALSE); in _dhd_pno_reinitialize_prof()
1053 ¶ms->params_batch.get_batch.expired_scan_results_list, FALSE); in _dhd_pno_reinitialize_prof()
1054 params->params_batch.get_batch.tot_scan_cnt = 0; in _dhd_pno_reinitialize_prof()
1055 params->params_batch.get_batch.expired_tot_scan_cnt = 0; in _dhd_pno_reinitialize_prof()
1056 params->params_batch.get_batch.top_node_cnt = 0; in _dhd_pno_reinitialize_prof()
1057 INIT_LIST_HEAD(¶ms->params_batch.get_batch.scan_results_list); in _dhd_pno_reinitialize_prof()
1058 INIT_LIST_HEAD(¶ms->params_batch.get_batch.expired_scan_results_list); in _dhd_pno_reinitialize_prof()
1075 params->params_batch.band = WLC_BAND_AUTO; in _dhd_pno_reinitialize_prof()
1177 err = dhd_pno_set_for_batch(dhd, &_params->params_batch); in dhd_pno_stop_for_ssid()
1407 if (_params2->params_batch.nchan > 0 && tot_nchan > 0) { in dhd_pno_set_legacy_pno()
1409 &_params2->params_batch.chan_list[0], in dhd_pno_set_legacy_pno()
1410 _params2->params_batch.nchan, in dhd_pno_set_legacy_pno()
1535 _params->params_batch.scan_fr = batch_params->scan_fr; in dhd_pno_set_for_batch()
1536 _params->params_batch.bestn = batch_params->bestn; in dhd_pno_set_for_batch()
1537 _params->params_batch.mscan = (batch_params->mscan)? in dhd_pno_set_for_batch()
1539 _params->params_batch.nchan = batch_params->nchan; in dhd_pno_set_for_batch()
1540 memcpy(_params->params_batch.chan_list, batch_params->chan_list, in dhd_pno_set_for_batch()
1541 sizeof(_params->params_batch.chan_list)); in dhd_pno_set_for_batch()
1553 &_params->params_batch.chan_list[batch_params->nchan], in dhd_pno_set_for_batch()
1561 _params->params_batch.nchan += rem_nchan; in dhd_pno_set_for_batch()
1563 sort(_params->params_batch.chan_list, _params->params_batch.nchan, in dhd_pno_set_for_batch()
1564 sizeof(_params->params_batch.chan_list[0]), _dhd_pno_cmpfunc, NULL); in dhd_pno_set_for_batch()
1569 for (i = 0; i < _params->params_batch.nchan; i++) { in dhd_pno_set_for_batch()
1570 DHD_PNO(("%d ", _params->params_batch.chan_list[i])); in dhd_pno_set_for_batch()
1575 if (_params->params_batch.nchan) { in dhd_pno_set_for_batch()
1577 memcpy(_chan_list, _params->params_batch.chan_list, sizeof(_chan_list)); in dhd_pno_set_for_batch()
1578 tot_nchan = _params->params_batch.nchan; in dhd_pno_set_for_batch()
1593 if (_params2->params_legacy.nchan > 0 && _params->params_batch.nchan > 0) { in dhd_pno_set_for_batch()
1597 &_params->params_batch.chan_list[0], _params->params_batch.nchan); in dhd_pno_set_for_batch()
3125 if (!list_empty(&_params->params_batch.get_batch.expired_scan_results_list)) { in _dhd_pno_get_for_batch()
3133 if (!list_empty(&_params->params_batch.get_batch.scan_results_list)) { in _dhd_pno_get_for_batch()
3137 &_params->params_batch.get_batch.scan_results_list, list) { in _dhd_pno_get_for_batch()
3140 &_params->params_batch.get_batch.expired_scan_results_list); in _dhd_pno_get_for_batch()
3142 _params->params_batch.get_batch.top_node_cnt = 0; in _dhd_pno_get_for_batch()
3143 _params->params_batch.get_batch.expired_tot_scan_cnt = in _dhd_pno_get_for_batch()
3144 _params->params_batch.get_batch.tot_scan_cnt; in _dhd_pno_get_for_batch()
3145 _params->params_batch.get_batch.tot_scan_cnt = 0; in _dhd_pno_get_for_batch()
3160 if (_params->params_batch.get_batch.top_node_cnt < MAX_NODE_CNT) { in _dhd_pno_get_for_batch()
3161 list_add(&pscan_results->list, &_params->params_batch.get_batch.scan_results_list); in _dhd_pno_get_for_batch()
3162 _params->params_batch.get_batch.top_node_cnt++; in _dhd_pno_get_for_batch()
3168 &_params->params_batch.get_batch.scan_results_list, TRUE); in _dhd_pno_get_for_batch()
3169 _params->params_batch.get_batch.tot_scan_cnt -= _removed_scan_cnt; in _dhd_pno_get_for_batch()
3170 list_add(&pscan_results->list, &_params->params_batch.get_batch.scan_results_list); in _dhd_pno_get_for_batch()
3429 _params->params_batch.get_batch.top_node_cnt--; in _dhd_pno_get_for_batch()
3432 _params->params_batch.get_batch.tot_scan_cnt += pscan_results->cnt_header; in _dhd_pno_get_for_batch()
3437 if (!list_empty(&_params->params_batch.get_batch.scan_results_list)) { in _dhd_pno_get_for_batch()
3441 &_params->params_batch.get_batch.scan_results_list, list) { in _dhd_pno_get_for_batch()
3444 &_params->params_batch.get_batch.expired_scan_results_list); in _dhd_pno_get_for_batch()
3447 _params->params_batch.get_batch.top_node_cnt = 0; in _dhd_pno_get_for_batch()
3448 _params->params_batch.get_batch.expired_tot_scan_cnt = in _dhd_pno_get_for_batch()
3449 _params->params_batch.get_batch.tot_scan_cnt; in _dhd_pno_get_for_batch()
3450 _params->params_batch.get_batch.tot_scan_cnt = 0; in _dhd_pno_get_for_batch()
3453 err = _dhd_pno_convert_format(dhd, &_params->params_batch, buf, bufsize); in _dhd_pno_get_for_batch()
3463 _params->params_batch.get_batch.buf = NULL; in _dhd_pno_get_for_batch()
3464 _params->params_batch.get_batch.bufsize = 0; in _dhd_pno_get_for_batch()
3465 _params->params_batch.get_batch.bytes_written = err; in _dhd_pno_get_for_batch()
3486 struct dhd_pno_batch_params *params_batch; in _dhd_pno_get_batch_handler() local
3502 params_batch = &_pno_state->pno_params_arr[INDEX_OF_BATCH_PARAMS].params_batch; in _dhd_pno_get_batch_handler()
3504 _dhd_pno_get_for_batch(dhd, params_batch->get_batch.buf, in _dhd_pno_get_batch_handler()
3505 params_batch->get_batch.bufsize, params_batch->get_batch.reason); in _dhd_pno_get_batch_handler()
3515 struct dhd_pno_batch_params *params_batch; in dhd_pno_get_for_batch() local
3530 params_batch = &_pno_state->pno_params_arr[INDEX_OF_BATCH_PARAMS].params_batch; in dhd_pno_get_for_batch()
3553 params_batch->get_batch.buf = buf; in dhd_pno_get_for_batch()
3554 params_batch->get_batch.bufsize = bufsize; in dhd_pno_get_for_batch()
3555 params_batch->get_batch.reason = reason; in dhd_pno_get_for_batch()
3556 params_batch->get_batch.bytes_written = 0; in dhd_pno_get_for_batch()
3571 err = params_batch->get_batch.bytes_written; in dhd_pno_get_for_batch()
3723 _params->params_batch.nchan = hotlist_params->nchan; in dhd_pno_set_for_hotlist()
3724 _params->params_batch.scan_fr = hotlist_params->scan_fr; in dhd_pno_set_for_hotlist()
3755 for (i = 0; i < _params->params_batch.nchan; i++) { in dhd_pno_set_for_hotlist()
3756 DHD_PNO(("%d ", _params->params_batch.chan_list[i])); in dhd_pno_set_for_hotlist()
3892 err = dhd_pno_set_for_batch(dhd, &_params->params_batch); in dhd_pno_stop_for_hotlist()
3919 struct dhd_pno_batch_params *params_batch; in dhd_retreive_batch_scan_results() local
3926 params_batch = &_pno_state->pno_params_arr[INDEX_OF_BATCH_PARAMS].params_batch; in dhd_retreive_batch_scan_results()
3929 params_batch->get_batch.buf = NULL; in dhd_retreive_batch_scan_results()
3930 params_batch->get_batch.bufsize = 0; in dhd_retreive_batch_scan_results()
3931 params_batch->get_batch.reason = PNO_STATUS_EVENT; in dhd_retreive_batch_scan_results()
4509 struct dhd_pno_batch_params *params_batch; in dhd_pno_event_handler() local
4510 params_batch = &_pno_state->pno_params_arr[INDEX_OF_BATCH_PARAMS].params_batch; in dhd_pno_event_handler()
4518 params_batch->get_batch.buf = NULL; in dhd_pno_event_handler()
4519 params_batch->get_batch.bufsize = 0; in dhd_pno_event_handler()
4520 params_batch->get_batch.reason = PNO_STATUS_EVENT; in dhd_pno_event_handler()