Searched refs:freq (Results 1 - 21 of 21) sorted by relevance

/net/wireless/
H A Dwext-compat.h9 struct iw_freq *freq, char *extra);
12 struct iw_freq *freq, char *extra);
28 struct iw_freq *freq, char *extra);
31 struct iw_freq *freq, char *extra);
53 int cfg80211_wext_freq(struct iw_freq *freq);
H A Dchan.c245 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 Dreg.h110 * @freq: the frequency for which we want to get the UNII band.
115 * Returns -EINVAL if freq is invalid, 0 for UNII-1, 1 for UNII-2A,
118 int cfg80211_get_unii(int freq);
H A Dwext-sme.c72 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 Dwext-compat.c230 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 Dibss.c316 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 Dutil.c98 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 Dnl80211.h70 int freq, int sig_dbm,
H A Dreg.c690 * 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 Dscan.c856 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 Dmlme.c607 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 Dtrace.h124 #define CHAN_PR_FMT "band: %d, freq: %u"
150 "band: %d, control freq: %u, width: %d, cf1: %u, cf2: %u"
2169 TP_PROTO(struct wireless_dev *wdev, int freq, int sig_mbm),
2170 TP_ARGS(wdev, freq, sig_mbm),
2173 __field(int, freq)
2178 __entry->freq = freq;
2181 TP_printk(WDEV_PR_FMT ", freq: %d, sig mbm: %d",
2182 WDEV_PR_ARG, __entry->freq, __entry->sig_mbm)
2405 int freq, in
[all...]
H A Dnl80211.c11247 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 Dip6_flowlabel.c355 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...]
H A Dipv6_sockglue.c1222 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...]
/net/mac80211/
H A Dmesh.c1011 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 Dutil.c2640 int freq; local
2676 freq = csa_settings->chandef.chan->center_freq;
2677 *pos++ = ieee80211_frequency_to_channel(freq); /* channel */
H A Dscan.c204 channel = ieee80211_get_channel(local->hw.wiphy, rx_status->freq);
H A Drx.c224 put_unaligned_le16(status->freq, pos);
2408 status->freq, sig);
2738 if (cfg80211_rx_mgmt(&rx->sdata->wdev, status->freq, sig,
H A Dibss.c1000 channel = ieee80211_get_channel(local->hw.wiphy, rx_status->freq);
1361 /* if a fixed bssid and a fixed freq have been provided create the IBSS
H A Dmlme.c192 "Wrong control channel: center-freq: %d ht-cfreq: %d ht->primary_chan: %d band: %d - Disabling HT\n",
2913 channel = ieee80211_get_channel(local->hw.wiphy, rx_status->freq);
3022 if (rx_status->freq != chanctx_conf->def.chan->center_freq) {

Completed in 164 milliseconds