Lines Matching +full:5 +full:mhz
37 /* A chanspec holds the channel number, band, bandwidth and primary 20MHz sideband */
48 #define CH_5MHZ_APART 1 /* 2G band channels are 5 Mhz apart */
52 #define CH_MIN_2G_40M_CHANNEL 3u /* Min 40MHz center channel in 2G band */
53 #define CH_MAX_2G_40M_CHANNEL 11u /* Max 40MHz center channel in 2G band */
134 /* pass a 80MHz channel number (uint8) to get respective LL, UU, LU, UL */
216 /* pass a center channel and get channel offset from it by 10MHz */
224 /* pass a 160MHz center channel to get 20MHz subband channel numbers */
226 #define LLU_20_SB_160(channel) CH_OFF_10MHZ_MULTIPLES(channel, -5)
231 #define UUL_20_SB_160(channel) CH_OFF_10MHZ_MULTIPLES(channel, 5)
234 /* given an 80p80 channel, return the lower 80MHz sideband */
239 /* given an 80p80 channel, return the upper 80MHz sideband */
244 /* pass an 80P80 chanspec (not channel) to get 20MHz subnand channel numbers */
254 /* get lowest 20MHz sideband of a given chspec
264 /* get upper most 20MHz sideband of a given chspec
274 /* call this with chspec and a valid 20MHz sideband of this channel to get the next 20MHz sideband
283 /* call this with chspec and a valid 20MHz sideband of this channel to get the next 20MHz sideband
316 /* get lowest 20MHz sideband of a given chspec
323 /* get upper most 20MHz sideband of a given chspec
331 /* call this with chspec and a valid 20MHz sideband of this channel to get the next 20MHz sideband
341 /* Iterator for 20MHz side bands of a chanspec: (chanspec_t chspec, uint8 channel)
481 * chan_freq = chan_factor * 500Mhz + chan_number * 5
486 * The value corresponds to 2407 MHz.
488 #define WF_CHAN_FACTOR_2_4_G 4814 /* 2.4 GHz band, 2407 MHz */
491 * Channel Factor for the starting frequence of 5 GHz channels.
492 * The value corresponds to 5000 MHz.
494 #define WF_CHAN_FACTOR_5_G 10000 /* 5 GHz band, 5000 MHz */
498 * The value corresponds to 4000 MHz.
502 #define WLC_2G_25MHZ_OFFSET 5 /* 2.4GHz band channel offset */
505 * No of sub-band vlaue of the specified Mhz chanspec
513 * Return the chanspec bandwidth in MHz
514 * Bandwidth of 160 MHz will be returned for 80+80MHz chanspecs.
518 * @return bandwidth of chspec in MHz units
590 * Return the primary 20MHz channel.
592 * This function returns the channel number of the primary 20MHz channel. For
593 * 20MHz channels this is just the channel number. For 40MHz or wider channels
594 * it is the primary 20MHz channel specified by the chanspec.
598 * @return Returns the channel number of the primary 20MHz channel
613 * "5", "10", "20", "40", "80", "160", "80+80"
618 * Create a 20MHz chanspec for the given band.
623 * Return the primary 20MHz chanspec.
625 * This function returns the chanspec of the primary 20MHz channel. For 20MHz
626 * channels this is just the chanspec. For 40MHz or wider channels it is the
627 * chanspec of the primary 20MHZ channel specified by the chanspec.
631 * @return Returns the chanspec of the primary 20MHz channel
639 * Return the primary 40MHz chanspec.
641 * This function returns the chanspec for the primary 40MHz of an 80MHz or wider channel.
642 * The primary 20MHz channel of the returned 40MHz chanspec is the same as the primary 20MHz
650 * If the given base frequency is zero, a base frequency of 5 GHz is assumed for
651 * frequencies from 5 - 6 GHz, and 2.407 GHz is assumed for 2.4 - 2.5 GHz.
653 * Frequency is specified in MHz.
656 * 2.4 GHz and 5 GHz bands.
662 * multiple of 5 MHz from the base frequency to the base plus 1 GHz.
666 * @param freq frequency in MHz
667 * @param start_factor base frequency in 500 kHz units, e.g. 10000 for 5 GHz
677 * Return the center frequency in MHz of the given channel and base frequency.
679 * Return the center frequency in MHz of the given channel and base frequency.
685 * 2.4 GHz and 5 GHz bands.
688 * Odd start_factors produce channels on .5 MHz boundaries, in which case
689 * the answer is rounded down to an integral MHz.
695 * @param start_factor base frequency in 500 kHz units, e.g. 10000 for 5 GHz
697 * @return Returns a frequency in MHz
705 * Returns the chanspec 80Mhz channel corresponding to the following input
708 * primary_channel - primary 20Mhz channel
709 * center_channel - center frequecny of the 80Mhz channel
732 * Returns the 80+80 MHz chanspec corresponding to the following input parameters
734 * primary_20mhz - Primary 20 MHz channel
739 * The primary channel must be contained in one of the 80MHz channels. This routine
740 * will determine which frequency segment is the primary 80 MHz segment.
750 * Returns the center channel of the primary 80 MHz sub-band of the provided chanspec
754 * @return center channel number of the primary 80MHz sub-band of the input.
755 * Will return the center channel of an input 80MHz chspec.
756 * Will return INVCHANNEL if the chspec is malformed or less than 80MHz bw.
761 * Returns the center channel of the secondary 80 MHz sub-band of the provided chanspec
765 * @return center channel number of the secondary 80MHz sub-band of the input.
766 * Will return INVCHANNEL if the chspec is malformed or bw is not greater than 80MHz.
771 * Returns the chanspec for the primary 80MHz sub-band of an 160MHz or 80+80 channel
775 * @return An 80MHz chanspec describing the primary 80MHz sub-band of the input.
776 * Will return an input 80MHz chspec as is.
777 * Will return INVCHANSPEC if the chspec is malformed or less than 80MHz bw.
782 * Returns the chanspec for the secondary 80MHz sub-band of an 160MHz or 80+80 channel
784 * does not contain the primary 20MHz channel.
788 * @return An 80MHz chanspec describing the secondary 80MHz sub-band of the input.
789 * Will return INVCHANSPEC if the chspec is malformed or bw is not greater than 80MHz.
794 * For 160MHz or 80P80 chanspec, set ch[0]/ch[1] to be the low/high 80 Mhz channels
796 * For 20/40/80MHz chanspec, set ch[0] to be the center freq, and chan[1]=-1
803 * In case of 80+80 chanspec it returns the primary 80 Mhz centre channel
810 /* Populates array with all 20MHz side bands of a given chanspec_t in the following order:
815 * Works with 20, 40, 80, 80p80 and 160MHz chspec
822 * (Overlap: At least one 20MHz subband is common between the two chanspecs provided)