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