• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/wpa/src/p2p/

Lines Matching refs:intersection

42 	struct p2p_channels intersection;
78 p2p_channels_intersect(own, &dev->channels, &intersection);
79 p2p_dbg(p2p, "Own reg_classes %d peer reg_classes %d intersection reg_classes %d",
82 (int) intersection.reg_classes);
83 if (intersection.reg_classes == 0) {
375 * @intersection: Support channel list intersection from local and peer
384 struct p2p_channels *intersection)
397 p2p_channels_includes(intersection, op_reg_class, op_channel)) {
398 p2p_dbg(p2p, "Pick own channel preference (reg_class %u channel %u) from intersection",
408 p2p_channels_includes(intersection, op_reg_class, op_channel)) {
409 p2p_dbg(p2p, "Pick best overall channel (reg_class %u channel %u) from intersection",
419 !p2p_channels_includes(intersection, p2p->op_reg_class,
423 p2p_channels_includes(intersection, op_reg_class, op_channel)) {
424 p2p_dbg(p2p, "Pick best 5 GHz channel (reg_class %u channel %u) from intersection",
432 !p2p_channels_includes(intersection, p2p->op_reg_class,
436 p2p_channels_includes(intersection, op_reg_class, op_channel)) {
437 p2p_dbg(p2p, "Pick best 2.4 GHz channel (reg_class %u channel %u) from intersection",
446 if (p2p_channels_includes(intersection,
451 p2p_dbg(p2p, "Pick highest preferred channel (op_class %u channel %u) from intersection",
458 if (p2p_channel_select(intersection, op_classes_vht,
460 p2p_dbg(p2p, "Pick possible VHT channel (op_class %u channel %u) from intersection",
466 if (p2p_channel_select(intersection, op_classes_ht40,
468 p2p_dbg(p2p, "Pick possible HT40 channel (op_class %u channel %u) from intersection",
474 if (p2p_channel_select(intersection, op_classes_5ghz,
476 p2p_dbg(p2p, "Pick possible 5 GHz channel (op_class %u channel %u) from intersection",
482 * Try to see if the original channel is in the intersection. If
486 if (p2p_channels_includes(intersection, p2p->op_reg_class,
488 p2p_dbg(p2p, "Using original operating class and channel (op_class %u channel %u) from intersection",
494 * Fall back to whatever is included in the channel intersection since
497 cl = &intersection->reg_class[0];
498 p2p_dbg(p2p, "Pick another channel (reg_class %u channel %u) from intersection",
508 struct p2p_channels tmp, intersection;
513 p2p_channels_dump(p2p, "intersection", &tmp);
515 p2p_channels_dump(p2p, "intersection after no-GO removal", &tmp);
516 p2p_channels_intersect(&tmp, &p2p->cfg->channels, &intersection);
517 p2p_channels_dump(p2p, "intersection with local channel list",
518 &intersection);
519 if (intersection.reg_classes == 0 ||
520 intersection.reg_class[0].channels == 0) {
526 if (!p2p_channels_includes(&intersection, p2p->op_reg_class,
536 p2p_reselect_channel(p2p, &intersection);
541 p2p_reselect_channel(p2p, &intersection);