Home | History | Annotate | Download | only in network

Lines Matching full:channel

16     # A mapping of frequency to channel number.  This includes some
164 # tolerate HT40+ on channel 7 (not allowed in the US). We take the loose
187 """Returns the channel number associated with a given frequency.
191 @return int frequency associated with the channel.
198 def get_frequency_for_channel(channel):
199 """Returns the frequency associated with a given channel number.
201 @param value: int channel number.
203 @return int frequency in MHz associated with the channel.
207 if channel == channel_iter:
210 raise error.TestFail('Unknown channel value: %r.' % channel)
229 channel_supported = (self.channel in
239 channel_supported = (self.channel in
321 def channel(self):
322 """@return int channel number for self.frequency."""
326 @channel.setter
327 def channel(self, value):
328 """Sets the channel number to configure hostapd to listen on.
330 @param value: int channel number.
377 the phy to listen on the correct channel. Part of doing
378 so is to specify the channel width for HT channels. In the
403 channel = 'ch%03d' % self.channel
404 return '_'.join([channel, mode, self._security_config.security])
419 return 'ch%d' % self.channel
452 def __init__(self, mode=MODE_11B, channel=None, frequency=None,
467 You may specify channel or frequency, but not both. Both options
468 are checked for validity (i.e. you can't specify an invalid channel
472 @param channel int channel number.
473 @param frequency int frequency of channel.
488 @param vht_channel_width object channel width
489 @param vht_center_channel int center channel of segment 0.
501 if channel is not None and frequency is not None:
502 raise error.TestError('Specify either frequency or channel '
519 if channel:
520 self.channel = channel
524 raise error.TestError('Specify either frequency or channel.')
558 raise error.TestFail('Invalid channel width')
559 # TODO(zqiu) Add checking for center channel based on the channel width
560 # and operating channel.
570 return ('%s(mode=%r, channel=%r, frequency=%r, '
577 self.channel,
592 """Check whether channel is supported by the current hardware mode.
594 @param value: int channel to check.
595 @return True iff the current mode supports the band of the channel.
598 for freq, channel in self.CHANNEL_MAP.iteritems():
599 if channel == value:
621 channel = self.CHANNEL_MAP[frequency]
622 supports_plus = (channel in
624 supports_minus = (channel in
657 conf['channel'] = self.channel