/drivers/net/wireless/rt2x00/ |
D | rt2x00leds.c | 30 void rt2x00leds_led_quality(struct rt2x00_dev *rt2x00dev, int rssi) in rt2x00leds_led_quality() argument 42 rssi += rt2x00dev->rssi_offset; in rt2x00leds_led_quality() 48 if (rssi <= 30) in rt2x00leds_led_quality() 49 rssi = 0; in rt2x00leds_led_quality() 50 else if (rssi <= 39) in rt2x00leds_led_quality() 51 rssi = 1; in rt2x00leds_led_quality() 52 else if (rssi <= 49) in rt2x00leds_led_quality() 53 rssi = 2; in rt2x00leds_led_quality() 54 else if (rssi <= 53) in rt2x00leds_led_quality() 55 rssi = 3; in rt2x00leds_led_quality() [all …]
|
D | rt2x00link.c | 67 int rssi) in rt2x00link_antenna_update_rssi_history() argument 70 ant->rssi_history = rssi; in rt2x00link_antenna_update_rssi_history() 223 ewma_rssi_add(&link->avg_rssi, -rxdesc->rssi); in rt2x00link_update_stats() 228 ewma_rssi_add(&ant->rssi_ant, -rxdesc->rssi); in rt2x00link_update_stats() 339 qual->rssi = DEFAULT_RSSI; in rt2x00link_tuner() 341 qual->rssi = rt2x00link_get_avg_rssi(&link->avg_rssi); in rt2x00link_tuner() 354 rt2x00leds_led_quality(rt2x00dev, qual->rssi); in rt2x00link_tuner()
|
/drivers/net/wireless/ath/ath9k/ |
D | dfs.c | 27 u8 rssi; member 206 u8 rssi; in ath9k_postprocess_radar_event() local 224 rssi = (ard->ext_rssi >= (ard->rssi + 3)) ? 0 : ard->rssi; in ath9k_postprocess_radar_event() 234 rssi = (ard->rssi >= (ard->ext_rssi + 12)) ? 0 : ard->ext_rssi; in ath9k_postprocess_radar_event() 251 rssi = (ard->rssi < ard->ext_rssi) ? ard->ext_rssi : ard->rssi; in ath9k_postprocess_radar_event() 262 if (rssi == 0) { in ath9k_postprocess_radar_event() 269 pe->rssi = rssi; in ath9k_postprocess_radar_event() 317 ard.rssi = rs->rs_rssi_ctl[0]; in ath9k_dfs_process_phyerr() 324 if (ard.rssi & 0x80) in ath9k_dfs_process_phyerr() 325 ard.rssi = 0; in ath9k_dfs_process_phyerr() [all …]
|
D | common.c | 219 int rssi = rx_stats->rs_rssi; in ath9k_cmn_process_rssi() local 240 s8 rssi; in ath9k_cmn_process_rssi() local 245 rssi = rx_stats->rs_rssi_ctl[i]; in ath9k_cmn_process_rssi() 246 if (rssi != ATH9K_RSSI_BAD) { in ath9k_cmn_process_rssi() 248 rxs->chain_signal[j] = ah->noise + rssi; in ath9k_cmn_process_rssi() 263 rssi = ATH_EP_RND(last_rssi, ATH_RSSI_EP_MULTIPLIER); in ath9k_cmn_process_rssi() 264 if (rssi < 0) in ath9k_cmn_process_rssi() 265 rssi = 0; in ath9k_cmn_process_rssi() 267 ah->stats.avgbrssi = rssi; in ath9k_cmn_process_rssi()
|
/drivers/staging/vt6656/ |
D | rf.c | 661 s32 rssi = -priv->current_rssi; in vnt_rf_addpower() local 663 if (!rssi) in vnt_rf_addpower() 667 if (rssi < -70) in vnt_rf_addpower() 669 else if (rssi < -65) in vnt_rf_addpower() 671 else if (rssi < -60) in vnt_rf_addpower() 674 if (rssi < -80) in vnt_rf_addpower() 676 else if (rssi < -75) in vnt_rf_addpower() 678 else if (rssi < -70) in vnt_rf_addpower() 805 void vnt_rf_rssi_to_dbm(struct vnt_private *priv, u8 rssi, long *dbm) in vnt_rf_rssi_to_dbm() argument 807 u8 idx = (((rssi & 0xc0) >> 6) & 0x03); in vnt_rf_rssi_to_dbm() [all …]
|
D | dpc.c | 48 u8 *rsr, *new_rsr, *rssi, *frame; in vnt_rx_data() local 137 rssi = skb_data + 8 + pay_load_with_padding + 10; in vnt_rx_data() 145 vnt_rf_rssi_to_dbm(priv, *rssi, &rx_dbm); in vnt_rx_data()
|
/drivers/media/tuners/ |
D | mxl301rf.c | 84 struct dtv_fe_stats *rssi; in mxl301rf_get_rf_strength() local 86 rssi = &fe->dtv_property_cache.strength; in mxl301rf_get_rf_strength() 87 rssi->len = 1; in mxl301rf_get_rf_strength() 88 rssi->stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mxl301rf_get_rf_strength() 111 rssi->stat[0].svalue = level; in mxl301rf_get_rf_strength() 112 rssi->stat[0].scale = FE_SCALE_DECIBEL; in mxl301rf_get_rf_strength()
|
/drivers/net/wireless/iwlegacy/ |
D | 3945-rs.c | 100 il3945_get_rate_idx_by_rssi(s32 rssi, enum ieee80211_band band) in il3945_get_rate_idx_by_rssi() argument 106 if (rssi < IL_MIN_RSSI_VAL || rssi > IL_MAX_RSSI_VAL) in il3945_get_rate_idx_by_rssi() 107 rssi = IL_MIN_RSSI_VAL; in il3945_get_rate_idx_by_rssi() 123 while (idx < table_size && rssi < tpt_table[idx].min_rssi) in il3945_get_rate_idx_by_rssi() 914 s32 rssi = 0; in il3945_rate_scale_init() local 956 rssi = il->_3945.last_rx_rssi; in il3945_rate_scale_init() 957 if (rssi == 0) in il3945_rate_scale_init() 958 rssi = IL_MIN_RSSI_VAL; in il3945_rate_scale_init() 960 D_RATE("Network RSSI: %d\n", rssi); in il3945_rate_scale_init() 962 rs_sta->start_rate = il3945_get_rate_idx_by_rssi(rssi, il->band); in il3945_rate_scale_init() [all …]
|
/drivers/staging/vt6655/ |
D | dpc.c | 46 u8 *rsr, *new_rsr, *rssi; in vnt_rx_data() local 92 rssi = skb_data + bytes_received - 2; in vnt_rx_data() 97 RFvRSSITodBm(priv, *rssi, &rx_dbm); in vnt_rx_data() 100 priv->uCurrRSSI = *rssi; in vnt_rx_data()
|
/drivers/net/ethernet/cavium/thunder/ |
D | nic_main.c | 361 u64 cpi_base, cpi, rssi_base, rssi; in nic_config_cpi() local 389 rssi = rssi_base; in nic_config_cpi() 390 for (; rssi < (rssi_base + cfg->rq_cnt); rssi++) { in nic_config_cpi() 391 nic_reg_write(nic, NIC_PF_RSSI_0_4097_RQ | (rssi << 3), in nic_config_cpi() 396 rssi = 0; in nic_config_cpi() 409 (rssi_base + rssi)); in nic_config_cpi() 416 (vnic << 24) | (rssi_base + rssi)); in nic_config_cpi() 419 if ((rssi + 1) >= cfg->rq_cnt) in nic_config_cpi() 423 rssi++; in nic_config_cpi() 425 rssi = ((cpi - cpi_base) & 0xe) >> 1; in nic_config_cpi() [all …]
|
/drivers/net/wireless/ti/wl1251/ |
D | acx.c | 723 struct acx_low_rssi *rssi; in wl1251_acx_low_rssi() local 728 rssi = kzalloc(sizeof(*rssi), GFP_KERNEL); in wl1251_acx_low_rssi() 729 if (!rssi) in wl1251_acx_low_rssi() 732 rssi->threshold = threshold; in wl1251_acx_low_rssi() 733 rssi->weight = weight; in wl1251_acx_low_rssi() 734 rssi->depth = depth; in wl1251_acx_low_rssi() 735 rssi->type = type; in wl1251_acx_low_rssi() 737 ret = wl1251_cmd_configure(wl, ACX_LOW_RSSI, rssi, sizeof(*rssi)); in wl1251_acx_low_rssi() 741 kfree(rssi); in wl1251_acx_low_rssi()
|
/drivers/net/wireless/p54/ |
D | fwio.c | 402 struct pda_rssi_cal_entry *rssi; in p54_scan() local 410 sizeof(*rate) + 2 * sizeof(*rssi), in p54_scan() 508 rssi = (struct pda_rssi_cal_entry *) skb_put(skb, sizeof(*rssi)); in p54_scan() 510 rssi->mul = cpu_to_le16(rssi_data->mul); in p54_scan() 511 rssi->add = cpu_to_le16(rssi_data->add); in p54_scan() 514 rssi = (void *) skb_put(skb, sizeof(*rssi)); in p54_scan() 515 rssi->mul = cpu_to_le16(rssi_data->longbow_unkn); in p54_scan() 516 rssi->add = cpu_to_le16(rssi_data->longbow_unk2); in p54_scan()
|
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() 353 rx_status->signal = p54_rssi_to_dbm(priv, hdr->rssi); in p54_rx_data() 516 unsigned int i, rssi, tx, cca, dtime, dtotal, dcca, dtx, drssi, unit; in p54_rx_stats() local 547 rssi = 0; in p54_rx_stats() 549 rssi += le32_to_cpu(stats->sample_noise[i]); in p54_rx_stats() 552 drssi = rssi - priv->survey_raw.cached_rssi; in p54_rx_stats() 575 priv->survey_raw.rssi += drssi * unit; in p54_rx_stats() 576 priv->survey_raw.cached_rssi = rssi; in p54_rx_stats()
|
/drivers/net/wireless/ath/ath5k/ |
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()
|
/drivers/net/wireless/ath/ath6kl/ |
D | wmi.c | 1364 static u8 ath6kl_wmi_get_upper_threshold(s16 rssi, in ath6kl_wmi_get_upper_threshold() argument 1373 if (rssi < sq_thresh->upper_threshold[index]) { in ath6kl_wmi_get_upper_threshold() 1382 static u8 ath6kl_wmi_get_lower_threshold(s16 rssi, in ath6kl_wmi_get_lower_threshold() argument 1391 if (rssi > sq_thresh->lower_threshold[index]) { in ath6kl_wmi_get_lower_threshold() 1425 s16 rssi; in ath6kl_wmi_rssi_threshold_event_rx() local 1433 rssi = a_sle16_to_cpu(reply->rssi); in ath6kl_wmi_rssi_threshold_event_rx() 1444 if (rssi < sq_thresh->upper_threshold[0]) { in ath6kl_wmi_rssi_threshold_event_rx() 1447 rssi); in ath6kl_wmi_rssi_threshold_event_rx() 1448 } else if ((rssi < sq_thresh->upper_threshold[1]) && in ath6kl_wmi_rssi_threshold_event_rx() 1449 (rssi >= sq_thresh->upper_threshold[0])) { in ath6kl_wmi_rssi_threshold_event_rx() [all …]
|
/drivers/net/wireless/mediatek/mt7601u/ |
D | mac.c | 436 u16 rate, int rssi) in mt7601u_rx_monitor_beacon() argument 440 dev->avg_rssi = (dev->avg_rssi * 15) / 16 + (rssi << 8); in mt7601u_rx_monitor_beacon() 459 int rssi; in mt76_mac_process_rx() local 471 rssi = mt7601u_phy_get_rssi(dev, rxwi, rate); in mt76_mac_process_rx() 472 status->chain_signal[0] = status->signal = rssi; in mt76_mac_process_rx() 480 mt7601u_rx_monitor_beacon(dev, rxwi, rate, rssi); in mt76_mac_process_rx() 482 dev->avg_rssi = (dev->avg_rssi * 15) / 16 + (rssi << 8); in mt76_mac_process_rx()
|
/drivers/net/wireless/ath/ |
D | spectral_common.h | 54 s8 rssi; member 105 u8 rssi; member
|
/drivers/net/wireless/rsi/ |
D | rsi_91x_mac80211.c | 804 s8 rssi) in rsi_perform_cqm() argument 812 if (rssi < thold && (last_event == 0 || rssi < (last_event - hyst))) in rsi_perform_cqm() 814 else if (rssi > thold && in rsi_perform_cqm() 815 (last_event == 0 || rssi > (last_event + hyst))) in rsi_perform_cqm() 820 common->cqm_info.last_cqm_event_rssi = rssi; in rsi_perform_cqm() 846 char rssi = rx_params->rssi; in rsi_fill_rx_status() local 856 rxs->signal = -(rssi); in rsi_fill_rx_status()
|
/drivers/net/wireless/ |
D | rndis_wlan.c | 255 __le32 rssi; member 2020 signal = level_to_qual(le32_to_cpu(bssid->rssi)); in rndis_bss_info_update() 2472 __le32 linkspeed, rssi; in rndis_fill_station_info() local 2484 len = sizeof(rssi); in rndis_fill_station_info() 2486 &rssi, &len); in rndis_fill_station_info() 2488 sinfo->signal = level_to_qual(le32_to_cpu(rssi)); in rndis_fill_station_info() 2656 __le32 rssi; in rndis_wlan_craft_connected_bss() local 2661 len = sizeof(rssi); in rndis_wlan_craft_connected_bss() 2662 rssi = 0; in rndis_wlan_craft_connected_bss() 2664 &rssi, &len); in rndis_wlan_craft_connected_bss() [all …]
|
D | wl3501_cs.c | 687 this->rssi = sig.rssi; in wl3501_mgmt_scan_confirm() 688 this->bss_set[i].rssi = sig.rssi; in wl3501_mgmt_scan_confirm() 944 u8 rssi, addr4[ETH_ALEN]; in wl3501_md_ind_interrupt() local 950 sig.data + offsetof(struct wl3501_rx_hdr, rssi), in wl3501_md_ind_interrupt() 951 &rssi, sizeof(rssi)); in wl3501_md_ind_interrupt() 952 this->rssi = rssi <= 63 ? (rssi * 100) / 64 : 255; in wl3501_md_ind_interrupt() 1496 wrqu->sens.value = this->rssi; in wl3501_get_sens() 1961 this->rssi = 255; in wl3501_config()
|
/drivers/net/wireless/ti/wlcore/ |
D | rx.c | 83 status->signal = ((desc->rssi & RSSI_LEVEL_BITMASK) | BIT(7)); in wl1271_rx_status() 84 status->antenna = ((desc->rssi & ANT_DIVERSITY_BITMASK) >> 7); in wl1271_rx_status() 91 wl->noise = desc->rssi - (desc->snr >> 1); in wl1271_rx_status()
|
/drivers/net/wireless/brcm80211/brcmsmac/phy/ |
D | phy_cmn.c | 2532 int rssi = rxh->PhyRxStatus_1 & PRXS1_JSSI_MASK; in wlc_phy_rssi_compute() local 2538 rssi = BRCMS_RSSI_INVALID; in wlc_phy_rssi_compute() 2546 if (rssi > 127) in wlc_phy_rssi_compute() 2547 rssi -= 256; in wlc_phy_rssi_compute() 2549 rssi = rssi + lcnphy_gain_index_offset_for_pkt_rssi[gidx]; in wlc_phy_rssi_compute() 2550 if ((rssi > -46) && (gidx > 18)) in wlc_phy_rssi_compute() 2551 rssi = rssi + 7; in wlc_phy_rssi_compute() 2553 rssi = rssi + pi_lcn->lcnphy_pkteng_rssi_slope; in wlc_phy_rssi_compute() 2555 rssi = rssi + 2; in wlc_phy_rssi_compute() 2560 if (rssi > 127) in wlc_phy_rssi_compute() [all …]
|
/drivers/net/wireless/iwlwifi/mvm/ |
D | fw-api-tof.h | 233 s8 rssi; member 319 s8 rssi; member
|
/drivers/net/wireless/prism54/ |
D | islpci_eth.c | 261 u8 rssi = hdr->rssi; in islpci_monitor_rx() local 294 avs->ssi_signal = cpu_to_be32(rssi & 0x7f); in islpci_monitor_rx() 385 wstats.level = annex->rfmon.rssi; in islpci_eth_receive()
|
/drivers/net/wireless/mwifiex/ |
D | scan.c | 1734 s32 rssi; in mwifiex_parse_single_response_buf() local 1787 rssi = (s32) *current_ptr; in mwifiex_parse_single_response_buf() 1788 rssi = (-rssi) * 100; /* Convert dBm to mBm */ in mwifiex_parse_single_response_buf() 1792 "info: InterpretIE: RSSI=%d\n", rssi); in mwifiex_parse_single_response_buf() 1794 rssi = rssi_val; in mwifiex_parse_single_response_buf() 1865 ie_buf, ie_len, rssi, GFP_ATOMIC); in mwifiex_parse_single_response_buf() 2314 s32 rssi = 0; in mwifiex_handle_event_ext_scan_report() local 2409 rssi = (s32)(s16)(le16_to_cpu(scan_info_tlv->rssi)); in mwifiex_handle_event_ext_scan_report() 2410 rssi *= 100; /* Convert dBm to mBm */ in mwifiex_handle_event_ext_scan_report() 2412 "info: InterpretIE: RSSI=%d\n", rssi); in mwifiex_handle_event_ext_scan_report() [all …]
|