Lines Matching refs:config
459 struct ocb_config *config) in send_ocb_set_config_cmd_tlv() argument
479 if (config->dcc_ndl_chan_list_len) { in send_ocb_set_config_cmd_tlv()
480 if (!config->dcc_ndl_chan_list || in send_ocb_set_config_cmd_tlv()
481 config->dcc_ndl_chan_list_len != in send_ocb_set_config_cmd_tlv()
482 config->channel_count * sizeof(wmi_dcc_ndl_chan)) { in send_ocb_set_config_cmd_tlv()
484 config->dcc_ndl_chan_list_len); in send_ocb_set_config_cmd_tlv()
488 for (i = 0, ndl_chan = config->dcc_ndl_chan_list; in send_ocb_set_config_cmd_tlv()
489 i < config->channel_count; ++i, ++ndl_chan) in send_ocb_set_config_cmd_tlv()
494 if (!config->dcc_ndl_active_state_list || in send_ocb_set_config_cmd_tlv()
495 config->dcc_ndl_active_state_list_len != in send_ocb_set_config_cmd_tlv()
505 WMI_TLV_HDR_SIZE + config->channel_count * in send_ocb_set_config_cmd_tlv()
507 WMI_TLV_HDR_SIZE + config->channel_count * in send_ocb_set_config_cmd_tlv()
509 WMI_TLV_HDR_SIZE + config->channel_count * in send_ocb_set_config_cmd_tlv()
511 WMI_TLV_HDR_SIZE + config->dcc_ndl_chan_list_len + in send_ocb_set_config_cmd_tlv()
514 WMI_TLV_HDR_SIZE + config->schedule_size * in send_ocb_set_config_cmd_tlv()
526 cmd->vdev_id = config->vdev_id; in send_ocb_set_config_cmd_tlv()
527 cmd->channel_count = config->channel_count; in send_ocb_set_config_cmd_tlv()
528 cmd->schedule_size = config->schedule_size; in send_ocb_set_config_cmd_tlv()
529 cmd->flags = config->flags; in send_ocb_set_config_cmd_tlv()
534 config->channel_count * sizeof(wmi_channel)); in send_ocb_set_config_cmd_tlv()
536 for (i = 0; i < config->channel_count; i++) { in send_ocb_set_config_cmd_tlv()
541 chan->mhz = config->channels[i].chan_freq; in send_ocb_set_config_cmd_tlv()
542 chan->band_center_freq1 = config->channels[i].chan_freq; in send_ocb_set_config_cmd_tlv()
546 WMI_SET_CHANNEL_MODE(chan, config->channels[i].ch_mode); in send_ocb_set_config_cmd_tlv()
547 WMI_SET_CHANNEL_MAX_POWER(chan, config->channels[i].max_pwr); in send_ocb_set_config_cmd_tlv()
548 WMI_SET_CHANNEL_MIN_POWER(chan, config->channels[i].min_pwr); in send_ocb_set_config_cmd_tlv()
549 WMI_SET_CHANNEL_MAX_TX_POWER(chan, config->channels[i].max_pwr); in send_ocb_set_config_cmd_tlv()
550 WMI_SET_CHANNEL_REG_POWER(chan, config->channels[i].reg_pwr); in send_ocb_set_config_cmd_tlv()
552 config->channels[i].antenna_max); in send_ocb_set_config_cmd_tlv()
554 if (config->channels[i].bandwidth < 10) in send_ocb_set_config_cmd_tlv()
556 else if (config->channels[i].bandwidth < 20) in send_ocb_set_config_cmd_tlv()
563 config->channel_count * sizeof(wmi_ocb_channel)); in send_ocb_set_config_cmd_tlv()
565 for (i = 0; i < config->channel_count; i++) { in send_ocb_set_config_cmd_tlv()
570 ocb_chan->bandwidth = config->channels[i].bandwidth; in send_ocb_set_config_cmd_tlv()
572 config->channels[i].mac_address.bytes, in send_ocb_set_config_cmd_tlv()
579 config->channel_count * sizeof(wmi_qos_parameter)*WMI_MAX_NUM_AC); in send_ocb_set_config_cmd_tlv()
582 for (i = 0; i < config->channel_count; i++) { in send_ocb_set_config_cmd_tlv()
589 config->channels[i].qos_params[j].aifsn; in send_ocb_set_config_cmd_tlv()
591 config->channels[i].qos_params[j].cwmin; in send_ocb_set_config_cmd_tlv()
593 config->channels[i].qos_params[j].cwmax; in send_ocb_set_config_cmd_tlv()
600 config->dcc_ndl_chan_list_len); in send_ocb_set_config_cmd_tlv()
602 if (config->dcc_ndl_chan_list_len) { in send_ocb_set_config_cmd_tlv()
604 qdf_mem_copy(ndl_chan, config->dcc_ndl_chan_list, in send_ocb_set_config_cmd_tlv()
605 config->dcc_ndl_chan_list_len); in send_ocb_set_config_cmd_tlv()
606 for (i = 0; i < config->channel_count; i++) in send_ocb_set_config_cmd_tlv()
610 buf_ptr += config->dcc_ndl_chan_list_len; in send_ocb_set_config_cmd_tlv()
620 config->dcc_ndl_active_state_list, in send_ocb_set_config_cmd_tlv()
633 config->schedule_size * sizeof(wmi_ocb_schedule_element)); in send_ocb_set_config_cmd_tlv()
635 for (i = 0; i < config->schedule_size; i++) { in send_ocb_set_config_cmd_tlv()
640 sched_elem->channel_freq = config->schedule[i].chan_freq; in send_ocb_set_config_cmd_tlv()
641 sched_elem->total_duration = config->schedule[i].total_duration; in send_ocb_set_config_cmd_tlv()
642 sched_elem->guard_interval = config->schedule[i].guard_interval; in send_ocb_set_config_cmd_tlv()