Searched refs:MHZ_TO_KHZ (Results 1 – 15 of 15) sorted by relevance
/linux-6.1.9/net/wireless/ |
D | chan.c | 243 if (control_freq + MHZ_TO_KHZ(control_width) / 2 > in cfg80211_chandef_valid() 244 oper_freq + MHZ_TO_KHZ(oper_width) / 2) in cfg80211_chandef_valid() 247 if (control_freq - MHZ_TO_KHZ(control_width) / 2 < in cfg80211_chandef_valid() 248 oper_freq - MHZ_TO_KHZ(oper_width) / 2) in cfg80211_chandef_valid() 494 bandwidth = MHZ_TO_KHZ(bandwidth); in cfg80211_get_start_freq() 495 if (bandwidth <= MHZ_TO_KHZ(20)) in cfg80211_get_start_freq() 498 start_freq = center_freq - bandwidth / 2 + MHZ_TO_KHZ(10); in cfg80211_get_start_freq() 508 bandwidth = MHZ_TO_KHZ(bandwidth); in cfg80211_get_end_freq() 509 if (bandwidth <= MHZ_TO_KHZ(20)) in cfg80211_get_end_freq() 512 end_freq = center_freq + bandwidth / 2 - MHZ_TO_KHZ(10); in cfg80211_get_end_freq() [all …]
|
D | of.c | 26 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()
|
D | reg.c | 1252 bw = min_t(unsigned int, bw, MHZ_TO_KHZ(160)); in reg_get_max_bandwidth() 1254 bw = min_t(unsigned int, bw, MHZ_TO_KHZ(80)); in reg_get_max_bandwidth() 1256 bw = min_t(unsigned int, bw, MHZ_TO_KHZ(40)); in reg_get_max_bandwidth() 1264 bw = min_t(unsigned int, bw, MHZ_TO_KHZ(20)); in reg_get_max_bandwidth() 1678 for (bw = MHZ_TO_KHZ(bws[i]); bw >= min_bw; bw = MHZ_TO_KHZ(bws[i--])) { in __freq_reg_info() 1690 u32 min_bw = center_freq < MHZ_TO_KHZ(1000) ? 1 : 20; in freq_reg_info() 1692 return __freq_reg_info(wiphy, center_freq, MHZ_TO_KHZ(min_bw)); in freq_reg_info() 1733 MHZ_TO_KHZ(10))) in reg_rule_to_chan_bw_flags() 1737 MHZ_TO_KHZ(20))) in reg_rule_to_chan_bw_flags() 1780 if (max_bandwidth_khz < MHZ_TO_KHZ(10)) in reg_rule_to_chan_bw_flags() [all …]
|
D | util.c | 85 return MHZ_TO_KHZ(2484); in ieee80211_channel_to_freq_khz() 87 return MHZ_TO_KHZ(2407 + chan * 5); in ieee80211_channel_to_freq_khz() 91 return MHZ_TO_KHZ(4000 + chan * 5); in ieee80211_channel_to_freq_khz() 93 return MHZ_TO_KHZ(5000 + chan * 5); in ieee80211_channel_to_freq_khz() 98 return MHZ_TO_KHZ(5935); in ieee80211_channel_to_freq_khz() 100 return MHZ_TO_KHZ(5950 + chan * 5); in ieee80211_channel_to_freq_khz() 104 return MHZ_TO_KHZ(56160 + chan * 2160); in ieee80211_channel_to_freq_khz()
|
D | nl80211.c | 1192 freq_reg_info(wiphy, MHZ_TO_KHZ(chan->center_freq)); in nl80211_msg_put_channel() 3187 control_freq = MHZ_TO_KHZ( in nl80211_parse_chandef() 9006 freq = MHZ_TO_KHZ(freq); in nl80211_trigger_scan() 10487 freq = MHZ_TO_KHZ(nla_get_u32(info->attrs[NL80211_ATTR_WIPHY_FREQ])); in nl80211_authenticate() 10715 freq = MHZ_TO_KHZ(nla_get_u32(attrs[NL80211_ATTR_WIPHY_FREQ])); in nl80211_assoc_bss() 11645 freq = MHZ_TO_KHZ(nla_get_u32( in nl80211_connect() 11657 freq = MHZ_TO_KHZ(freq); in nl80211_connect()
|
/linux-6.1.9/include/net/ |
D | regulatory.h | 239 .freq_range.start_freq_khz = MHZ_TO_KHZ(start), \ 240 .freq_range.end_freq_khz = MHZ_TO_KHZ(end), \ 241 .freq_range.max_bandwidth_khz = MHZ_TO_KHZ(bw), \
|
D | cfg80211.h | 5924 return MHZ_TO_KHZ(chan->center_freq) + chan->freq_offset; in ieee80211_channel_to_khz() 5972 return ieee80211_freq_khz_to_channel(MHZ_TO_KHZ(freq)); in ieee80211_frequency_to_channel() 5995 return ieee80211_get_channel_khz(wiphy, MHZ_TO_KHZ(freq)); in ieee80211_get_channel() 7910 .freq = MHZ_TO_KHZ(freq), in cfg80211_rx_mgmt() 8233 cfg80211_report_obss_beacon_khz(wiphy, frame, len, MHZ_TO_KHZ(freq), in cfg80211_report_obss_beacon() 8329 return MHZ_TO_KHZ(chandef->center_freq1) + chandef->freq1_offset; in ieee80211_chandef_to_khz()
|
D | mac80211.h | 1518 return MHZ_TO_KHZ(rx_status->freq) + in ieee80211_rx_status_to_khz()
|
/linux-6.1.9/drivers/net/wireless/marvell/mwifiex/ |
D | sta_cmdresp.c | 1078 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-6.1.9/drivers/net/wireless/ath/ath11k/ |
D | reg.c | 521 reg_rule->freq_range.start_freq_khz = MHZ_TO_KHZ(start_freq); in ath11k_reg_update_rule() 522 reg_rule->freq_range.end_freq_khz = MHZ_TO_KHZ(end_freq); in ath11k_reg_update_rule() 523 reg_rule->freq_range.max_bandwidth_khz = MHZ_TO_KHZ(bw); in ath11k_reg_update_rule()
|
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/ |
D | iwl-nvm-parse.c | 1443 MHZ_TO_KHZ(center_freq - 10); in iwl_parse_nvm_mcc_info() 1445 rule->freq_range.end_freq_khz = MHZ_TO_KHZ(center_freq + 10); in iwl_parse_nvm_mcc_info() 1482 rule->freq_range.start_freq_khz = MHZ_TO_KHZ(2412); in iwl_parse_nvm_mcc_info() 1483 rule->freq_range.end_freq_khz = MHZ_TO_KHZ(2413); in iwl_parse_nvm_mcc_info() 1484 rule->freq_range.max_bandwidth_khz = MHZ_TO_KHZ(1); in iwl_parse_nvm_mcc_info()
|
/linux-6.1.9/drivers/net/wireless/ath/ |
D | regd.c | 271 reg_rule = freq_reg_info(wiphy, MHZ_TO_KHZ(ch->center_freq)); in ath_force_clear_no_ir_chan()
|
/linux-6.1.9/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
D | channel.c | 680 MHZ_TO_KHZ(ch->center_freq)); in brcms_reg_apply_beaconing_flags()
|
/linux-6.1.9/include/linux/ |
D | ieee80211.h | 4284 #define MHZ_TO_KHZ(freq) ((freq) * 1000) macro
|
/linux-6.1.9/net/mac80211/ |
D | util.c | 1580 rrule = freq_reg_info(sdata->wdev.wiphy, MHZ_TO_KHZ(center_freq)); in ieee80211_regulatory_limit_wmm_params()
|