P2P: Prefer U-NII-3 over U-NII-1 during channel selection
Some devices disable use of U-NII-1 (channels 36-48) for P2P due to it being indoor use only in number of locations. If U-NII-3 (channels 149-161) is available, try to pick a channel from that range first during random channel selection to reduce likelihood of interoperability issues. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
1b665cbf51
commit
0004374025
3 changed files with 20 additions and 23 deletions
|
@ -1180,8 +1180,8 @@ static int p2p_prepare_channel_pref(struct p2p_data *p2p,
|
|||
static void p2p_prepare_channel_best(struct p2p_data *p2p)
|
||||
{
|
||||
u8 op_class, op_channel;
|
||||
const int op_classes_5ghz[] = { 115, 124, 0 };
|
||||
const int op_classes_ht40[] = { 116, 117, 126, 127, 0 };
|
||||
const int op_classes_5ghz[] = { 124, 115, 0 };
|
||||
const int op_classes_ht40[] = { 126, 127, 116, 117, 0 };
|
||||
const int op_classes_vht[] = { 128, 0 };
|
||||
|
||||
p2p_dbg(p2p, "Prepare channel best");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue