Lines Matching defs:op_class

21 				       u8 op_class, u8 chan,
25 bool is_6ghz = is_6ghz_op_class(op_class);
72 u8 op_class, u8 channel)
83 if (is_6ghz_op_class(op_class)) {
101 if (allow_channel(mode, op_class, adj_chan, &flags) ==
142 u8 op_class, u8 channel)
152 if (is_6ghz_op_class(op_class)) {
170 if (allow_channel(mode, op_class, adj_chan, &flags) ==
212 u8 op_class, u8 channel)
234 if (allow_channel(mode, op_class, adj_chan, &flags) ==
252 enum chan_allowed verify_channel(struct hostapd_hw_modes *mode, u8 op_class,
258 res2 = res = allow_channel(mode, op_class, channel, &flag);
262 res2 = allow_channel(mode, op_class, channel - 4, NULL);
266 res2 = allow_channel(mode, op_class, channel + 4, NULL);
267 } else if (is_6ghz_op_class(op_class) && bw == BW40) {
269 res2 = allow_channel(mode, op_class, channel - 4, NULL);
271 res2 = allow_channel(mode, op_class, channel + 4, NULL);
278 res2 = res = verify_80mhz(mode, op_class, channel);
285 res2 = res = verify_160mhz(mode, op_class, channel);
292 res2 = res = verify_80mhz(mode, op_class, channel);
299 res2= res = verify_320mhz(mode, op_class, channel);
314 const struct oper_class_map *op_class)
325 mode = get_mode(wpa_s->hw.modes, wpa_s->hw.num_modes, op_class->mode,
326 is_6ghz_op_class(op_class->op_class));
352 if (is_6ghz_op_class(op_class->op_class) && !freq6)
354 if (op_class->op_class >= 115 && op_class->op_class <= 130 && !freq5)
356 if (op_class->op_class >= 81 && op_class->op_class <= 84 && !freq2)
361 switch (op_class->op_class) {
385 if (op_class->op_class >= 128 && op_class->op_class <= 130) {
392 if (op_class->op_class == 128) {
396 if (verify_channel(mode, op_class->op_class,
397 channels[i], op_class->bw) !=
405 if (op_class->op_class == 129) {
407 return verify_channel(mode, op_class->op_class, 50,
408 op_class->bw) != NOT_ALLOWED ||
409 verify_channel(mode, op_class->op_class, 114,
410 op_class->bw) != NOT_ALLOWED ||
411 verify_channel(mode, op_class->op_class, 163,
412 op_class->bw) != NOT_ALLOWED;
415 if (op_class->op_class == 130) {
419 if (verify_channel(mode, op_class->op_class, 42,
420 op_class->bw) != NOT_ALLOWED ||
421 verify_channel(mode, op_class->op_class, 58,
422 op_class->bw) != NOT_ALLOWED)
424 if (verify_channel(mode, op_class->op_class, 106,
425 op_class->bw) != NOT_ALLOWED ||
426 verify_channel(mode, op_class->op_class, 122,
427 op_class->bw) != NOT_ALLOWED ||
428 verify_channel(mode, op_class->op_class, 138,
429 op_class->bw) != NOT_ALLOWED ||
430 verify_channel(mode, op_class->op_class, 155,
431 op_class->bw) != NOT_ALLOWED ||
432 verify_channel(mode, op_class->op_class, 171,
433 op_class->bw) != NOT_ALLOWED)
435 if (verify_channel(mode, op_class->op_class, 106,
436 op_class->bw) != NOT_ALLOWED &&
437 verify_channel(mode, op_class->op_class, 138,
438 op_class->bw) != NOT_ALLOWED)
440 if (verify_channel(mode, op_class->op_class, 122,
441 op_class->bw) != NOT_ALLOWED &&
442 verify_channel(mode, op_class->op_class, 155,
443 op_class->bw) != NOT_ALLOWED)
445 if (verify_channel(mode, op_class->op_class, 138,
446 op_class->bw) != NOT_ALLOWED &&
447 verify_channel(mode, op_class->op_class, 171,
448 op_class->bw) != NOT_ALLOWED)
457 if (op_class->op_class == 135) {
464 for (chan = op_class->min_chan; chan <= op_class->max_chan;
465 chan += op_class->inc) {
467 if (verify_channel(mode, op_class->op_class, chan,
468 op_class->bw) != NOT_ALLOWED) {
493 for (chan = op_class->min_chan; chan <= op_class->max_chan;
494 chan += op_class->inc) {
495 if (verify_channel(mode, op_class->op_class, chan,
496 op_class->bw) != NOT_ALLOWED) {
558 for (op = 0; global_op_class[op].op_class; op++) {
560 u8 op_class = global_op_class[op].op_class;
566 switch (op_class) {
580 if (is_80plus_op_class(op_class))
584 wpabuf_put_u8(buf, global_op_class[op].op_class);
632 for (op = 0; global_op_class[op].op_class; op++)
638 for (op = 0, pos = 0; global_op_class[op].op_class; op++) {
640 classes[pos++] = global_op_class[op].op_class;