Lines Matching +full:signal +full:- +full:guard
1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copied from cfg.c - originally
6 * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net>
8 * Copyright (C) 2018, 2022-2023 Intel Corporation
14 #include "driver-ops.h"
21 struct ieee80211_local *local = wiphy_priv(dev->ieee80211_ptr->wiphy);
23 if (rp->rx_mini_pending != 0 || rp->rx_jumbo_pending != 0)
24 return -EINVAL;
26 guard(wiphy)(local->hw.wiphy);
28 return drv_set_ringparam(local, rp->tx_pending, rp->rx_pending);
36 struct ieee80211_local *local = wiphy_priv(dev->ieee80211_ptr->wiphy);
40 guard(wiphy)(local->hw.wiphy);
42 drv_get_ringparam(local, &rp->tx_pending, &rp->tx_max_pending,
43 &rp->rx_pending, &rp->rx_max_pending);
52 "signal", "channel", "noise", "ch_time", "ch_time_busy",
68 return -EOPNOTSUPP;
80 struct ieee80211_local *local = sdata->local;
92 data[i++] += (sta)->rx_stats.num_duplicates; \
93 data[i++] += (sta)->rx_stats.fragments; \
98 data[i++] += (sta)->status_stats.filtered; \
109 guard(wiphy)(local->hw.wiphy);
111 if (sdata->vif.type == NL80211_IFTYPE_STATION) {
112 sta = sta_info_get_bss(sdata, sdata->deflink.u.mgd.bssid);
114 if (!(sta && !WARN_ON(sta->sdata->dev != dev)))
121 ADD_STA_STATS(&sta->deflink);
123 data[i++] = sdata->tx_handlers_drop;
124 data[i++] = sta->sta_state;
140 list_for_each_entry(sta, &local->sta_list, list) {
142 if (sta->sdata->dev != dev)
148 ADD_STA_STATS(&sta->deflink);
149 data[i++] = sdata->tx_handlers_drop;
154 i = STA_STATS_LEN - STA_STATS_SURVEY_LEN;
159 chanctx_conf = rcu_dereference(sdata->vif.bss_conf.chanctx_conf);
161 channel = chanctx_conf->def.chan;
162 else if (local->open_count > 0 &&
163 local->open_count == local->virt_monitors &&
164 sdata->vif.type == NL80211_IFTYPE_MONITOR)
165 channel = local->monitor_chanreq.oper.chan;
183 data[i++] = survey.channel->center_freq;
189 data[i++] = -1LL;
193 data[i++] = -1LL;
197 data[i++] = -1LL;
201 data[i++] = -1LL;
205 data[i++] = -1LL;
209 data[i++] = -1LL;
238 struct wireless_dev *wdev = dev->ieee80211_ptr;
240 regs->version = wdev->wiphy->hw_version;
241 regs->len = 0;