• Home
  • Raw
  • Download

Lines Matching refs:oci

22 int ocv_derive_all_parameters(struct oci_info *oci)  in ocv_derive_all_parameters()  argument
26 oci->freq = ieee80211_chan_to_freq(NULL, oci->op_class, oci->channel); in ocv_derive_all_parameters()
27 if (oci->freq < 0) { in ocv_derive_all_parameters()
30 oci->op_class, oci->channel); in ocv_derive_all_parameters()
34 op_class_map = get_oper_class(NULL, oci->op_class); in ocv_derive_all_parameters()
38 oci->op_class); in ocv_derive_all_parameters()
42 oci->chanwidth = oper_class_bw_to_int(op_class_map); in ocv_derive_all_parameters()
43 oci->sec_channel = 0; in ocv_derive_all_parameters()
45 oci->sec_channel = 1; in ocv_derive_all_parameters()
47 oci->sec_channel = -1; in ocv_derive_all_parameters()
49 oci->sec_channel = (((oci->channel - 1) / 4) % 2) ? -1 : 1; in ocv_derive_all_parameters()
105 struct oci_info oci; in ocv_verify_tx_params() local
120 os_memset(&oci, 0, sizeof(oci)); in ocv_verify_tx_params()
121 oci.op_class = oci_ie[0]; in ocv_verify_tx_params()
122 oci.channel = oci_ie[1]; in ocv_verify_tx_params()
123 oci.seg1_idx = oci_ie[2]; in ocv_verify_tx_params()
124 if (ocv_derive_all_parameters(&oci) != 0) { in ocv_verify_tx_params()
131 if ((int) ci->frequency != oci.freq) { in ocv_verify_tx_params()
134 ci->frequency, oci.freq); in ocv_verify_tx_params()
140 if (tx_chanwidth > oci.chanwidth) { in ocv_verify_tx_params()
143 tx_chanwidth, oci.chanwidth); in ocv_verify_tx_params()
154 ci->sec_channel != oci.sec_channel) { in ocv_verify_tx_params()
157 ci->sec_channel, oci.sec_channel); in ocv_verify_tx_params()
166 tx_seg1_idx != oci.seg1_idx) { in ocv_verify_tx_params()
169 tx_seg1_idx, oci.seg1_idx); in ocv_verify_tx_params()