Lines Matching refs:freq
148 int p2p_freq_to_channel(const char *country, unsigned int freq, u8 *reg_class,
152 if (freq >= 2412 && freq <= 2472) {
154 *channel = (freq - 2407) / 5;
158 if (freq == 2484) {
164 if (freq >= 5180 && freq <= 5240) {
166 *channel = (freq - 5000) / 5;
170 if (freq >= 5745 && freq <= 5805) {
172 *channel = (freq - 5000) / 5;
263 int p2p_supported_freq(struct p2p_data *p2p, unsigned int freq)
266 if (p2p_freq_to_channel(p2p->cfg->country, freq,