• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/net80211/

Lines Matching defs:freq

1008 mapgsm(u_int freq, u_int flags)
1010 freq *= 10;
1012 freq += 5;
1014 freq += 10;
1016 freq += 20;
1018 return (freq - 906*10) / 5;
1022 mappsb(u_int freq, u_int flags)
1024 return 37 + ((freq * 10) + ((freq % 5) == 2 ? 5 : 0) - 49400) / 5;
1031 ieee80211_mhz2ieee(u_int freq, u_int flags)
1035 return mapgsm(freq, flags);
1037 if (freq == 2484)
1039 if (freq < 2484)
1040 return ((int) freq - 2407) / 5;
1042 return 15 + ((freq - 2512) / 20);
1044 if (freq <= 5000) {
1046 if (IS_FREQ_IN_PSB(freq))
1047 return mappsb(freq, flags);
1048 return (freq - 4000) / 5;
1050 return (freq - 5000) / 5;
1052 if (freq == 2484)
1054 if (freq < 2484) {
1055 if (907 <= freq && freq <= 922)
1056 return mapgsm(freq, flags);
1057 return ((int) freq - 2407) / 5;
1059 if (freq < 5000) {
1060 if (IS_FREQ_IN_PSB(freq))
1061 return mappsb(freq, flags);
1062 else if (freq > 4900)
1063 return (freq - 4000) / 5;
1065 return 15 + ((freq - 2512) / 20);
1067 return (freq - 5000) / 5;
1196 printf("%s: %d, freq=%d, midpoint=%d, freq1=%d, freq2=%d\n",
1217 printf("%s: %d, freq=%d, midpoint=%d, freq1=%d, freq2=%d\n",
1256 is_vht160_valid_freq(uint16_t freq)
1261 if (freq >= vht160_chan_ranges[i].freq_start &&
1262 freq < vht160_chan_ranges[i].freq_end)
1269 is_vht80_valid_freq(uint16_t freq)
1273 if (freq >= vht80_chan_ranges[i].freq_start &&
1274 freq < vht80_chan_ranges[i].freq_end)
1282 uint8_t ieee, uint16_t freq, int8_t maxregpower, uint32_t flags)
1290 printf("%s: %d: ieee=%d, freq=%d, flags=0x%08x\n",
1291 __func__, *nchans, ieee, freq, flags);
1296 c->ic_freq = freq != 0 ? freq : ieee80211_ieee2mhz(ieee, flags);
1452 int *nchans, uint8_t ieee, uint16_t freq, int8_t maxregpower,
1461 error = addchan(chans, maxchans, nchans, ieee, freq, maxregpower,
1473 int *nchans, uint8_t ieee, uint16_t freq, int8_t maxregpower,
1477 return (ieee80211_add_channel_cbw(chans, maxchans, nchans, ieee, freq,
1482 findchannel(struct ieee80211_channel chans[], int nchans, uint16_t freq,
1492 if (c->ic_freq == freq &&
1508 uint16_t freq;
1511 freq = ieee80211_ieee2mhz(ieee, flags);
1518 cent = findchannel(chans, *nchans, freq, flags);
1522 extc = findchannel(chans, *nchans, freq + 20, flags);
1602 uint16_t freq;
1607 freq = ieee80211_ieee2mhz(ieee[i], flags[0]);
1623 if (! is_vht160_valid_freq(freq))
1637 if (! is_vht80_valid_freq(freq))
1660 freq - 20 !=
1677 freq + 20 !=
1683 ieee[i], freq, 0, flags[j]);
1744 ieee80211_find_channel(struct ieee80211com *ic, int freq, int flags)
1750 if (c != NULL && c->ic_freq == freq &&
1754 return (findchannel(ic->ic_channels, ic->ic_nchans, freq, flags));
1813 * Strictly speaking we only use freq for now,
1823 * If the rx status contains a valid ieee/freq, then
1842 "%s: freq=%d, ieee=%d, flags=0x%08x; c=%p\n",
2322 printf("%s: cannot map channel to mode; freq %u flags 0x%x\n",