From: Boris Sorochkin Date: Sun, 23 Mar 2014 17:02:12 +0000 (+0200) Subject: P2P: Add 60 GHz in channel to frequency conversion X-Git-Tag: hostap_2_2~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7454c97dfe1f1d1ef45ce3557bbf81a29af977b;p=thirdparty%2Fhostap.git P2P: Add 60 GHz in channel to frequency conversion Add regulatory classes for the 60GHz band. Signed-off-by: Vladimir Kondratiev Signed-off-by: Boris Sorochkin --- diff --git a/src/p2p/p2p_utils.c b/src/p2p/p2p_utils.c index 06cb646d9..ac190644a 100644 --- a/src/p2p/p2p_utils.c +++ b/src/p2p/p2p_utils.c @@ -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; }