Home | History | Annotate | Download | only in p2p

Lines Matching refs:freq

108 int p2p_freq_to_channel(unsigned int freq, u8 *op_class, u8 *channel)
111 if (freq >= 2412 && freq <= 2472) {
112 if ((freq - 2407) % 5)
116 *channel = (freq - 2407) / 5;
120 if (freq == 2484) {
126 if (freq >= 5180 && freq <= 5240) {
127 if ((freq - 5000) % 5)
131 *channel = (freq - 5000) / 5;
135 if (freq >= 5745 && freq <= 5805) {
136 if ((freq - 5000) % 5)
140 *channel = (freq - 5000) / 5;
232 unsigned int freq)
239 reg->channel[j]) == (int) freq)
248 static int p2p_block_op_freq(unsigned int freq)
250 return (freq >= 5170 && freq < 5745);
272 int p2p_supported_freq(struct p2p_data *p2p, unsigned int freq)
277 if (p2p_block_op_freq(freq))
280 if (p2p_freq_to_channel(freq, &op_reg_class, &op_channel) < 0)
291 int freq = 0;
295 freq = p2p_channel_to_freq(
298 if (freq < 0)
299 freq = 0;
301 return freq;
305 freq = p2p_channel_to_freq(p2p->cfg->pref_chan[i].op_class,
307 if (p2p_channels_includes_freq(channels, freq))
308 return freq;