/linux/drivers/net/wireless/ralink/rt2x00/ |
H A D | rt2x00leds.c | 19 void rt2x00leds_led_quality(struct rt2x00_dev *rt2x00dev, int rssi) in rt2x00leds_led_quality() argument 31 rssi += rt2x00dev->rssi_offset; in rt2x00leds_led_quality() 37 if (rssi <= 30) in rt2x00leds_led_quality() 38 rssi = 0; in rt2x00leds_led_quality() 39 else if (rssi <= 39) in rt2x00leds_led_quality() 40 rssi = 1; in rt2x00leds_led_quality() 41 else if (rssi <= 49) in rt2x00leds_led_quality() 42 rssi = 2; in rt2x00leds_led_quality() 43 else if (rssi <= 53) in rt2x00leds_led_quality() 44 rssi = 3; in rt2x00leds_led_quality() [all …]
|
H A D | rt2x00link.c | 56 int rssi) in rt2x00link_antenna_update_rssi_history() argument 59 ant->rssi_history = rssi; in rt2x00link_antenna_update_rssi_history() 212 ewma_rssi_add(&link->avg_rssi, -rxdesc->rssi); in rt2x00link_update_stats() 217 ewma_rssi_add(&ant->rssi_ant, -rxdesc->rssi); in rt2x00link_update_stats() 315 qual->rssi = DEFAULT_RSSI; in rt2x00link_tuner_sta() 317 qual->rssi = rt2x00link_get_avg_rssi(&link->avg_rssi); in rt2x00link_tuner_sta() 330 rt2x00leds_led_quality(rt2x00dev, qual->rssi); in rt2x00link_tuner_sta()
|
H A D | rt2x00lib.h | 388 void rt2x00leds_led_quality(struct rt2x00_dev *rt2x00dev, int rssi); 398 int rssi) in rt2x00leds_led_quality() argument
|
/linux/drivers/net/wireless/ath/ath9k/ |
H A D | dfs.c | 27 u8 rssi; member 204 u8 rssi; in ath9k_postprocess_radar_event() local 222 rssi = (ard->ext_rssi >= (ard->rssi + 3)) ? 0 : ard->rssi; in ath9k_postprocess_radar_event() 232 rssi = (ard->rssi >= (ard->ext_rssi + 12)) ? 0 : ard->ext_rssi; in ath9k_postprocess_radar_event() 249 rssi = max(ard->rssi, ard->ext_rssi); in ath9k_postprocess_radar_event() 260 if (rssi == 0) { in ath9k_postprocess_radar_event() 267 pe->rssi = rssi; in ath9k_postprocess_radar_event() 315 ard.rssi = rs->rs_rssi_ctl[0]; in ath9k_dfs_process_phyerr() 322 if (ard.rssi & 0x80) in ath9k_dfs_process_phyerr() 323 ard.rssi = 0; in ath9k_dfs_process_phyerr() [all …]
|
H A D | common.c | 220 int rssi = rx_stats->rs_rssi; in ath9k_cmn_process_rssi() local 241 s8 rssi; in ath9k_cmn_process_rssi() local 246 rssi = rx_stats->rs_rssi_ctl[i]; in ath9k_cmn_process_rssi() 247 if (rssi != ATH9K_RSSI_BAD) { in ath9k_cmn_process_rssi() 249 rxs->chain_signal[j] = ah->noise + rssi; in ath9k_cmn_process_rssi() 264 rssi = ATH_EP_RND(last_rssi, ATH_RSSI_EP_MULTIPLIER); in ath9k_cmn_process_rssi() 265 if (rssi < 0) in ath9k_cmn_process_rssi() 266 rssi = 0; in ath9k_cmn_process_rssi() 268 ah->stats.avgbrssi = rssi; in ath9k_cmn_process_rssi()
|
/linux/drivers/net/wireless/mediatek/mt76/mt7615/ |
H A D | testmode.c | 327 void *rx, *rssi; in mt7615_tm_dump_stats() local 337 rssi = nla_nest_start(msg, MT76_TM_RX_ATTR_RCPI); in mt7615_tm_dump_stats() 338 if (!rssi) in mt7615_tm_dump_stats() 345 nla_nest_end(msg, rssi); in mt7615_tm_dump_stats() 347 rssi = nla_nest_start(msg, MT76_TM_RX_ATTR_IB_RSSI); in mt7615_tm_dump_stats() 348 if (!rssi) in mt7615_tm_dump_stats() 355 nla_nest_end(msg, rssi); in mt7615_tm_dump_stats() 357 rssi = nla_nest_start(msg, MT76_TM_RX_ATTR_WB_RSSI); in mt7615_tm_dump_stats() 358 if (!rssi) in mt7615_tm_dump_stats() 365 nla_nest_end(msg, rssi); in mt7615_tm_dump_stats()
|
/linux/drivers/media/tuners/ |
H A D | mxl301rf.c | 75 struct dtv_fe_stats *rssi; in mxl301rf_get_rf_strength() local 77 rssi = &fe->dtv_property_cache.strength; in mxl301rf_get_rf_strength() 78 rssi->len = 1; in mxl301rf_get_rf_strength() 79 rssi->stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mxl301rf_get_rf_strength() 102 rssi->stat[0].svalue = level; in mxl301rf_get_rf_strength() 103 rssi->stat[0].scale = FE_SCALE_DECIBEL; in mxl301rf_get_rf_strength()
|
/linux/drivers/net/wireless/intel/iwlegacy/ |
H A D | 3945-rs.c | 85 il3945_get_rate_idx_by_rssi(s32 rssi, enum nl80211_band band) in il3945_get_rate_idx_by_rssi() argument 91 if (rssi < IL_MIN_RSSI_VAL || rssi > IL_MAX_RSSI_VAL) in il3945_get_rate_idx_by_rssi() 92 rssi = IL_MIN_RSSI_VAL; in il3945_get_rate_idx_by_rssi() 108 while (idx < table_size && rssi < tpt_table[idx].min_rssi) in il3945_get_rate_idx_by_rssi() 882 s32 rssi = 0; in il3945_rate_scale_init() local 924 rssi = il->_3945.last_rx_rssi; in il3945_rate_scale_init() 925 if (rssi == 0) in il3945_rate_scale_init() 926 rssi = IL_MIN_RSSI_VAL; in il3945_rate_scale_init() 928 D_RATE("Network RSSI: %d\n", rssi); in il3945_rate_scale_init() 930 rs_sta->start_rate = il3945_get_rate_idx_by_rssi(rssi, il->band); in il3945_rate_scale_init() [all …]
|
/linux/drivers/net/wireless/ath/ |
H A D | spectral_common.h | 55 s8 rssi; member 106 u8 rssi; member 122 __be16 rssi; member
|
/linux/drivers/net/ethernet/cavium/thunder/ |
H A D | nic_main.c | 477 u64 cpi_base, cpi, rssi_base, rssi; in nic_config_cpi() local 505 rssi = rssi_base; in nic_config_cpi() 506 for (; rssi < (rssi_base + cfg->rq_cnt); rssi++) { in nic_config_cpi() 507 nic_reg_write(nic, NIC_PF_RSSI_0_4097_RQ | (rssi << 3), in nic_config_cpi() 512 rssi = 0; in nic_config_cpi() 525 (rssi_base + rssi)); in nic_config_cpi() 532 (vnic << 24) | (rssi_base + rssi)); in nic_config_cpi() 535 if ((rssi + 1) >= cfg->rq_cnt) in nic_config_cpi() 539 rssi++; in nic_config_cpi() 541 rssi = ((cpi - cpi_base) & 0xe) >> 1; in nic_config_cpi() [all …]
|
/linux/drivers/net/wireless/ti/wl1251/ |
H A D | acx.c | 724 struct acx_low_rssi *rssi; in wl1251_acx_low_rssi() local 729 rssi = kzalloc(sizeof(*rssi), GFP_KERNEL); in wl1251_acx_low_rssi() 730 if (!rssi) in wl1251_acx_low_rssi() 733 rssi->threshold = threshold; in wl1251_acx_low_rssi() 734 rssi->weight = weight; in wl1251_acx_low_rssi() 735 rssi->depth = depth; in wl1251_acx_low_rssi() 736 rssi->type = type; in wl1251_acx_low_rssi() 738 ret = wl1251_cmd_configure(wl, ACX_LOW_RSSI, rssi, sizeof(*rssi)); in wl1251_acx_low_rssi() 742 kfree(rssi); in wl1251_acx_low_rssi()
|
H A D | rx.c | 59 status->signal = desc->rssi; in wl1251_rx_status() 65 wl->noise = desc->rssi - desc->snr / 2; in wl1251_rx_status()
|
/linux/drivers/net/wireless/realtek/rtw88/ |
H A D | bf.h | 93 void rtw_bf_cfg_csi_rate(struct rtw_dev *rtwdev, u8 rssi, u8 cur_rate, 110 static inline void rtw_chip_cfg_csi_rate(struct rtw_dev *rtwdev, u8 rssi, u8 cur_rate, in rtw_chip_cfg_csi_rate() argument 114 rtwdev->chip->ops->cfg_csi_rate(rtwdev, rssi, cur_rate, in rtw_chip_cfg_csi_rate()
|
/linux/drivers/net/wireless/mediatek/mt76/mt7915/ |
H A D | testmode.c | 728 void *rx, *rssi; in mt7915_tm_dump_stats() local 740 rssi = nla_nest_start(msg, MT76_TM_RX_ATTR_RCPI); in mt7915_tm_dump_stats() 741 if (!rssi) in mt7915_tm_dump_stats() 748 nla_nest_end(msg, rssi); in mt7915_tm_dump_stats() 750 rssi = nla_nest_start(msg, MT76_TM_RX_ATTR_IB_RSSI); in mt7915_tm_dump_stats() 751 if (!rssi) in mt7915_tm_dump_stats() 758 nla_nest_end(msg, rssi); in mt7915_tm_dump_stats() 760 rssi = nla_nest_start(msg, MT76_TM_RX_ATTR_WB_RSSI); in mt7915_tm_dump_stats() 761 if (!rssi) in mt7915_tm_dump_stats() 768 nla_nest_end(msg, rssi); in mt7915_tm_dump_stats()
|
/linux/drivers/net/wireless/intersil/p54/ |
H A D | fwio.c | 397 struct pda_rssi_cal_entry *rssi; in p54_scan() local 405 sizeof(*rate) + 2 * sizeof(*rssi), in p54_scan() 503 rssi = skb_put(skb, sizeof(*rssi)); in p54_scan() 505 rssi->mul = cpu_to_le16(rssi_data->mul); in p54_scan() 506 rssi->add = cpu_to_le16(rssi_data->add); in p54_scan() 509 rssi = skb_put(skb, sizeof(*rssi)); in p54_scan() 510 rssi->mul = cpu_to_le16(rssi_data->longbow_unkn); in p54_scan() 511 rssi->add = cpu_to_le16(rssi_data->longbow_unk2); in p54_scan()
|
H A D | txrx.c | 275 static int p54_rssi_to_dbm(struct p54_common *priv, int rssi) in p54_rssi_to_dbm() argument 278 return ((rssi * priv->cur_rssi->mul) / 64 + in p54_rssi_to_dbm() 284 return rssi / 2 - 110; in p54_rssi_to_dbm() 354 rx_status->signal = p54_rssi_to_dbm(priv, hdr->rssi); in p54_rx_data() 518 unsigned int i, rssi, tx, cca, dtime, dtotal, dcca, dtx, drssi, unit; in p54_rx_stats() local 549 rssi = 0; in p54_rx_stats() 551 rssi += le32_to_cpu(stats->sample_noise[i]); in p54_rx_stats() 554 drssi = rssi - priv->survey_raw.cached_rssi; in p54_rx_stats() 577 priv->survey_raw.rssi += drssi * unit; in p54_rx_stats() 578 priv->survey_raw.cached_rssi = rssi; in p54_rx_stats()
|
/linux/drivers/net/wireless/ath/ath5k/ |
H A D | ani.c | 226 int rssi = ewma_beacon_rssi_read(&ah->ah_beacon_rssi_avg); in ath5k_ani_raise_immunity() local 257 if (rssi > ATH5K_ANI_RSSI_THR_HIGH) { in ath5k_ani_raise_immunity() 272 } else if (rssi > ATH5K_ANI_RSSI_THR_LOW) { in ath5k_ani_raise_immunity() 312 int rssi = ewma_beacon_rssi_read(&ah->ah_beacon_rssi_avg); in ath5k_ani_lower_immunity() local 324 if (rssi > ATH5K_ANI_RSSI_THR_HIGH) { in ath5k_ani_lower_immunity() 328 } else if (rssi > ATH5K_ANI_RSSI_THR_LOW) { in ath5k_ani_lower_immunity()
|
/linux/drivers/net/wireless/ath/ath6kl/ |
H A D | wmi.c | 1355 static u8 ath6kl_wmi_get_upper_threshold(s16 rssi, in ath6kl_wmi_get_upper_threshold() argument 1364 if (rssi < sq_thresh->upper_threshold[index]) { in ath6kl_wmi_get_upper_threshold() 1373 static u8 ath6kl_wmi_get_lower_threshold(s16 rssi, in ath6kl_wmi_get_lower_threshold() argument 1382 if (rssi > sq_thresh->lower_threshold[index]) { in ath6kl_wmi_get_lower_threshold() 1416 s16 rssi; in ath6kl_wmi_rssi_threshold_event_rx() local 1424 rssi = a_sle16_to_cpu(reply->rssi); in ath6kl_wmi_rssi_threshold_event_rx() 1435 if (rssi < sq_thresh->upper_threshold[0]) { in ath6kl_wmi_rssi_threshold_event_rx() 1438 rssi); in ath6kl_wmi_rssi_threshold_event_rx() 1439 } else if ((rssi < sq_thresh->upper_threshold[1]) && in ath6kl_wmi_rssi_threshold_event_rx() 1440 (rssi >= sq_thresh->upper_threshold[0])) { in ath6kl_wmi_rssi_threshold_event_rx() [all …]
|
/linux/drivers/net/wireless/mediatek/mt7601u/ |
H A D | mac.c | 444 u16 rate, int rssi) in mt7601u_rx_monitor_beacon() argument 448 ewma_rssi_add(&dev->avg_rssi, -rssi); in mt7601u_rx_monitor_beacon() 467 int rssi; in mt76_mac_process_rx() local 487 rssi = mt7601u_phy_get_rssi(dev, rxwi, rate); in mt76_mac_process_rx() 488 status->chain_signal[0] = status->signal = rssi; in mt76_mac_process_rx() 496 mt7601u_rx_monitor_beacon(dev, rxwi, rate, rssi); in mt76_mac_process_rx() 498 ewma_rssi_add(&dev->avg_rssi, -rssi); in mt76_mac_process_rx()
|
/linux/drivers/staging/rtl8723bs/hal/ |
H A D | odm_HWConfig.c | 109 u8 rssi, total_rssi = 0; in odm_rx_phy_status_parsing() local 191 rssi = odm_query_rx_pwr_percentage(rx_pwr[i]); in odm_rx_phy_status_parsing() 192 total_rssi += rssi; in odm_rx_phy_status_parsing() 194 phy_info->rx_mimo_signal_strength[i] = (u8)rssi; in odm_rx_phy_status_parsing()
|
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192d/ |
H A D | trx_common.c | 35 u32 rssi, total_rssi = 0; in _rtl92d_query_rxphystatus() local 138 rssi = rtl_query_rxpwrpercentage(rx_pwr[i]); in _rtl92d_query_rxphystatus() 139 total_rssi += rssi; in _rtl92d_query_rxphystatus() 143 pstats->rx_mimo_signalstrength[i] = (u8)rssi; in _rtl92d_query_rxphystatus() 230 pstats->rssi = rtlpriv->stats.signal_strength; in _rtl92d_process_ui_rssi()
|
/linux/drivers/net/wireless/ti/wlcore/ |
H A D | rx.c | 69 status->signal = ((desc->rssi & RSSI_LEVEL_BITMASK) | BIT(7)); in wl1271_rx_status() 70 status->antenna = ((desc->rssi & ANT_DIVERSITY_BITMASK) >> 7); in wl1271_rx_status() 77 wl->noise = desc->rssi - (desc->snr >> 1); in wl1271_rx_status()
|
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/ |
H A D | phy_cmn.c | 2519 int rssi = rxh->PhyRxStatus_1 & PRXS1_JSSI_MASK; in wlc_phy_rssi_compute() local 2525 rssi = BRCMS_RSSI_INVALID; in wlc_phy_rssi_compute() 2533 if (rssi > 127) in wlc_phy_rssi_compute() 2534 rssi -= 256; in wlc_phy_rssi_compute() 2536 rssi = rssi + lcnphy_gain_index_offset_for_pkt_rssi[gidx]; in wlc_phy_rssi_compute() 2537 if ((rssi > -46) && (gidx > 18)) in wlc_phy_rssi_compute() 2538 rssi = rssi + 7; in wlc_phy_rssi_compute() 2540 rssi = rssi + pi_lcn->lcnphy_pkteng_rssi_slope; in wlc_phy_rssi_compute() 2542 rssi = rssi + 2; in wlc_phy_rssi_compute() 2547 if (rssi > 127) in wlc_phy_rssi_compute() [all …]
|
/linux/drivers/net/wireless/marvell/mwifiex/ |
H A D | tdls.c | 1296 if (peer->rssi <= MWIFIEX_TDLS_RSSI_HIGH && in mwifiex_tdls_check_tx() 1303 peer->mac_addr, peer->rssi); in mwifiex_tdls_check_tx() 1408 peer->rssi = nflr - snr; in mwifiex_auto_tdls_update_peer_signal() 1443 tdls_peer->rssi = 0; in mwifiex_check_auto_tdls() 1448 if (((tdls_peer->rssi >= MWIFIEX_TDLS_RSSI_LOW) || in mwifiex_check_auto_tdls() 1449 !tdls_peer->rssi) && in mwifiex_check_auto_tdls() 1454 tdls_peer->mac_addr, -tdls_peer->rssi); in mwifiex_check_auto_tdls() 1461 } else if (tdls_peer->rssi && in mwifiex_check_auto_tdls() 1462 tdls_peer->rssi <= MWIFIEX_TDLS_RSSI_HIGH && in mwifiex_check_auto_tdls() 1470 tdls_peer->rssi); in mwifiex_check_auto_tdls()
|
/linux/drivers/net/wireless/purelifi/plfxlc/ |
H A D | intf.h | 27 __be16 rssi; member
|