MHZ_TO_KHZ
reg_rule->freq_range.start_freq_khz = MHZ_TO_KHZ(start_freq);
reg_rule->freq_range.end_freq_khz = MHZ_TO_KHZ(end_freq);
reg_rule->freq_range.max_bandwidth_khz = MHZ_TO_KHZ(bw);
MHZ_TO_KHZ(freq_low));
MHZ_TO_KHZ(freq_high));
ar->freq_range.start_freq = MHZ_TO_KHZ(freq_low);
ar->freq_range.end_freq = MHZ_TO_KHZ(freq_high);
reg_rule->freq_range.start_freq_khz = MHZ_TO_KHZ(start_freq);
reg_rule->freq_range.end_freq_khz = MHZ_TO_KHZ(end_freq);
reg_rule->freq_range.max_bandwidth_khz = MHZ_TO_KHZ(bw);
reg_rule = freq_reg_info(wiphy, MHZ_TO_KHZ(ch->center_freq));
MHZ_TO_KHZ(ch->center_freq));
MHZ_TO_KHZ(center_freq - 10);
rule->freq_range.end_freq_khz = MHZ_TO_KHZ(center_freq + 10);
rule->freq_range.start_freq_khz = MHZ_TO_KHZ(2412);
rule->freq_range.end_freq_khz = MHZ_TO_KHZ(2413);
rule->freq_range.max_bandwidth_khz = MHZ_TO_KHZ(1);
bw = MHZ_TO_KHZ(80);
bw = MHZ_TO_KHZ(40);
bw = MHZ_TO_KHZ(20);
bw = MHZ_TO_KHZ(40);
bw = MHZ_TO_KHZ(20);
rule->freq_range.end_freq_khz = MHZ_TO_KHZ(freq + 10);
rule->freq_range.start_freq_khz = MHZ_TO_KHZ(freq - 10);
MHZ_TO_KHZ(chandef->center_freq1) + chandef->freq1_offset;
MHZ_TO_KHZ(chandef->center_freq1) + chandef->freq1_offset;
return MHZ_TO_KHZ(chan->center_freq) + chan->freq_offset;
return ieee80211_freq_khz_to_channel(MHZ_TO_KHZ(freq));
return ieee80211_get_channel_khz(wiphy, MHZ_TO_KHZ(freq));
.freq = MHZ_TO_KHZ(freq),
cfg80211_report_obss_beacon_khz(wiphy, frame, len, MHZ_TO_KHZ(freq),
return MHZ_TO_KHZ(chandef->center_freq1) + chandef->freq1_offset;
return MHZ_TO_KHZ(rx_status->freq) +
.freq_range.start_freq_khz = MHZ_TO_KHZ(start), \
.freq_range.end_freq_khz = MHZ_TO_KHZ(end), \
.freq_range.max_bandwidth_khz = MHZ_TO_KHZ(bw), \
freq = MHZ_TO_KHZ(status->freq);
rrule = freq_reg_info(sdata->wdev.wiphy, MHZ_TO_KHZ(center_freq));
freq_khz += MHZ_TO_KHZ(1))
center_freq = MHZ_TO_KHZ((cf == 1) ?
bandwidth = MHZ_TO_KHZ(cfg80211_chandef_get_width(chandef));
if (bandwidth <= MHZ_TO_KHZ(20))
start_freq = center_freq - bandwidth / 2 + MHZ_TO_KHZ(10);
center_freq = MHZ_TO_KHZ((cf == 1) ?
bandwidth = MHZ_TO_KHZ(cfg80211_chandef_get_width(chandef));
if (bandwidth <= MHZ_TO_KHZ(20))
end_freq = center_freq + bandwidth / 2 - MHZ_TO_KHZ(10);
freq += MHZ_TO_KHZ(20), \
freq = MHZ_TO_KHZ(freq);
freq = MHZ_TO_KHZ(nla_get_u32(info->attrs[NL80211_ATTR_WIPHY_FREQ]));
freq = MHZ_TO_KHZ(nla_get_u32(attrs[NL80211_ATTR_WIPHY_FREQ]));
freq = MHZ_TO_KHZ(nla_get_u32(
freq = MHZ_TO_KHZ(freq);
freq_reg_info(wiphy, MHZ_TO_KHZ(chan->center_freq));
control_freq = MHZ_TO_KHZ(
u32 bw = MHZ_TO_KHZ(20);
MHZ_TO_KHZ(chan->center_freq),
bw = min_t(unsigned int, bw, MHZ_TO_KHZ(160));
bw = min_t(unsigned int, bw, MHZ_TO_KHZ(80));
bw = min_t(unsigned int, bw, MHZ_TO_KHZ(40));
bw = min_t(unsigned int, bw, MHZ_TO_KHZ(20));
for (bw = MHZ_TO_KHZ(bws[i]); bw >= min_bw; bw = MHZ_TO_KHZ(bws[i--])) {
u32 min_bw = center_freq < MHZ_TO_KHZ(1000) ? 1 : 20;
return __freq_reg_info(wiphy, center_freq, MHZ_TO_KHZ(min_bw));
if (max_bandwidth_khz < MHZ_TO_KHZ(16))
if (max_bandwidth_khz < MHZ_TO_KHZ(8))
if (max_bandwidth_khz < MHZ_TO_KHZ(4))
MHZ_TO_KHZ(10)))
MHZ_TO_KHZ(20)))
if (max_bandwidth_khz < MHZ_TO_KHZ(10))
if (max_bandwidth_khz < MHZ_TO_KHZ(20))
if (max_bandwidth_khz < MHZ_TO_KHZ(40))
if (max_bandwidth_khz < MHZ_TO_KHZ(80))
if (max_bandwidth_khz < MHZ_TO_KHZ(160))
if (max_bandwidth_khz < MHZ_TO_KHZ(320))
MHZ_TO_KHZ(10)))
MHZ_TO_KHZ(20)))
orig_chan_freq - MHZ_TO_KHZ(20));
orig_chan_freq + MHZ_TO_KHZ(20));
MHZ_TO_KHZ(20)))
freq_reg_info_regd(MHZ_TO_KHZ(channel->center_freq),
regd, MHZ_TO_KHZ(20));
for (bw = MHZ_TO_KHZ(20); bw >= min_bw; bw = bw / 2) {
MHZ_TO_KHZ(20));
inform_bss.chan = ieee80211_get_channel_khz(wiphy, MHZ_TO_KHZ(2412));
inform_bss.chan = ieee80211_get_channel_khz(wiphy, MHZ_TO_KHZ(2412));
ieee80211_get_channel_khz(wiphy, MHZ_TO_KHZ(2462)));
width = MHZ_TO_KHZ(cfg80211_chandef_get_width(chandef));
freq = MHZ_TO_KHZ(chandef->center_freq2);
return MHZ_TO_KHZ(2484);
return MHZ_TO_KHZ(2407 + chan * 5);
return MHZ_TO_KHZ(4000 + chan * 5);
return MHZ_TO_KHZ(5000 + chan * 5);
return MHZ_TO_KHZ(5935);
return MHZ_TO_KHZ(5950 + chan * 5);
return MHZ_TO_KHZ(56160 + chan * 2160);