/net/ipv6/ |
D | ip6_flowlabel.c | 373 fl_create(struct net *net, struct sock *sk, struct in6_flowlabel_req *freq, in fl_create() argument 381 olen = optlen - CMSG_ALIGN(sizeof(*freq)); in fl_create() 405 CMSG_ALIGN(sizeof(*freq)), olen)) in fl_create() 427 err = fl6_renew(fl, freq->flr_linger, freq->flr_expires); in fl_create() 430 fl->share = freq->flr_share; in fl_create() 431 addr_type = ipv6_addr_type(&freq->flr_dst); in fl_create() 437 fl->dst = freq->flr_dst; in fl_create() 502 int ipv6_flowlabel_opt_get(struct sock *sk, struct in6_flowlabel_req *freq, in ipv6_flowlabel_opt_get() argument 509 freq->flr_label = np->rcv_flowinfo & IPV6_FLOWLABEL_MASK; in ipv6_flowlabel_opt_get() 514 freq->flr_label = np->flow_label; in ipv6_flowlabel_opt_get() [all …]
|
D | ipv6_sockglue.c | 1387 struct in6_flowlabel_req freq; in do_ipv6_getsockopt() local 1390 if (len < sizeof(freq)) in do_ipv6_getsockopt() 1393 if (copy_from_user(&freq, optval, sizeof(freq))) in do_ipv6_getsockopt() 1396 if (freq.flr_action != IPV6_FL_A_GET) in do_ipv6_getsockopt() 1399 len = sizeof(freq); in do_ipv6_getsockopt() 1400 flags = freq.flr_flags; in do_ipv6_getsockopt() 1402 memset(&freq, 0, sizeof(freq)); in do_ipv6_getsockopt() 1404 val = ipv6_flowlabel_opt_get(sk, &freq, flags); in do_ipv6_getsockopt() 1410 if (copy_to_user(optval, &freq, len)) in do_ipv6_getsockopt()
|
/net/wireless/ |
D | chan.c | 18 static bool cfg80211_valid_60g_freq(u32 freq) in cfg80211_valid_60g_freq() argument 20 return freq >= 58320 && freq <= 70200; in cfg80211_valid_60g_freq() 453 u32 freq; in cfg80211_set_chans_dfs_state() local 455 for (freq = center_freq - bandwidth/2 + 10; in cfg80211_set_chans_dfs_state() 456 freq <= center_freq + bandwidth/2 - 10; in cfg80211_set_chans_dfs_state() 457 freq += 20) { in cfg80211_set_chans_dfs_state() 458 c = ieee80211_get_channel(wiphy, freq); in cfg80211_set_chans_dfs_state() 522 u32 freq, start_freq, end_freq; in cfg80211_get_chans_dfs_required() local 527 for (freq = start_freq; freq <= end_freq; freq += MHZ_TO_KHZ(20)) { in cfg80211_get_chans_dfs_required() 528 c = ieee80211_get_channel_khz(wiphy, freq); in cfg80211_get_chans_dfs_required() [all …]
|
D | util.c | 142 int ieee80211_freq_khz_to_channel(u32 freq) in ieee80211_freq_khz_to_channel() argument 145 freq = KHZ_TO_MHZ(freq); in ieee80211_freq_khz_to_channel() 148 if (freq == 2484) in ieee80211_freq_khz_to_channel() 150 else if (freq < 2484) in ieee80211_freq_khz_to_channel() 151 return (freq - 2407) / 5; in ieee80211_freq_khz_to_channel() 152 else if (freq >= 4910 && freq <= 4980) in ieee80211_freq_khz_to_channel() 153 return (freq - 4000) / 5; in ieee80211_freq_khz_to_channel() 154 else if (freq < 5925) in ieee80211_freq_khz_to_channel() 155 return (freq - 5000) / 5; in ieee80211_freq_khz_to_channel() 156 else if (freq == 5935) in ieee80211_freq_khz_to_channel() [all …]
|
D | wext-compat.h | 16 struct iw_freq *freq, char *extra); 19 struct iw_freq *freq, char *extra); 35 struct iw_freq *freq, char *extra); 38 struct iw_freq *freq, char *extra); 60 int cfg80211_wext_freq(struct iw_freq *freq);
|
D | wext-sme.c | 72 int err, freq; in cfg80211_mgd_wext_siwfreq() local 78 freq = cfg80211_wext_freq(wextfreq); in cfg80211_mgd_wext_siwfreq() 79 if (freq < 0) in cfg80211_mgd_wext_siwfreq() 80 return freq; in cfg80211_mgd_wext_siwfreq() 82 if (freq) { in cfg80211_mgd_wext_siwfreq() 83 chan = ieee80211_get_channel(wdev->wiphy, freq); in cfg80211_mgd_wext_siwfreq() 118 struct iw_freq *freq, char *extra) in cfg80211_mgd_wext_giwfreq() argument 138 freq->m = chan->center_freq; in cfg80211_mgd_wext_giwfreq() 139 freq->e = 6; in cfg80211_mgd_wext_giwfreq()
|
D | wext-compat.c | 199 range->freq[c].i = in cfg80211_wext_giwrange() 202 range->freq[c].m = chan->center_freq; in cfg80211_wext_giwrange() 203 range->freq[c].e = 6; in cfg80211_wext_giwrange() 229 int cfg80211_wext_freq(struct iw_freq *freq) in cfg80211_wext_freq() argument 235 if (freq->e == 0) { in cfg80211_wext_freq() 237 if (freq->m < 0) in cfg80211_wext_freq() 239 if (freq->m > 14) in cfg80211_wext_freq() 241 return ieee80211_channel_to_frequency(freq->m, band); in cfg80211_wext_freq() 244 for (i = 0; i < freq->e; i++) in cfg80211_wext_freq() 248 return freq->m / div; in cfg80211_wext_freq() [all …]
|
D | ibss.c | 315 int err, freq; in cfg80211_ibss_wext_siwfreq() local 324 freq = cfg80211_wext_freq(wextfreq); in cfg80211_ibss_wext_siwfreq() 325 if (freq < 0) in cfg80211_ibss_wext_siwfreq() 326 return freq; in cfg80211_ibss_wext_siwfreq() 328 if (freq) { in cfg80211_ibss_wext_siwfreq() 329 chan = ieee80211_get_channel(wdev->wiphy, freq); in cfg80211_ibss_wext_siwfreq() 367 struct iw_freq *freq, char *extra) in cfg80211_ibss_wext_giwfreq() argument 384 freq->m = chan->center_freq; in cfg80211_ibss_wext_giwfreq() 385 freq->e = 6; in cfg80211_ibss_wext_giwfreq()
|
D | reg.c | 915 const struct fwdb_country *country, int freq, in __regdb_query_wmm() argument 930 if (freq >= KHZ_TO_MHZ(be32_to_cpu(rule->start)) && in __regdb_query_wmm() 931 freq <= KHZ_TO_MHZ(be32_to_cpu(rule->end))) { in __regdb_query_wmm() 940 int reg_query_regdb_wmm(char *alpha2, int freq, struct ieee80211_reg_rule *rule) in reg_query_regdb_wmm() argument 954 return __regdb_query_wmm(regdb, country, freq, rule); in reg_query_regdb_wmm() 3652 static bool freq_is_chan_12_13_14(u32 freq) in freq_is_chan_12_13_14() argument 3654 if (freq == ieee80211_channel_to_frequency(12, NL80211_BAND_2GHZ) || in freq_is_chan_12_13_14() 3655 freq == ieee80211_channel_to_frequency(13, NL80211_BAND_2GHZ) || in freq_is_chan_12_13_14() 3656 freq == ieee80211_channel_to_frequency(14, NL80211_BAND_2GHZ)) in freq_is_chan_12_13_14() 4160 int cfg80211_get_unii(int freq) in cfg80211_get_unii() argument [all …]
|
D | reg.h | 143 int cfg80211_get_unii(int freq);
|
D | scan.c | 647 int freq; in cfg80211_parse_colocated_ap() local 661 freq = ieee80211_channel_to_frequency(ap_info->channel, band); in cfg80211_parse_colocated_ap() 688 entry->center_freq = freq; in cfg80211_parse_colocated_ap() 1876 u32 freq; in cfg80211_get_bss_channel() local 1906 freq = ieee80211_channel_to_freq_khz(channel_number, channel->band); in cfg80211_get_bss_channel() 1907 alt_channel = ieee80211_get_channel_khz(wiphy, freq); in cfg80211_get_bss_channel() 2825 struct iw_freq *freq = in cfg80211_wext_siwscan() local 2828 cfg80211_wext_freq(freq); in cfg80211_wext_siwscan() 2962 iwe.u.freq.m = ieee80211_frequency_to_channel(bss->pub.channel->center_freq); in ieee80211_bss() 2963 iwe.u.freq.e = 0; in ieee80211_bss() [all …]
|
D | trace.h | 3121 __field(int, freq) 3126 __entry->freq = info->freq; 3130 WDEV_PR_ARG, PR_KHZ(__entry->freq), __entry->sig_dbm) 3432 int freq, int sig_dbm), 3433 TP_ARGS(wiphy, frame, len, freq, sig_dbm), 3436 __field(int, freq) 3441 __entry->freq = freq; 3445 WIPHY_PR_ARG, PR_KHZ(__entry->freq), __entry->sig_dbm)
|
D | nl80211.c | 1571 u32 freq) in nl80211_get_valid_chan() argument 1575 chan = ieee80211_get_channel_khz(wiphy, freq); in nl80211_get_valid_chan() 9035 int freq = nla_get_u32(attr); in nl80211_trigger_scan() local 9038 freq = MHZ_TO_KHZ(freq); in nl80211_trigger_scan() 9040 chan = ieee80211_get_channel_khz(wiphy, freq); in nl80211_trigger_scan() 10470 u32 freq; in nl80211_authenticate() local 10527 freq = MHZ_TO_KHZ(nla_get_u32(info->attrs[NL80211_ATTR_WIPHY_FREQ])); in nl80211_authenticate() 10529 freq += in nl80211_authenticate() 10532 chan = nl80211_get_valid_chan(&rdev->wiphy, freq); in nl80211_authenticate() 10749 u32 freq; in nl80211_assoc_bss() local [all …]
|
/net/mac80211/ |
D | ibss.c | 1117 channel = ieee80211_get_channel(local->hw.wiphy, rx_status->freq); in ieee80211_rx_bss_info() 1363 u32 start_freq, end_freq, freq; in ibss_setup_channels() local 1373 for (freq = start_freq; freq <= end_freq; freq += 20) { in ibss_setup_channels() 1374 chan = ieee80211_get_channel(wiphy, freq); in ibss_setup_channels()
|
D | mesh.c | 1315 int freq; in ieee80211_mesh_rx_bcn_presp() local 1340 freq = ieee80211_channel_to_frequency(elems->ds_params[0], band); in ieee80211_mesh_rx_bcn_presp() 1342 freq = rx_status->freq; in ieee80211_mesh_rx_bcn_presp() 1344 channel = ieee80211_get_channel(local->hw.wiphy, freq); in ieee80211_mesh_rx_bcn_presp()
|
D | tdls.c | 1783 int freq; in ieee80211_process_tdls_channel_switch_req() local 1824 freq = ieee80211_channel_to_frequency(target_channel, band); in ieee80211_process_tdls_channel_switch_req() 1825 if (freq == 0) { in ieee80211_process_tdls_channel_switch_req() 1831 chan = ieee80211_get_channel(sdata->local->hw.wiphy, freq); in ieee80211_process_tdls_channel_switch_req()
|
D | util.c | 3414 u32 freq; in ieee80211_chandef_he_6ghz_oper() local 3451 freq = ieee80211_channel_to_frequency(he_6ghz_oper->primary, in ieee80211_chandef_he_6ghz_oper() 3453 he_chandef.chan = ieee80211_get_channel(sdata->local->hw.wiphy, freq); in ieee80211_chandef_he_6ghz_oper() 4018 int freq; in ieee80211_send_action_csa() local 4054 freq = csa_settings->chandef.chan->center_freq; in ieee80211_send_action_csa() 4055 *pos++ = ieee80211_frequency_to_channel(freq); /* channel */ in ieee80211_send_action_csa()
|
D | rx.c | 415 put_unaligned_le16(status->freq, pos); in ieee80211_add_rx_radiotap_header()
|
D | mlme.c | 3869 rx_status->freq); in ieee80211_rx_mgmt_probe_resp()
|