Home
last modified time | relevance | path

Searched refs:MHZ_TO_KHZ (Results 1 – 16 of 16) sorted by relevance

/kernel/linux/linux-5.10/net/wireless/
Dchan.c240 if (control_freq + MHZ_TO_KHZ(control_width) / 2 > in cfg80211_chandef_valid()
241 oper_freq + MHZ_TO_KHZ(oper_width) / 2) in cfg80211_chandef_valid()
244 if (control_freq - MHZ_TO_KHZ(control_width) / 2 < in cfg80211_chandef_valid()
245 oper_freq - MHZ_TO_KHZ(oper_width) / 2) in cfg80211_chandef_valid()
444 bandwidth = MHZ_TO_KHZ(bandwidth); in cfg80211_get_start_freq()
445 if (bandwidth <= MHZ_TO_KHZ(20)) in cfg80211_get_start_freq()
448 start_freq = center_freq - bandwidth / 2 + MHZ_TO_KHZ(10); in cfg80211_get_start_freq()
458 bandwidth = MHZ_TO_KHZ(bandwidth); in cfg80211_get_end_freq()
459 if (bandwidth <= MHZ_TO_KHZ(20)) in cfg80211_get_end_freq()
462 end_freq = center_freq + bandwidth / 2 - MHZ_TO_KHZ(10); in cfg80211_get_end_freq()
[all …]
Dof.c26 u32 bw = MHZ_TO_KHZ(20); in wiphy_freq_limits_valid_chan()
33 MHZ_TO_KHZ(chan->center_freq), in wiphy_freq_limits_valid_chan()
Dreg.c1202 bw = min_t(unsigned int, bw, MHZ_TO_KHZ(80)); in reg_get_max_bandwidth()
1204 bw = min_t(unsigned int, bw, MHZ_TO_KHZ(40)); in reg_get_max_bandwidth()
1212 bw = min_t(unsigned int, bw, MHZ_TO_KHZ(20)); in reg_get_max_bandwidth()
1624 for (bw = MHZ_TO_KHZ(bws[i]); bw >= min_bw; bw = MHZ_TO_KHZ(bws[i--])) { in __freq_reg_info()
1636 u32 min_bw = center_freq < MHZ_TO_KHZ(1000) ? 1 : 20; in freq_reg_info()
1638 return __freq_reg_info(wiphy, center_freq, MHZ_TO_KHZ(min_bw)); in freq_reg_info()
1679 MHZ_TO_KHZ(10))) in reg_rule_to_chan_bw_flags()
1683 MHZ_TO_KHZ(20))) in reg_rule_to_chan_bw_flags()
1726 if (max_bandwidth_khz < MHZ_TO_KHZ(10)) in reg_rule_to_chan_bw_flags()
1728 if (max_bandwidth_khz < MHZ_TO_KHZ(20)) in reg_rule_to_chan_bw_flags()
[all …]
Dutil.c84 return MHZ_TO_KHZ(2484); in ieee80211_channel_to_freq_khz()
86 return MHZ_TO_KHZ(2407 + chan * 5); in ieee80211_channel_to_freq_khz()
90 return MHZ_TO_KHZ(4000 + chan * 5); in ieee80211_channel_to_freq_khz()
92 return MHZ_TO_KHZ(5000 + chan * 5); in ieee80211_channel_to_freq_khz()
97 return MHZ_TO_KHZ(5935); in ieee80211_channel_to_freq_khz()
99 return MHZ_TO_KHZ(5950 + chan * 5); in ieee80211_channel_to_freq_khz()
103 return MHZ_TO_KHZ(56160 + chan * 2160); in ieee80211_channel_to_freq_khz()
Dnl80211.c1082 freq_reg_info(wiphy, MHZ_TO_KHZ(chan->center_freq)); in nl80211_msg_put_channel()
2899 control_freq = MHZ_TO_KHZ( in nl80211_parse_chandef()
8131 freq = MHZ_TO_KHZ(freq); in nl80211_trigger_scan()
9554 freq = MHZ_TO_KHZ(nla_get_u32(info->attrs[NL80211_ATTR_WIPHY_FREQ])); in nl80211_authenticate()
9770 freq = MHZ_TO_KHZ(nla_get_u32(info->attrs[NL80211_ATTR_WIPHY_FREQ])); in nl80211_associate()
10542 freq = MHZ_TO_KHZ(nla_get_u32( in nl80211_connect()
10554 freq = MHZ_TO_KHZ(freq); in nl80211_connect()
/kernel/linux/linux-5.10/include/net/
Dregulatory.h236 .freq_range.start_freq_khz = MHZ_TO_KHZ(start), \
237 .freq_range.end_freq_khz = MHZ_TO_KHZ(end), \
238 .freq_range.max_bandwidth_khz = MHZ_TO_KHZ(bw), \
Dcfg80211.h5374 return MHZ_TO_KHZ(chan->center_freq) + chan->freq_offset; in ieee80211_channel_to_khz()
5422 return ieee80211_freq_khz_to_channel(MHZ_TO_KHZ(freq)); in ieee80211_frequency_to_channel()
5445 return ieee80211_get_channel_khz(wiphy, MHZ_TO_KHZ(freq)); in ieee80211_get_channel()
7222 return cfg80211_rx_mgmt_khz(wdev, MHZ_TO_KHZ(freq), sig_dbm, buf, len, in cfg80211_rx_mgmt()
7470 cfg80211_report_obss_beacon_khz(wiphy, frame, len, MHZ_TO_KHZ(freq), in cfg80211_report_obss_beacon()
7561 return MHZ_TO_KHZ(chandef->center_freq1) + chandef->freq1_offset; in ieee80211_chandef_to_khz()
Dmac80211.h1428 return MHZ_TO_KHZ(rx_status->freq) + in ieee80211_rx_status_to_khz()
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/mwifiex/
Dsta_cmdresp.c1065 bw = MHZ_TO_KHZ(80); in mwifiex_create_custom_regdomain()
1067 bw = MHZ_TO_KHZ(40); in mwifiex_create_custom_regdomain()
1069 bw = MHZ_TO_KHZ(20); in mwifiex_create_custom_regdomain()
1072 bw = MHZ_TO_KHZ(40); in mwifiex_create_custom_regdomain()
1074 bw = MHZ_TO_KHZ(20); in mwifiex_create_custom_regdomain()
1085 rule->freq_range.end_freq_khz = MHZ_TO_KHZ(freq + 10); in mwifiex_create_custom_regdomain()
1094 rule->freq_range.start_freq_khz = MHZ_TO_KHZ(freq - 10); in mwifiex_create_custom_regdomain()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/
Dreg.c482 reg_rule->freq_range.start_freq_khz = MHZ_TO_KHZ(start_freq); in ath11k_reg_update_rule()
483 reg_rule->freq_range.end_freq_khz = MHZ_TO_KHZ(end_freq); in ath11k_reg_update_rule()
484 reg_rule->freq_range.max_bandwidth_khz = MHZ_TO_KHZ(bw); in ath11k_reg_update_rule()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/
Dregd.c271 reg_rule = freq_reg_info(wiphy, MHZ_TO_KHZ(ch->center_freq)); in ath_force_clear_no_ir_chan()
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtw88/
Dregd.c280 MHZ_TO_KHZ(ch->center_freq)); in rtw_regd_apply_beaconing_flags()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/
Diwl-nvm-parse.c1280 MHZ_TO_KHZ(center_freq - 10); in iwl_parse_nvm_mcc_info()
1282 rule->freq_range.end_freq_khz = MHZ_TO_KHZ(center_freq + 10); in iwl_parse_nvm_mcc_info()
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Dchannel.c680 MHZ_TO_KHZ(ch->center_freq)); in brcms_reg_apply_beaconing_flags()
/kernel/linux/linux-5.10/include/linux/
Dieee80211.h3716 #define MHZ_TO_KHZ(freq) ((freq) * 1000) macro
/kernel/linux/linux-5.10/net/mac80211/
Dutil.c1550 rrule = freq_reg_info(sdata->wdev.wiphy, MHZ_TO_KHZ(center_freq)); in ieee80211_regulatory_limit_wmm_params()