Lines Matching refs:oci
22 int ocv_derive_all_parameters(struct oci_info *oci)
26 oci->freq = ieee80211_chan_to_freq(NULL, oci->op_class, oci->channel);
27 if (oci->freq < 0) {
30 oci->op_class, oci->channel);
34 op_class_map = get_oper_class(NULL, oci->op_class);
38 oci->op_class);
42 oci->chanwidth = oper_class_bw_to_int(op_class_map);
43 oci->sec_channel = 0;
45 oci->sec_channel = 1;
47 oci->sec_channel = -1;
102 struct oci_info oci;
117 os_memset(&oci, 0, sizeof(oci));
118 oci.op_class = oci_ie[0];
119 oci.channel = oci_ie[1];
120 oci.seg1_idx = oci_ie[2];
121 if (ocv_derive_all_parameters(&oci) != 0) {
128 if ((int) ci->frequency != oci.freq) {
131 ci->frequency, oci.freq);
137 if (tx_chanwidth > oci.chanwidth) {
140 tx_chanwidth, oci.chanwidth);
151 ci->sec_channel != oci.sec_channel) {
154 ci->sec_channel, oci.sec_channel);
164 tx_seg1_idx != oci.seg1_idx) {
167 tx_seg1_idx, oci.seg1_idx);