/Linux-v5.4/net/wireless/ |
D | wext-spy.c | 164 struct iw_quality * wstats) in iw_send_thrspy_event() argument 176 memcpy(&(threshold.qual), wstats, sizeof(struct iw_quality)); in iw_send_thrspy_event() 194 struct iw_quality * wstats) in wireless_spy_update() argument 207 memcpy(&(spydata->spy_stat[i]), wstats, in wireless_spy_update() 218 if (wstats->level > spydata->spy_thr_high.level) { in wireless_spy_update() 221 address, wstats); in wireless_spy_update() 224 if (wstats->level < spydata->spy_thr_low.level) { in wireless_spy_update() 227 address, wstats); in wireless_spy_update()
|
D | wext-compat.c | 1297 static struct iw_statistics wstats; in cfg80211_wireless_stats() local 1321 memset(&wstats, 0, sizeof(wstats)); in cfg80211_wireless_stats() 1327 wstats.qual.updated |= IW_QUAL_LEVEL_UPDATED; in cfg80211_wireless_stats() 1328 wstats.qual.updated |= IW_QUAL_QUAL_UPDATED; in cfg80211_wireless_stats() 1329 wstats.qual.updated |= IW_QUAL_DBM; in cfg80211_wireless_stats() 1330 wstats.qual.level = sig; in cfg80211_wireless_stats() 1335 wstats.qual.qual = sig + 110; in cfg80211_wireless_stats() 1341 wstats.qual.updated |= IW_QUAL_LEVEL_UPDATED; in cfg80211_wireless_stats() 1342 wstats.qual.updated |= IW_QUAL_QUAL_UPDATED; in cfg80211_wireless_stats() 1343 wstats.qual.level = sinfo.signal; in cfg80211_wireless_stats() [all …]
|
/Linux-v5.4/drivers/net/wireless/intersil/prism54/ |
D | islpci_eth.c | 368 struct iw_quality wstats; in islpci_eth_receive() local 371 wstats.level = annex->rfmon.rssi; in islpci_eth_receive() 374 wstats.noise = priv->local_iwstatistics.qual.noise; in islpci_eth_receive() 375 wstats.qual = wstats.level - wstats.noise; in islpci_eth_receive() 376 wstats.updated = 0x07; in islpci_eth_receive() 378 wireless_spy_update(ndev, annex->addr2, &wstats); in islpci_eth_receive()
|
/Linux-v5.4/drivers/staging/rtl8192u/ |
D | r8192U_wx.c | 943 struct iw_statistics *wstats = &priv->wstats; in r8192_get_wireless_stats() local 949 wstats->qual.qual = 0; in r8192_get_wireless_stats() 950 wstats->qual.level = 0; in r8192_get_wireless_stats() 951 wstats->qual.noise = 0; in r8192_get_wireless_stats() 952 wstats->qual.updated = IW_QUAL_ALL_UPDATED | IW_QUAL_DBM; in r8192_get_wireless_stats() 953 return wstats; in r8192_get_wireless_stats() 960 wstats->qual.level = tmp_level; in r8192_get_wireless_stats() 961 wstats->qual.qual = tmp_qual; in r8192_get_wireless_stats() 962 wstats->qual.noise = tmp_noise; in r8192_get_wireless_stats() 963 wstats->qual.updated = IW_QUAL_ALL_UPDATED | IW_QUAL_DBM; in r8192_get_wireless_stats() [all …]
|
/Linux-v5.4/drivers/net/wireless/intersil/orinoco/ |
D | wext.c | 93 struct iw_statistics *wstats = &priv->wstats; in orinoco_get_wireless_stats() local 106 return wstats; in orinoco_get_wireless_stats() 120 memset(&wstats->qual, 0, sizeof(wstats->qual)); in orinoco_get_wireless_stats() 124 wstats->qual.qual = priv->spy_data.spy_stat[0].qual; in orinoco_get_wireless_stats() 125 wstats->qual.level = priv->spy_data.spy_stat[0].level; in orinoco_get_wireless_stats() 126 wstats->qual.noise = priv->spy_data.spy_stat[0].noise; in orinoco_get_wireless_stats() 127 wstats->qual.updated = in orinoco_get_wireless_stats() 139 wstats->qual.qual = (int)le16_to_cpu(cq.qual); in orinoco_get_wireless_stats() 140 wstats->qual.level = (int)le16_to_cpu(cq.signal) - 0x95; in orinoco_get_wireless_stats() 141 wstats->qual.noise = (int)le16_to_cpu(cq.noise) - 0x95; in orinoco_get_wireless_stats() [all …]
|
D | main.c | 689 struct iw_quality wstats; in orinoco_spy_gather() local 690 wstats.level = level - 0x95; in orinoco_spy_gather() 691 wstats.noise = noise - 0x95; in orinoco_spy_gather() 692 wstats.qual = (level > noise) ? (level - noise) : 0; in orinoco_spy_gather() 693 wstats.updated = IW_QUAL_ALL_UPDATED | IW_QUAL_DBM; in orinoco_spy_gather() 695 wireless_spy_update(dev, mac, &wstats); in orinoco_spy_gather() 832 struct iw_statistics *wstats = &priv->wstats; in __orinoco_ev_rx() local 872 wstats->discard.code++; in __orinoco_ev_rx() 1421 struct iw_statistics *wstats = &priv->wstats; in __orinoco_ev_info() local 1436 wstats->discard.code += in __orinoco_ev_info() [all …]
|
D | orinoco.h | 87 struct iw_statistics wstats; member
|
/Linux-v5.4/drivers/staging/rtl8192e/rtl8192e/ |
D | rtl_wx.c | 1184 struct iw_statistics *wstats = &priv->wstats; in _rtl92e_get_wireless_stats() local 1190 wstats->qual.qual = 10; in _rtl92e_get_wireless_stats() 1191 wstats->qual.level = 0; in _rtl92e_get_wireless_stats() 1192 wstats->qual.noise = 0x100 - 100; /* -100 dBm */ in _rtl92e_get_wireless_stats() 1193 wstats->qual.updated = IW_QUAL_ALL_UPDATED | IW_QUAL_DBM; in _rtl92e_get_wireless_stats() 1194 return wstats; in _rtl92e_get_wireless_stats() 1201 wstats->qual.level = tmp_level; in _rtl92e_get_wireless_stats() 1202 wstats->qual.qual = tmp_qual; in _rtl92e_get_wireless_stats() 1203 wstats->qual.noise = tmp_noise; in _rtl92e_get_wireless_stats() 1204 wstats->qual.updated = IW_QUAL_ALL_UPDATED | IW_QUAL_DBM; in _rtl92e_get_wireless_stats() [all …]
|
D | rtl_core.h | 369 struct iw_statistics wstats; member
|
/Linux-v5.4/drivers/net/wireless/intel/ipw2x00/ |
D | libipw_rx.c | 377 struct iw_quality wstats; in libipw_rx() local 379 wstats.updated = 0; in libipw_rx() 381 wstats.level = rx_stats->signal; in libipw_rx() 382 wstats.updated |= IW_QUAL_LEVEL_UPDATED; in libipw_rx() 384 wstats.updated |= IW_QUAL_LEVEL_INVALID; in libipw_rx() 387 wstats.noise = rx_stats->noise; in libipw_rx() 388 wstats.updated |= IW_QUAL_NOISE_UPDATED; in libipw_rx() 390 wstats.updated |= IW_QUAL_NOISE_INVALID; in libipw_rx() 393 wstats.qual = rx_stats->signal; in libipw_rx() 394 wstats.updated |= IW_QUAL_QUAL_UPDATED; in libipw_rx() [all …]
|
D | ipw2100.c | 2250 priv->wstats.status = status; in isr_status_change() 2469 priv->wstats.discard.misc++; in isr_rx() 2477 priv->wstats.discard.misc++; in isr_rx() 2553 priv->wstats.discard.misc++; in isr_rx_monitor() 8129 struct iw_statistics *wstats; in ipw2100_wx_wireless_stats() local 8136 wstats = &priv->wstats; in ipw2100_wx_wireless_stats() 8144 wstats->miss.beacon = 0; in ipw2100_wx_wireless_stats() 8145 wstats->discard.retries = 0; in ipw2100_wx_wireless_stats() 8146 wstats->qual.qual = 0; in ipw2100_wx_wireless_stats() 8147 wstats->qual.level = 0; in ipw2100_wx_wireless_stats() [all …]
|
D | ipw2200.c | 7691 priv->wstats.discard.misc++; in ipw_handle_data_packet() 7696 priv->wstats.discard.misc++; in ipw_handle_data_packet() 7754 priv->wstats.discard.misc++; in ipw_handle_data_packet_monitor() 7759 priv->wstats.discard.misc++; in ipw_handle_data_packet_monitor() 7769 priv->wstats.discard.misc++; in ipw_handle_data_packet_monitor() 8365 priv->wstats.discard.misc++; in ipw_rx() 10008 struct iw_statistics *wstats; in ipw_get_wireless_stats() local 10010 wstats = &priv->wstats; in ipw_get_wireless_stats() 10018 wstats->miss.beacon = 0; in ipw_get_wireless_stats() 10019 wstats->discard.retries = 0; in ipw_get_wireless_stats() [all …]
|
/Linux-v5.4/drivers/net/wireless/ |
D | wl3501_cs.c | 1379 struct iw_statistics *wstats = &this->wstats; in wl3501_get_wireless_stats() local 1382 memset(wstats, 0, sizeof(*wstats)); in wl3501_get_wireless_stats() 1383 wstats->status = netif_running(dev); in wl3501_get_wireless_stats() 1386 wstats->discard.code += value; in wl3501_get_wireless_stats() 1389 wstats->discard.code += value; in wl3501_get_wireless_stats() 1392 wstats->discard.code += value; in wl3501_get_wireless_stats() 1395 wstats->discard.retries = value; in wl3501_get_wireless_stats() 1398 wstats->discard.misc += value; in wl3501_get_wireless_stats() 1401 wstats->discard.misc += value; in wl3501_get_wireless_stats() 1404 wstats->discard.misc += value; in wl3501_get_wireless_stats() [all …]
|
D | ray_cs.h | 65 iw_stats wstats; /* Wireless specific stats */ member
|
D | ray_cs.c | 1390 local->wstats.status = local->card_status; in ray_get_wireless_stats() 1395 local->wstats.qual.qual = local->spy_data.spy_stat[0].qual; in ray_get_wireless_stats() 1396 local->wstats.qual.level = local->spy_data.spy_stat[0].level; in ray_get_wireless_stats() 1397 local->wstats.qual.noise = local->spy_data.spy_stat[0].noise; in ray_get_wireless_stats() 1398 local->wstats.qual.updated = in ray_get_wireless_stats() 1404 local->wstats.qual.noise = readb(&p->rxnoise); in ray_get_wireless_stats() 1405 local->wstats.qual.updated |= 4; in ray_get_wireless_stats() 1408 return &local->wstats; in ray_get_wireless_stats() 2248 local->wstats.qual.level = siglev; in rx_data() 2250 local->wstats.qual.updated = 0x2; in rx_data() [all …]
|
/Linux-v5.4/drivers/net/wireless/atmel/ |
D | atmel.c | 450 struct iw_statistics wstats; member 1049 priv->wstats.discard.fragment++; in frag_rx_path() 1068 priv->wstats.discard.nwid++; in rx_done_irq() 1230 priv->wstats.discard.misc++; in service_interrupt() 1271 priv->wstats.status = priv->station_state; in atmel_get_wireless_stats() 1275 priv->wstats.qual.qual = 0; in atmel_get_wireless_stats() 1276 priv->wstats.qual.level = 0; in atmel_get_wireless_stats() 1277 priv->wstats.qual.updated = (IW_QUAL_QUAL_INVALID in atmel_get_wireless_stats() 1280 priv->wstats.qual.noise = 0; in atmel_get_wireless_stats() 1281 priv->wstats.qual.updated |= IW_QUAL_NOISE_INVALID; in atmel_get_wireless_stats() [all …]
|
/Linux-v5.4/drivers/staging/ks7010/ |
D | ks_wlan_net.c | 62 struct iw_statistics *wstats = &priv->wstats; in ks_wlan_update_phy_information() local 73 wstats->status = priv->reg.operation_mode; /* Operation mode */ in ks_wlan_update_phy_information() 1079 vwrq->qual.level = priv->wstats.qual.level; in ks_wlan_get_iwstats() 1744 struct iw_statistics *wstats = &priv->wstats; in ks_get_wireless_stats() local 1747 return (priv->dev_state < DEVICE_STATE_READY) ? NULL : wstats; in ks_get_wireless_stats() 1753 wstats->discard.nwid = 0; /* Rx invalid nwid */ in ks_get_wireless_stats() 1754 wstats->discard.code = 0; /* Rx invalid crypt */ in ks_get_wireless_stats() 1755 wstats->discard.fragment = 0; /* Rx invalid frag */ in ks_get_wireless_stats() 1756 wstats->discard.retries = 0; /* Tx excessive retries */ in ks_get_wireless_stats() 1757 wstats->discard.misc = 0; /* Invalid misc */ in ks_get_wireless_stats() [all …]
|
D | ks_hostif.c | 933 struct iw_statistics *wstats = &priv->wstats; in hostif_phy_information_confirm() local 951 wstats->qual.qual = signal; in hostif_phy_information_confirm() 952 wstats->qual.level = 256 - rssi; in hostif_phy_information_confirm() 953 wstats->qual.noise = 0; /* invalid noise value */ in hostif_phy_information_confirm() 954 wstats->qual.updated = IW_QUAL_ALL_UPDATED | IW_QUAL_DBM; in hostif_phy_information_confirm()
|
D | ks_wlan.h | 442 struct iw_statistics wstats; member
|
/Linux-v5.4/drivers/net/wireless/cisco/ |
D | airo.c | 1217 struct iw_statistics wstats; // wireless stats member 3377 struct iw_quality wstats; in airo_handle_rx() local 3386 wstats.qual = hdr.rssi[0]; in airo_handle_rx() 3388 wstats.level = 0x100 - ai->rssi[hdr.rssi[1]].rssidBm; in airo_handle_rx() 3390 wstats.level = (hdr.rssi[1] + 321) / 2; in airo_handle_rx() 3391 wstats.noise = ai->wstats.qual.noise; in airo_handle_rx() 3392 wstats.updated = IW_QUAL_LEVEL_UPDATED in airo_handle_rx() 3396 wireless_spy_update(ai->dev, sa, &wstats); in airo_handle_rx() 3673 struct iw_quality wstats; in mpi_receive_802_3() local 3676 wstats.qual = 0; /* XXX Where do I get that info from ??? */ in mpi_receive_802_3() [all …]
|
/Linux-v5.4/drivers/net/wireless/intersil/hostap/ |
D | hostap_ioctl.c | 21 struct iw_statistics *wstats; in hostap_get_wireless_stats() local 30 wstats = &local->wstats; in hostap_get_wireless_stats() 32 wstats->status = 0; in hostap_get_wireless_stats() 33 wstats->discard.code = in hostap_get_wireless_stats() 35 wstats->discard.misc = in hostap_get_wireless_stats() 40 wstats->discard.retries = in hostap_get_wireless_stats() 42 wstats->discard.fragment = in hostap_get_wireless_stats() 60 wstats->qual.updated = IW_QUAL_ALL_UPDATED | in hostap_get_wireless_stats() 63 wstats->qual.qual = local->comms_qual; in hostap_get_wireless_stats() 64 wstats->qual.level = local->avg_signal; in hostap_get_wireless_stats() [all …]
|
D | hostap_80211_rx.c | 764 struct iw_quality wstats; in hostap_80211_rx() local 765 wstats.level = rx_stats->signal; in hostap_80211_rx() 766 wstats.noise = rx_stats->noise; in hostap_80211_rx() 767 wstats.updated = IW_QUAL_LEVEL_UPDATED | IW_QUAL_NOISE_UPDATED in hostap_80211_rx() 770 wireless_spy_update(dev, hdr->addr2, &wstats); in hostap_80211_rx()
|
/Linux-v5.4/include/net/ |
D | iw_handler.h | 467 struct iw_quality *wstats);
|
/Linux-v5.4/drivers/staging/wlan-ng/ |
D | p80211netdev.h | 217 struct iw_statistics wstats; member
|
/Linux-v5.4/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_rx.c | 934 struct iw_quality wstats; in ieee80211_rx() local 935 wstats.level = rx_stats->rssi; in ieee80211_rx() 936 wstats.noise = rx_stats->noise; in ieee80211_rx() 937 wstats.updated = 6; /* No qual value */ in ieee80211_rx() 939 wireless_spy_update(dev, hdr->addr2, &wstats); in ieee80211_rx()
|