Home | History | Annotate | Download | only in p2p

Lines Matching full:channels

61 		/* channels 1..13 */
70 case 83: /* channels 1..9; 40 MHz */
71 case 84: /* channels 5..13; 40 MHz */
75 case 115: /* channels 36,40,44,48; indoor only */
76 case 118: /* channels 52,56,60,64; dfs */
80 case 124: /* channels 149,153,157,161 */
81 case 125: /* channels 149,153,157,161,165,169 */
85 case 116: /* channels 36,44; 40 MHz; indoor only */
86 case 117: /* channels 40,48; 40 MHz; indoor only */
87 case 119: /* channels 52,60; 40 MHz; dfs */
88 case 120: /* channels 56,64; 40 MHz; dfs */
92 case 126: /* channels 149,157; 40 MHz */
93 case 127: /* channels 153,161; 40 MHz */
115 *op_class = 81; /* 2.407 GHz, channels 1..13 */
130 *op_class = 115; /* 5 GHz, channels 36..48 */
139 *op_class = 124; /* 5 GHz, channels 149..161 */
156 for (i = 0; i < a->channels; i++) {
157 for (j = 0; j < b->channels; j++) {
160 res->channel[res->channels] = a->channel[i];
161 res->channels++;
162 if (res->channels == P2P_MAX_REG_CLASS_CHANNELS)
171 * @a: First set of supported channels
172 * @b: Second set of supported channels
173 * @res: Data structure for returning the intersection of support channels
175 * This function can be used to find a common set of supported channels. Both
176 * input channels sets are assumed to use the same country code. If different
197 if (res->reg_class[res->reg_classes].channels) {
209 * @channels: List of supported channels
214 int p2p_channels_includes(const struct p2p_channels *channels, u8 reg_class,
218 for (i = 0; i < channels->reg_classes; i++) {
219 const struct p2p_reg_class *reg = &channels->reg_class[i];
222 for (j = 0; j < reg->channels; j++) {
231 int p2p_channels_includes_freq(const struct p2p_channels *channels,
235 for (i = 0; i < channels->reg_classes; i++) {
236 const struct p2p_reg_class *reg = &channels->reg_class[i];
237 for (j = 0; j < reg->channels; j++) {
259 dc->channels = 0;
260 for (i=0; i < sc->channels; i++) {
263 dc->channel[dc->channels] = sc->channel[i];
264 dc->channels++;
267 return dc->channels;
282 return p2p_channels_includes(&p2p->cfg->channels, op_reg_class,
288 const struct p2p_channels *channels)
293 if (channels == NULL) {
307 if (p2p_channels_includes_freq(channels, freq))