P2P: Add VHT support
Start GO with VHT support if VHT option was requested and the appropriate channels are available. Signed-hostap: Eliad Peller <eliadx.peller@intel.com>
This commit is contained in:
parent
20ea1ca406
commit
ca9bc5b566
5 changed files with 132 additions and 1 deletions
|
@ -412,6 +412,18 @@ void p2p_reselect_channel(struct p2p_data *p2p,
|
|||
}
|
||||
}
|
||||
|
||||
/* Try a channel where we might be able to use VHT */
|
||||
for (i = 0; i < intersection->reg_classes; i++) {
|
||||
struct p2p_reg_class *c = &intersection->reg_class[i];
|
||||
if (c->reg_class == 128) {
|
||||
p2p_dbg(p2p, "Pick possible VHT channel (reg_class %u channel %u) from intersection",
|
||||
c->reg_class, c->channel[0]);
|
||||
p2p->op_reg_class = c->reg_class;
|
||||
p2p->op_channel = c->channel[0];
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/* Try a channel where we might be able to use HT40 */
|
||||
for (i = 0; i < intersection->reg_classes; i++) {
|
||||
struct p2p_reg_class *c = &intersection->reg_class[i];
|
||||
|
|
|
@ -94,6 +94,10 @@ int p2p_channel_to_freq(int op_class, int channel)
|
|||
if (channel < 149 || channel > 161)
|
||||
return -1;
|
||||
return 5000 + 5 * channel;
|
||||
case 128: /* center freqs 42, 58, 106, 122, 138, 155; 80 MHz */
|
||||
if (channel < 36 || channel > 161)
|
||||
return -1;
|
||||
return 5000 + 5 * channel;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue