/net/wireless/ |
H A D | wext-sme.c | 72 int err, freq; local 78 freq = cfg80211_wext_freq(wextfreq); 79 if (freq < 0) 80 return freq; 82 if (freq) { 83 chan = ieee80211_get_channel(wdev->wiphy, freq); 122 .center_freq1 = freq, 125 chandef.chan = ieee80211_get_channel(&rdev->wiphy, freq); 141 struct iw_freq *freq, char *extra) 158 freq 139 cfg80211_mgd_wext_giwfreq(struct net_device *dev, struct iw_request_info *info, struct iw_freq *freq, char *extra) argument [all...] |
H A D | chan.c | 245 u32 freq; local 247 for (freq = center_freq - bandwidth/2 + 10; 248 freq <= center_freq + bandwidth/2 - 10; 249 freq += 20) { 250 c = ieee80211_get_channel(wiphy, freq); 312 u32 freq, start_freq, end_freq; local 317 for (freq = start_freq; freq <= end_freq; freq += 20) { 318 c = ieee80211_get_channel(wiphy, freq); 389 u32 freq, start_freq, end_freq; local 463 u32 freq, start_freq, end_freq; local 528 u32 start_freq, end_freq, freq; local 585 u32 freq, start_freq, end_freq; local [all...] |
H A D | ibss.c | 316 int err, freq; local 325 freq = cfg80211_wext_freq(wextfreq); 326 if (freq < 0) 327 return freq; 329 if (freq) { 330 chan = ieee80211_get_channel(wdev->wiphy, freq); 368 struct iw_freq *freq, char *extra) 385 freq->m = chan->center_freq; 386 freq->e = 6; 366 cfg80211_ibss_wext_giwfreq(struct net_device *dev, struct iw_request_info *info, struct iw_freq *freq, char *extra) argument
|
H A D | mlme.c | 607 bool cfg80211_rx_mgmt(struct wireless_dev *wdev, int freq, int sig_mbm, argument 623 trace_cfg80211_rx_mgmt(wdev, freq, sig_mbm); 650 freq, sig_mbm,
|
H A D | wext-compat.c | 230 range->freq[c].i = 233 range->freq[c].m = chan->center_freq; 234 range->freq[c].e = 6; 257 * @freq: the wext freq encoding 261 int cfg80211_wext_freq(struct iw_freq *freq) argument 267 if (freq->e == 0) { 269 if (freq->m < 0) 271 if (freq->m > 14) 273 return ieee80211_channel_to_frequency(freq 784 int freq; local 818 cfg80211_wext_giwfreq(struct net_device *dev, struct iw_request_info *info, struct iw_freq *freq, char *extra) argument [all...] |
H A D | scan.c | 856 u32 freq; local 874 freq = ieee80211_channel_to_frequency(channel_number, channel->band); 875 channel = ieee80211_get_channel(wiphy, freq); 1178 struct iw_freq *freq = local 1181 cfg80211_wext_freq(freq); 1302 iwe.u.freq.m = ieee80211_frequency_to_channel(bss->pub.channel->center_freq); 1303 iwe.u.freq.e = 0; 1309 iwe.u.freq.m = bss->pub.channel->center_freq; 1310 iwe.u.freq.e = 6;
|
H A D | util.c | 98 int ieee80211_frequency_to_channel(int freq) argument 101 if (freq == 2484) 103 else if (freq < 2484) 104 return (freq - 2407) / 5; 105 else if (freq >= 4910 && freq <= 4980) 106 return (freq - 4000) / 5; 107 else if (freq <= 45000) /* DMG band lower limit */ 108 return (freq - 5000) / 5; 109 else if (freq > 116 __ieee80211_get_channel(struct wiphy *wiphy, int freq) argument [all...] |
H A D | reg.c | 690 * part of a frequency's band if the start freq or end freq are off by more 1103 REG_DBG_PRINT("Disabling freq %d MHz for good\n", 1108 REG_DBG_PRINT("Disabling freq %d MHz\n", 1544 REG_DBG_PRINT("Disabling freq %d MHz as custom regd has no rule that fits it\n", 2315 static bool freq_is_chan_12_13_14(u16 freq) argument 2317 if (freq == ieee80211_channel_to_frequency(12, IEEE80211_BAND_2GHZ) || 2318 freq == ieee80211_channel_to_frequency(13, IEEE80211_BAND_2GHZ) || 2319 freq == ieee80211_channel_to_frequency(14, IEEE80211_BAND_2GHZ)) 2735 int cfg80211_get_unii(int freq) argument [all...] |
H A D | nl80211.c | 11247 int freq, int sig_dbm, 11268 nla_put_u32(msg, NL80211_ATTR_WIPHY_FREQ, freq) || 11740 int freq, int sig_dbm) 11747 trace_cfg80211_report_obss_beacon(wiphy, frame, len, freq, sig_dbm); 11762 (freq && 11763 nla_put_u32(msg, NL80211_ATTR_WIPHY_FREQ, freq)) || 11245 nl80211_send_mgmt(struct cfg80211_registered_device *rdev, struct wireless_dev *wdev, u32 nlportid, int freq, int sig_dbm, const u8 *buf, size_t len, u32 flags, gfp_t gfp) argument 11738 cfg80211_report_obss_beacon(struct wiphy *wiphy, const u8 *frame, size_t len, int freq, int sig_dbm) argument
|
/net/ipv6/ |
H A D | ipv6_sockglue.c | 1222 struct in6_flowlabel_req freq; local 1225 if (len < sizeof(freq)) 1228 if (copy_from_user(&freq, optval, sizeof(freq))) 1231 if (freq.flr_action != IPV6_FL_A_GET) 1234 len = sizeof(freq); 1235 flags = freq.flr_flags; 1237 memset(&freq, 0, sizeof(freq)); 1239 val = ipv6_flowlabel_opt_get(sk, &freq, flag [all...] |
H A D | ip6_flowlabel.c | 355 fl_create(struct net *net, struct sock *sk, struct in6_flowlabel_req *freq, argument 363 olen = optlen - CMSG_ALIGN(sizeof(*freq)); 386 if (copy_from_user(fl->opt+1, optval+CMSG_ALIGN(sizeof(*freq)), olen)) 408 err = fl6_renew(fl, freq->flr_linger, freq->flr_expires); 411 fl->share = freq->flr_share; 412 addr_type = ipv6_addr_type(&freq->flr_dst); 418 fl->dst = freq->flr_dst; 476 int ipv6_flowlabel_opt_get(struct sock *sk, struct in6_flowlabel_req *freq, argument 483 freq 518 struct in6_flowlabel_req freq; local [all...] |
/net/mac80211/ |
H A D | mesh.c | 1011 int freq; local 1033 freq = ieee80211_channel_to_frequency(elems.ds_params[0], band); 1035 freq = rx_status->freq; 1037 channel = ieee80211_get_channel(local->hw.wiphy, freq); 1076 mcsa_dbg(sdata, "complete switching to center freq %d MHz",
|
H A D | util.c | 2640 int freq; local 2676 freq = csa_settings->chandef.chan->center_freq; 2677 *pos++ = ieee80211_frequency_to_channel(freq); /* channel */
|