Home
last modified time | relevance | path

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

/linux/include/net/
H A Dregulatory.h227 .freq_range.start_freq_khz = MHZ_TO_KHZ(start), \
228 .freq_range.end_freq_khz = MHZ_TO_KHZ(end), \
229 .freq_range.max_bandwidth_khz = MHZ_TO_KHZ(bw), \
H A Dcfg80211.h6965 return MHZ_TO_KHZ(chan->center_freq) + chan->freq_offset; in ieee80211_channel_to_khz()
7003 return ieee80211_freq_khz_to_channel(MHZ_TO_KHZ(freq)); in ieee80211_frequency_to_channel()
7026 return ieee80211_get_channel_khz(wiphy, MHZ_TO_KHZ(freq)); in ieee80211_get_channel()
9111 .freq = MHZ_TO_KHZ(freq), in cfg80211_rx_mgmt()
9439 cfg80211_report_obss_beacon_khz(wiphy, frame, len, MHZ_TO_KHZ(freq), in cfg80211_report_obss_beacon()
9593 return MHZ_TO_KHZ(chandef->center_freq1) + chandef->freq1_offset; in ieee80211_chandef_to_khz()
10418 MHZ_TO_KHZ(chandef->center_freq1) + chandef->freq1_offset; in cfg80211_s1g_get_start_freq_khz()
10433 MHZ_TO_KHZ(chandef->center_freq1) + chandef->freq1_offset; in cfg80211_s1g_get_end_freq_khz()
H A Dmac80211.h1707 return MHZ_TO_KHZ(rx_status->freq) + in ieee80211_rx_status_to_khz()
/linux/net/wireless/
H A Dreg.c1215 bw = min_t(unsigned int, bw, MHZ_TO_KHZ(160)); in reg_get_max_bandwidth()
1217 bw = min_t(unsigned int, bw, MHZ_TO_KHZ(80)); in reg_get_max_bandwidth()
1219 bw = min_t(unsigned int, bw, MHZ_TO_KHZ(40)); in reg_get_max_bandwidth()
1227 bw = min_t(unsigned int, bw, MHZ_TO_KHZ(20)); in reg_get_max_bandwidth()
1658 for (bw = MHZ_TO_KHZ(bws[i]); bw >= min_bw; bw = MHZ_TO_KHZ(bws[i--])) { in __freq_reg_info()
1670 u32 min_bw = center_freq < MHZ_TO_KHZ(1000) ? 1 : 20; in freq_reg_info()
1672 return __freq_reg_info(wiphy, center_freq, MHZ_TO_KHZ(min_bw)); in freq_reg_info()
1711 if (max_bandwidth_khz < MHZ_TO_KHZ(16)) in reg_rule_to_chan_bw_flags()
1713 if (max_bandwidth_khz < MHZ_TO_KHZ(8)) in reg_rule_to_chan_bw_flags()
1715 if (max_bandwidth_khz < MHZ_TO_KHZ(4)) in reg_rule_to_chan_bw_flags()
[all …]
H A Dchan.c63 center_freq = MHZ_TO_KHZ((cf == 1) ? in cfg80211_get_start_freq()
65 bandwidth = MHZ_TO_KHZ(cfg80211_chandef_get_width(chandef)); in cfg80211_get_start_freq()
67 if (bandwidth <= MHZ_TO_KHZ(20)) in cfg80211_get_start_freq()
70 start_freq = center_freq - bandwidth / 2 + MHZ_TO_KHZ(10); in cfg80211_get_start_freq()
80 center_freq = MHZ_TO_KHZ((cf == 1) ? in cfg80211_get_end_freq()
82 bandwidth = MHZ_TO_KHZ(cfg80211_chandef_get_width(chandef)); in cfg80211_get_end_freq()
84 if (bandwidth <= MHZ_TO_KHZ(20)) in cfg80211_get_end_freq()
87 end_freq = center_freq + bandwidth / 2 - MHZ_TO_KHZ(10); in cfg80211_get_end_freq()
96 freq += MHZ_TO_KHZ(20), \
106 freq_khz += MHZ_TO_KHZ(1))
H A 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()
H A Dutil.c79 return MHZ_TO_KHZ(2484); in ieee80211_channel_to_freq_khz()
81 return MHZ_TO_KHZ(2407 + chan * 5); in ieee80211_channel_to_freq_khz()
85 return MHZ_TO_KHZ(4000 + chan * 5); in ieee80211_channel_to_freq_khz()
87 return MHZ_TO_KHZ(5000 + chan * 5); in ieee80211_channel_to_freq_khz()
92 return MHZ_TO_KHZ(5935); in ieee80211_channel_to_freq_khz()
94 return MHZ_TO_KHZ(5950 + chan * 5); in ieee80211_channel_to_freq_khz()
98 return MHZ_TO_KHZ(56160 + chan * 2160); in ieee80211_channel_to_freq_khz()
3006 width = MHZ_TO_KHZ(cfg80211_chandef_get_width(chandef)); in cfg80211_radio_chandef_valid()
3010 freq = MHZ_TO_KHZ(chandef->center_freq2); in cfg80211_radio_chandef_valid()
H A Dnl80211.c1344 freq_reg_info(wiphy, MHZ_TO_KHZ(chan->center_freq)); in nl80211_msg_put_channel()
3583 control_freq = MHZ_TO_KHZ( in _nl80211_parse_chandef()
10566 freq = MHZ_TO_KHZ(freq); in nl80211_trigger_scan()
12046 freq = MHZ_TO_KHZ(nla_get_u32(info->attrs[NL80211_ATTR_WIPHY_FREQ])); in nl80211_authenticate()
12278 freq = MHZ_TO_KHZ(nla_get_u32(attrs[NL80211_ATTR_WIPHY_FREQ])); in nl80211_assoc_bss()
13269 freq = MHZ_TO_KHZ(nla_get_u32( in nl80211_connect()
13281 freq = MHZ_TO_KHZ(freq); in nl80211_connect()
/linux/drivers/net/wireless/marvell/mwifiex/
H A Dsta_cmdresp.c1078 bw = MHZ_TO_KHZ(80); in mwifiex_create_custom_regdomain()
1080 bw = MHZ_TO_KHZ(40); in mwifiex_create_custom_regdomain()
1082 bw = MHZ_TO_KHZ(20); in mwifiex_create_custom_regdomain()
1085 bw = MHZ_TO_KHZ(40); in mwifiex_create_custom_regdomain()
1087 bw = MHZ_TO_KHZ(20); in mwifiex_create_custom_regdomain()
1098 rule->freq_range.end_freq_khz = MHZ_TO_KHZ(freq + 10); in mwifiex_create_custom_regdomain()
1107 rule->freq_range.start_freq_khz = MHZ_TO_KHZ(freq - 10); in mwifiex_create_custom_regdomain()
/linux/net/wireless/tests/
H A Dscan.c360 inform_bss.chan = ieee80211_get_channel_khz(wiphy, MHZ_TO_KHZ(2412)); in test_inform_bss_ssid_only()
556 inform_bss.chan = ieee80211_get_channel_khz(wiphy, MHZ_TO_KHZ(2412)); in KUNIT_ARRAY_PARAM_DESC()
629 ieee80211_get_channel_khz(wiphy, MHZ_TO_KHZ(2462))); in KUNIT_ARRAY_PARAM_DESC()
/linux/drivers/net/wireless/ath/ath12k/
H A Dreg.c531 reg_rule->freq_range.start_freq_khz = MHZ_TO_KHZ(start_freq); in ath12k_reg_update_rule()
532 reg_rule->freq_range.end_freq_khz = MHZ_TO_KHZ(end_freq); in ath12k_reg_update_rule()
533 reg_rule->freq_range.max_bandwidth_khz = MHZ_TO_KHZ(bw); in ath12k_reg_update_rule()
H A Dmac.c13810 MHZ_TO_KHZ(freq_low)); in ath12k_mac_update_freq_range()
13812 MHZ_TO_KHZ(freq_high)); in ath12k_mac_update_freq_range()
13814 ar->freq_range.start_freq = MHZ_TO_KHZ(freq_low); in ath12k_mac_update_freq_range()
13815 ar->freq_range.end_freq = MHZ_TO_KHZ(freq_high); in ath12k_mac_update_freq_range()
/linux/drivers/net/wireless/ath/ath11k/
H A Dreg.c526 reg_rule->freq_range.start_freq_khz = MHZ_TO_KHZ(start_freq); in ath11k_reg_update_rule()
527 reg_rule->freq_range.end_freq_khz = MHZ_TO_KHZ(end_freq); in ath11k_reg_update_rule()
528 reg_rule->freq_range.max_bandwidth_khz = MHZ_TO_KHZ(bw); in ath11k_reg_update_rule()
/linux/drivers/net/wireless/intel/iwlwifi/
H A Diwl-nvm-parse.c1726 MHZ_TO_KHZ(center_freq - 10); in iwl_parse_nvm_mcc_info()
1728 rule->freq_range.end_freq_khz = MHZ_TO_KHZ(center_freq + 10); in iwl_parse_nvm_mcc_info()
1765 rule->freq_range.start_freq_khz = MHZ_TO_KHZ(2412); in iwl_parse_nvm_mcc_info()
1766 rule->freq_range.end_freq_khz = MHZ_TO_KHZ(2413); in iwl_parse_nvm_mcc_info()
1767 rule->freq_range.max_bandwidth_khz = MHZ_TO_KHZ(1); in iwl_parse_nvm_mcc_info()
/linux/drivers/net/wireless/ath/
H A Dregd.c271 reg_rule = freq_reg_info(wiphy, MHZ_TO_KHZ(ch->center_freq)); in ath_force_clear_no_ir_chan()
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
H A Dchannel.c680 MHZ_TO_KHZ(ch->center_freq)); in brcms_reg_apply_beaconing_flags()
/linux/include/linux/
H A Dieee80211.h2600 #define MHZ_TO_KHZ(freq) ((freq) * 1000) macro
/linux/net/mac80211/
H A Dutil.c992 rrule = freq_reg_info(sdata->wdev.wiphy, MHZ_TO_KHZ(center_freq)); in ieee80211_regulatory_limit_wmm_params()
H A Drx.c826 freq = MHZ_TO_KHZ(status->freq); in ieee80211_validate_monitor_radio()