Lines Matching +full:ftm +full:- +full:timer
1 /*-
2 * Copyright (c) 2020-2024 The FreeBSD Foundation
3 * Copyright (c) 2021-2022 Bjoern A. Zeeb
43 #include <linux/timer.h>
310 } ftm; member
323 struct cfg80211_pmsr_ftm_request ftm; member
349 struct cfg80211_pmsr_ftm_result ftm; member
619 /* XXX-BZ this are insensible values probably ... */
870 #define VENDOR_CMD_RAW_DATA (void *)(uintptr_t)(-ENOENT)
1176 struct timer_list timer; member
1230 lockdep_assert_held(&(wiphy)->mtx)
1289 /* -------------------------------------------------------------------------- */
1319 /* -------------------------------------------------------------------------- */
1339 return (wiphy->priv); in wiphy_priv()
1346 wiphy->dev = dev; in set_wiphy_dev()
1353 return (wiphy->dev); in wiphy_dev()
1357 rcu_dereference_check(p, lockdep_is_held(&(wiphy)->mtx))
1362 mutex_lock(&wiphy->mtx); in wiphy_lock()
1368 mutex_unlock(&wiphy->mtx); in wiphy_unlock()
1378 /* -------------------------------------------------------------------------- */
1404 /* -------------------------------------------------------------------------- */
1428 return (-ENXIO); in reg_query_regdb_wmm()
1470 chandef->chan = chan; in cfg80211_chandef_create()
1471 chandef->center_freq2 = 0; /* Set here and only overwrite if needed. */ in cfg80211_chandef_create()
1475 chandef->width = NL80211_CHAN_WIDTH_20_NOHT; in cfg80211_chandef_create()
1476 chandef->center_freq1 = chan->center_freq; in cfg80211_chandef_create()
1480 if (chan->flags & IEEE80211_CHAN_NO_HT40) in cfg80211_chandef_create()
1481 chandef->width = NL80211_CHAN_WIDTH_20; in cfg80211_chandef_create()
1482 else if (chan->flags & IEEE80211_CHAN_NO_80MHZ) in cfg80211_chandef_create()
1483 chandef->width = NL80211_CHAN_WIDTH_40; in cfg80211_chandef_create()
1484 else if (chan->flags & IEEE80211_CHAN_NO_160MHZ) in cfg80211_chandef_create()
1485 chandef->width = NL80211_CHAN_WIDTH_80; in cfg80211_chandef_create()
1487 chandef->width = NL80211_CHAN_WIDTH_160; in cfg80211_chandef_create()
1490 chandef->center_freq1 = chan->center_freq; in cfg80211_chandef_create()
1520 if ((2 + elem->datalen) > ielen) in lkpi_cfg80211_find_elem_pattern()
1523 if (elem->id == eid) { in lkpi_cfg80211_find_elem_pattern()
1526 if (elem->datalen >= plen && in lkpi_cfg80211_find_elem_pattern()
1527 memcmp(elem->data, pattern, plen) == 0) in lkpi_cfg80211_find_elem_pattern()
1530 ielen -= 2 + elem->datalen; in lkpi_cfg80211_find_elem_pattern()
1531 p += 2 + elem->datalen; in lkpi_cfg80211_find_elem_pattern()
1549 if (bss->ies == NULL) in ieee80211_bss_get_elem()
1551 return (cfg80211_find_elem(eid, bss->ies->data, bss->ies->len)); in ieee80211_bss_get_elem()
1581 return (-1); in cfg80211_calculate_bitrate()
1624 /* XXX-BZ wild guessing here based on brcmfmac. */ in regulatory_set_wiphy_regd()
1625 if (wiphy->regulatory_flags & REGULATORY_WIPHY_SELF_MANAGED) in regulatory_set_wiphy_regd()
1626 wiphy->regd = regd; in regulatory_set_wiphy_regd()
1639 if (wiphy->regd != NULL) in regulatory_hint()
1640 return (-EBUSY); in regulatory_hint()
1644 return (-ENOMEM); in regulatory_hint()
1646 regd->alpha2[0] = alpha2[0]; in regulatory_hint()
1647 regd->alpha2[1] = alpha2[1]; in regulatory_hint()
1648 wiphy->regd = regd; in regulatory_hint()
1686 if (wiphy != NULL && wiphy->dev != NULL) in wiphy_name()
1687 return dev_name(wiphy->dev); in wiphy_name()
1706 set_bit(ef, wiphy->ext_features); in wiphy_ext_feature_set()
1712 return (test_bit(ef, wiphy->ext_features)); in wiphy_ext_feature_isset()
1746 return (-ENOENT); in cfg80211_check_combinations()
1781 return (-1); in cfg80211_get_p2p_attr()
1917 return (-ENXIO); in cfg80211_vendor_cmd_reply()
1933 if (skb->len < 10) /* sizeof(ieee80211_frame_[ack,cts]) */ in ieee80211_get_hdrlen_from_skb()
1936 hdr = (const struct ieee80211_hdr *)skb->data; in ieee80211_get_hdrlen_from_skb()
1937 len = ieee80211_hdrlen(hdr->frame_control); in ieee80211_get_hdrlen_from_skb()
1940 if (len > skb->len) in ieee80211_get_hdrlen_from_skb()
1951 if (channel->band != NL80211_BAND_6GHZ) in cfg80211_channel_is_psc()
1972 if (elem != NULL && elem->datalen == 1) in cfg80211_get_ies_channel_number()
1973 return (elem->data[0]); in cfg80211_get_ies_channel_number()
1977 elem->datalen >= (sizeof(struct ieee80211_ie_htinfo) - 2)) { in cfg80211_get_ies_channel_number()
1980 return (htinfo->hi_ctrlchannel); in cfg80211_get_ies_channel_number()
1988 return (-1); in cfg80211_get_ies_channel_number()
2056 band->iftype_data = iftype_data; in _ieee80211_set_sband_iftype_data()
2057 band->n_iftype_data = nitems; in _ieee80211_set_sband_iftype_data()
2067 for (i = 0; i < band->n_iftype_data; i++) { in ieee80211_get_sband_iftype_data()
2068 iftype_data = (const void *)&band->iftype_data[i]; in ieee80211_get_sband_iftype_data()
2069 if (iftype_data->types_mask & BIT(iftype)) in ieee80211_get_sband_iftype_data()
2092 if (ssid1->ssid_len != ssid2->ssid_len) in cfg80211_ssid_eq()
2094 error = memcmp(ssid1->ssid, ssid2->ssid, ssid2->ssid_len); in cfg80211_ssid_eq()
2145 /* -------------------------------------------------------------------------- */
2150 INIT_LIST_HEAD(&wwk->entry); in wiphy_work_init()
2151 wwk->fn = fn; in wiphy_work_init()
2175 wiphy_work_init(&wdwk->work, fn); in wiphy_delayed_work_init()
2176 timer_setup(&wdwk->timer, lkpi_wiphy_delayed_work_timer, 0); in wiphy_delayed_work_init()
2192 /* -------------------------------------------------------------------------- */
2195 dev_err((_wiphy)->dev, _fmt, __VA_ARGS__)
2197 dev_info(&(wiphy)->dev, fmt, ##__VA_ARGS__)
2199 dev_info_once(&(wiphy)->dev, fmt, ##__VA_ARGS__)