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 <[email protected]>
8 * Copyright (C) 2018, 2022-2023 Intel Corporation
14 #include "driver-ops.h"
21 struct ieee80211_local *local = wiphy_priv(dev->ieee80211_ptr->wiphy); in ieee80211_set_ringparam()
23 if (rp->rx_mini_pending != 0 || rp->rx_jumbo_pending != 0) in ieee80211_set_ringparam()
24 return -EINVAL; in ieee80211_set_ringparam()
26 guard(wiphy)(local->hw.wiphy); in ieee80211_set_ringparam()
28 return drv_set_ringparam(local, rp->tx_pending, rp->rx_pending); in ieee80211_set_ringparam()
36 struct ieee80211_local *local = wiphy_priv(dev->ieee80211_ptr->wiphy); in ieee80211_get_ringparam()
40 guard(wiphy)(local->hw.wiphy); in ieee80211_get_ringparam()
42 drv_get_ringparam(local, &rp->tx_pending, &rp->tx_max_pending, in ieee80211_get_ringparam()
43 &rp->rx_pending, &rp->rx_max_pending); in ieee80211_get_ringparam()
51 "sta_state", "txrate", "rxrate", "signal",
68 return -EOPNOTSUPP; in ieee80211_get_sset_count()
80 struct ieee80211_local *local = sdata->local; in ieee80211_get_stats()
92 data[i++] += (sta)->rx_stats.num_duplicates; \ in ieee80211_get_stats()
93 data[i++] += (sta)->rx_stats.fragments; \ in ieee80211_get_stats()
98 data[i++] += (sta)->status_stats.filtered; \ in ieee80211_get_stats()
109 guard(wiphy)(local->hw.wiphy); in ieee80211_get_stats()
111 if (sdata->vif.type == NL80211_IFTYPE_STATION) { in ieee80211_get_stats()
112 sta = sta_info_get_bss(sdata, sdata->deflink.u.mgd.bssid); in ieee80211_get_stats()
114 if (!(sta && !WARN_ON(sta->sdata->dev != dev))) in ieee80211_get_stats()
121 ADD_STA_STATS(&sta->deflink); in ieee80211_get_stats()
123 data[i++] = sta->sta_state; in ieee80211_get_stats()
139 list_for_each_entry(sta, &local->sta_list, list) { in ieee80211_get_stats()
141 if (sta->sdata->dev != dev) in ieee80211_get_stats()
147 ADD_STA_STATS(&sta->deflink); in ieee80211_get_stats()
152 i = STA_STATS_LEN - STA_STATS_SURVEY_LEN; in ieee80211_get_stats()
157 chanctx_conf = rcu_dereference(sdata->vif.bss_conf.chanctx_conf); in ieee80211_get_stats()
159 channel = chanctx_conf->def.chan; in ieee80211_get_stats()
160 else if (local->open_count > 0 && in ieee80211_get_stats()
161 local->open_count == local->monitors && in ieee80211_get_stats()
162 sdata->vif.type == NL80211_IFTYPE_MONITOR) in ieee80211_get_stats()
163 channel = local->monitor_chanreq.oper.chan; in ieee80211_get_stats()
181 data[i++] = survey.channel->center_freq; in ieee80211_get_stats()
187 data[i++] = -1LL; in ieee80211_get_stats()
191 data[i++] = -1LL; in ieee80211_get_stats()
195 data[i++] = -1LL; in ieee80211_get_stats()
199 data[i++] = -1LL; in ieee80211_get_stats()
203 data[i++] = -1LL; in ieee80211_get_stats()
207 data[i++] = -1LL; in ieee80211_get_stats()
236 struct wireless_dev *wdev = dev->ieee80211_ptr; in ieee80211_get_regs()
238 regs->version = wdev->wiphy->hw_version; in ieee80211_get_regs()
239 regs->len = 0; in ieee80211_get_regs()