diff options
Diffstat (limited to 'contrib/wpa/src/p2p/p2p_go_neg.c')
-rw-r--r-- | contrib/wpa/src/p2p/p2p_go_neg.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/wpa/src/p2p/p2p_go_neg.c b/contrib/wpa/src/p2p/p2p_go_neg.c index c94bf41a7081..113346141986 100644 --- a/contrib/wpa/src/p2p/p2p_go_neg.c +++ b/contrib/wpa/src/p2p/p2p_go_neg.c @@ -390,6 +390,7 @@ void p2p_reselect_channel(struct p2p_data *p2p, const int op_classes_5ghz[] = { 124, 125, 115, 0 }; const int op_classes_ht40[] = { 126, 127, 116, 117, 0 }; const int op_classes_vht[] = { 128, 129, 130, 0 }; + const int op_classes_edmg[] = { 181, 182, 183, 0 }; if (p2p->own_freq_preference > 0 && p2p_freq_to_channel(p2p->own_freq_preference, @@ -454,6 +455,14 @@ void p2p_reselect_channel(struct p2p_data *p2p, } } + /* Try a channel where we might be able to use EDMG */ + if (p2p_channel_select(intersection, op_classes_edmg, + &p2p->op_reg_class, &p2p->op_channel) == 0) { + p2p_dbg(p2p, "Pick possible EDMG channel (op_class %u channel %u) from intersection", + p2p->op_reg_class, p2p->op_channel); + return; + } + /* Try a channel where we might be able to use VHT */ if (p2p_channel_select(intersection, op_classes_vht, &p2p->op_reg_class, &p2p->op_channel) == 0) { |