mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 08:48:31 -05:00
P2P: Add 60 GHz in channel to frequency conversion
Add regulatory classes for the 60GHz band. Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com> Signed-off-by: Boris Sorochkin <qca_bsoroc@qca.qualcomm.com>
This commit is contained in:
parent
fc3f1d1b4d
commit
f7454c97df
@ -98,6 +98,10 @@ int p2p_channel_to_freq(int op_class, int channel)
|
||||
if (channel < 36 || channel > 161)
|
||||
return -1;
|
||||
return 5000 + 5 * channel;
|
||||
case 180: /* 60 GHz band, channels 1..4 */
|
||||
if (channel < 1 || channel > 4)
|
||||
return -1;
|
||||
return 56160 + 2160 * channel;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user