Home
last modified time | relevance | path

Searched refs:wstats (Results 1 – 25 of 30) sorted by relevance

12

/linux-6.6.21/net/wireless/
Dwext-spy.c164 struct iw_quality * wstats) in iw_send_thrspy_event() argument
176 threshold.qual = *wstats; 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()
Dwext-compat.c1378 static struct iw_statistics wstats; in cfg80211_wireless_stats() local
1407 memset(&wstats, 0, sizeof(wstats)); in cfg80211_wireless_stats()
1413 wstats.qual.updated |= IW_QUAL_LEVEL_UPDATED; in cfg80211_wireless_stats()
1414 wstats.qual.updated |= IW_QUAL_QUAL_UPDATED; in cfg80211_wireless_stats()
1415 wstats.qual.updated |= IW_QUAL_DBM; in cfg80211_wireless_stats()
1416 wstats.qual.level = sig; in cfg80211_wireless_stats()
1421 wstats.qual.qual = sig + 110; in cfg80211_wireless_stats()
1427 wstats.qual.updated |= IW_QUAL_LEVEL_UPDATED; in cfg80211_wireless_stats()
1428 wstats.qual.updated |= IW_QUAL_QUAL_UPDATED; in cfg80211_wireless_stats()
1429 wstats.qual.level = sinfo.signal; in cfg80211_wireless_stats()
[all …]
/linux-6.6.21/drivers/staging/rtl8192u/
Dr8192U_wx.c911 struct iw_statistics *wstats = &priv->wstats; in r8192_get_wireless_stats() local
917 wstats->qual.qual = 0; in r8192_get_wireless_stats()
918 wstats->qual.level = 0; in r8192_get_wireless_stats()
919 wstats->qual.noise = 0; in r8192_get_wireless_stats()
920 wstats->qual.updated = IW_QUAL_ALL_UPDATED | IW_QUAL_DBM; in r8192_get_wireless_stats()
921 return wstats; in r8192_get_wireless_stats()
928 wstats->qual.level = tmp_level; in r8192_get_wireless_stats()
929 wstats->qual.qual = tmp_qual; in r8192_get_wireless_stats()
930 wstats->qual.noise = tmp_noise; in r8192_get_wireless_stats()
931 wstats->qual.updated = IW_QUAL_ALL_UPDATED | IW_QUAL_DBM; in r8192_get_wireless_stats()
[all …]
/linux-6.6.21/drivers/net/wireless/intersil/orinoco/
Dwext.c93 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 …]
Dmain.c689 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 …]
Dorinoco.h87 struct iw_statistics wstats; member
/linux-6.6.21/drivers/staging/rtl8192e/rtl8192e/
Drtl_wx.c1120 struct iw_statistics *wstats = &priv->wstats; in _rtl92e_get_wireless_stats() local
1126 wstats->qual.qual = 10; in _rtl92e_get_wireless_stats()
1127 wstats->qual.level = 0; in _rtl92e_get_wireless_stats()
1128 wstats->qual.noise = 0x100 - 100; /* -100 dBm */ in _rtl92e_get_wireless_stats()
1129 wstats->qual.updated = IW_QUAL_ALL_UPDATED | IW_QUAL_DBM; in _rtl92e_get_wireless_stats()
1130 return wstats; in _rtl92e_get_wireless_stats()
1137 wstats->qual.level = tmp_level; in _rtl92e_get_wireless_stats()
1138 wstats->qual.qual = tmp_qual; in _rtl92e_get_wireless_stats()
1139 wstats->qual.noise = tmp_noise; in _rtl92e_get_wireless_stats()
1140 wstats->qual.updated = IW_QUAL_ALL_UPDATED | IW_QUAL_DBM; in _rtl92e_get_wireless_stats()
[all …]
Drtl_core.h232 struct iw_statistics wstats; member
/linux-6.6.21/drivers/net/wireless/intel/ipw2x00/
Dlibipw_rx.c377 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 …]
Dipw2100.c2239 priv->wstats.status = status; in isr_status_change()
2459 priv->wstats.discard.misc++; in isr_rx()
2467 priv->wstats.discard.misc++; in isr_rx()
2542 priv->wstats.discard.misc++; in isr_rx_monitor()
8096 struct iw_statistics *wstats; in ipw2100_wx_wireless_stats() local
8103 wstats = &priv->wstats; in ipw2100_wx_wireless_stats()
8111 wstats->miss.beacon = 0; in ipw2100_wx_wireless_stats()
8112 wstats->discard.retries = 0; in ipw2100_wx_wireless_stats()
8113 wstats->qual.qual = 0; in ipw2100_wx_wireless_stats()
8114 wstats->qual.level = 0; in ipw2100_wx_wireless_stats()
[all …]
Dipw2200.c7641 priv->wstats.discard.misc++; in ipw_handle_data_packet()
7646 priv->wstats.discard.misc++; in ipw_handle_data_packet()
7704 priv->wstats.discard.misc++; in ipw_handle_data_packet_monitor()
7709 priv->wstats.discard.misc++; in ipw_handle_data_packet_monitor()
7719 priv->wstats.discard.misc++; in ipw_handle_data_packet_monitor()
8314 priv->wstats.discard.misc++; in ipw_rx()
9957 struct iw_statistics *wstats; in ipw_get_wireless_stats() local
9959 wstats = &priv->wstats; in ipw_get_wireless_stats()
9967 wstats->miss.beacon = 0; in ipw_get_wireless_stats()
9968 wstats->discard.retries = 0; in ipw_get_wireless_stats()
[all …]
/linux-6.6.21/drivers/net/wireless/legacy/
Dwl3501_cs.c1383 struct iw_statistics *wstats = &this->wstats; in wl3501_get_wireless_stats() local
1386 memset(wstats, 0, sizeof(*wstats)); in wl3501_get_wireless_stats()
1387 wstats->status = netif_running(dev); in wl3501_get_wireless_stats()
1390 wstats->discard.code += value; in wl3501_get_wireless_stats()
1393 wstats->discard.code += value; in wl3501_get_wireless_stats()
1396 wstats->discard.code += value; in wl3501_get_wireless_stats()
1399 wstats->discard.retries = value; in wl3501_get_wireless_stats()
1402 wstats->discard.misc += value; in wl3501_get_wireless_stats()
1405 wstats->discard.misc += value; in wl3501_get_wireless_stats()
1408 wstats->discard.misc += value; in wl3501_get_wireless_stats()
[all …]
Dray_cs.c1403 local->wstats.status = local->card_status; in ray_get_wireless_stats()
1408 local->wstats.qual.qual = local->spy_data.spy_stat[0].qual; in ray_get_wireless_stats()
1409 local->wstats.qual.level = local->spy_data.spy_stat[0].level; in ray_get_wireless_stats()
1410 local->wstats.qual.noise = local->spy_data.spy_stat[0].noise; in ray_get_wireless_stats()
1411 local->wstats.qual.updated = in ray_get_wireless_stats()
1417 local->wstats.qual.noise = readb(&p->rxnoise); in ray_get_wireless_stats()
1418 local->wstats.qual.updated |= 4; in ray_get_wireless_stats()
1421 return &local->wstats; in ray_get_wireless_stats()
2257 local->wstats.qual.level = siglev; in rx_data()
2259 local->wstats.qual.updated = 0x2; in rx_data()
[all …]
Dray_cs.h65 iw_stats wstats; /* Wireless specific stats */ member
Dwl3501.h610 struct iw_statistics wstats; member
/linux-6.6.21/drivers/net/wireless/atmel/
Datmel.c449 struct iw_statistics wstats; member
1047 priv->wstats.discard.fragment++; in frag_rx_path()
1066 priv->wstats.discard.nwid++; in rx_done_irq()
1228 priv->wstats.discard.misc++; in service_interrupt()
1269 priv->wstats.status = priv->station_state; in atmel_get_wireless_stats()
1273 priv->wstats.qual.qual = 0; in atmel_get_wireless_stats()
1274 priv->wstats.qual.level = 0; in atmel_get_wireless_stats()
1275 priv->wstats.qual.updated = (IW_QUAL_QUAL_INVALID in atmel_get_wireless_stats()
1278 priv->wstats.qual.noise = 0; in atmel_get_wireless_stats()
1279 priv->wstats.qual.updated |= IW_QUAL_NOISE_INVALID; in atmel_get_wireless_stats()
[all …]
/linux-6.6.21/drivers/staging/ks7010/
Dks_wlan_net.c62 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()
1078 vwrq->qual.level = priv->wstats.qual.level; in ks_wlan_get_iwstats()
1747 struct iw_statistics *wstats = &priv->wstats; in ks_get_wireless_stats() local
1750 return (priv->dev_state < DEVICE_STATE_READY) ? NULL : wstats; in ks_get_wireless_stats()
1756 wstats->discard.nwid = 0; /* Rx invalid nwid */ in ks_get_wireless_stats()
1757 wstats->discard.code = 0; /* Rx invalid crypt */ in ks_get_wireless_stats()
1758 wstats->discard.fragment = 0; /* Rx invalid frag */ in ks_get_wireless_stats()
1759 wstats->discard.retries = 0; /* Tx excessive retries */ in ks_get_wireless_stats()
1760 wstats->discard.misc = 0; /* Invalid misc */ in ks_get_wireless_stats()
[all …]
Dks_hostif.c919 struct iw_statistics *wstats = &priv->wstats; in hostif_phy_information_confirm() local
937 wstats->qual.qual = signal; in hostif_phy_information_confirm()
938 wstats->qual.level = 256 - rssi; in hostif_phy_information_confirm()
939 wstats->qual.noise = 0; /* invalid noise value */ in hostif_phy_information_confirm()
940 wstats->qual.updated = IW_QUAL_ALL_UPDATED | IW_QUAL_DBM; in hostif_phy_information_confirm()
Dks_wlan.h442 struct iw_statistics wstats; member
/linux-6.6.21/drivers/net/wireless/cisco/
Dairo.c1220 struct iw_statistics wstats; // wireless stats member
3399 struct iw_quality wstats; in airo_handle_rx() local
3408 wstats.qual = hdr.rssi[0]; in airo_handle_rx()
3410 wstats.level = 0x100 - ai->rssi[hdr.rssi[1]].rssidBm; in airo_handle_rx()
3412 wstats.level = (hdr.rssi[1] + 321) / 2; in airo_handle_rx()
3413 wstats.noise = ai->wstats.qual.noise; in airo_handle_rx()
3414 wstats.updated = IW_QUAL_LEVEL_UPDATED in airo_handle_rx()
3418 wireless_spy_update(ai->dev, sa, &wstats); in airo_handle_rx()
3700 struct iw_quality wstats; in mpi_receive_802_3() local
3703 wstats.qual = 0; /* XXX Where do I get that info from ??? */ in mpi_receive_802_3()
[all …]
/linux-6.6.21/drivers/net/wireless/intersil/hostap/
Dhostap_ioctl.c21 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()
49 wstats->qual.updated = IW_QUAL_ALL_UPDATED | in hostap_get_wireless_stats()
52 wstats->qual.qual = local->comms_qual; in hostap_get_wireless_stats()
53 wstats->qual.level = local->avg_signal; in hostap_get_wireless_stats()
[all …]
Dhostap_80211_rx.c764 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-6.6.21/include/net/
Diw_handler.h460 struct iw_quality *wstats);
/linux-6.6.21/drivers/staging/wlan-ng/
Dp80211netdev.h194 struct iw_statistics wstats; member
/linux-6.6.21/drivers/staging/rtl8192u/ieee80211/
Dieee80211_rx.c942 struct iw_quality wstats; in ieee80211_rx() local
943 wstats.level = rx_stats->rssi; in ieee80211_rx()
944 wstats.noise = rx_stats->noise; in ieee80211_rx()
945 wstats.updated = 6; /* No qual value */ in ieee80211_rx()
947 wireless_spy_update(dev, hdr->addr2, &wstats); in ieee80211_rx()

12