Home
last modified time | relevance | path

Searched refs:rssi (Results 1 – 25 of 154) sorted by relevance

1234567

/drivers/net/wireless/ralink/rt2x00/
Drt2x00leds.c30 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 …]
Drt2x00link.c67 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/
Ddfs.c27 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 …]
Dcommon.c219 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/
Drf.c657 s32 rssi = -priv->current_rssi; in vnt_rf_addpower() local
659 if (!rssi) in vnt_rf_addpower()
663 if (rssi < -70) in vnt_rf_addpower()
665 else if (rssi < -65) in vnt_rf_addpower()
667 else if (rssi < -60) in vnt_rf_addpower()
670 if (rssi < -80) in vnt_rf_addpower()
672 else if (rssi < -75) in vnt_rf_addpower()
674 else if (rssi < -70) in vnt_rf_addpower()
801 void vnt_rf_rssi_to_dbm(struct vnt_private *priv, u8 rssi, long *dbm) in vnt_rf_rssi_to_dbm() argument
803 u8 idx = (((rssi & 0xc0) >> 6) & 0x03); in vnt_rf_rssi_to_dbm()
[all …]
Ddpc.c45 u8 *rsr, *new_rsr, *rssi, *frame; in vnt_rx_data() local
133 rssi = skb_data + 8 + pay_load_with_padding + 10; in vnt_rx_data()
141 vnt_rf_rssi_to_dbm(priv, *rssi, &rx_dbm); in vnt_rx_data()
/drivers/media/tuners/
Dmxl301rf.c84 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/intel/iwlegacy/
D3945-rs.c100 il3945_get_rate_idx_by_rssi(s32 rssi, enum nl80211_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/
Ddpc.c46 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/
Dnic_main.c513 u64 cpi_base, cpi, rssi_base, rssi; in nic_config_cpi() local
541 rssi = rssi_base; in nic_config_cpi()
542 for (; rssi < (rssi_base + cfg->rq_cnt); rssi++) { in nic_config_cpi()
543 nic_reg_write(nic, NIC_PF_RSSI_0_4097_RQ | (rssi << 3), in nic_config_cpi()
548 rssi = 0; in nic_config_cpi()
561 (rssi_base + rssi)); in nic_config_cpi()
568 (vnic << 24) | (rssi_base + rssi)); in nic_config_cpi()
571 if ((rssi + 1) >= cfg->rq_cnt) in nic_config_cpi()
575 rssi++; in nic_config_cpi()
577 rssi = ((cpi - cpi_base) & 0xe) >> 1; in nic_config_cpi()
[all …]
/drivers/net/wireless/ti/wl1251/
Dacx.c723 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()
Drx.c73 status->signal = desc->rssi; in wl1251_rx_status()
79 wl->noise = desc->rssi - desc->snr / 2; in wl1251_rx_status()
/drivers/net/wireless/intersil/p54/
Dfwio.c402 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()
Dtxrx.c275 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/
Dani.c226 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/
Dwmi.c1360 static u8 ath6kl_wmi_get_upper_threshold(s16 rssi, in ath6kl_wmi_get_upper_threshold() argument
1369 if (rssi < sq_thresh->upper_threshold[index]) { in ath6kl_wmi_get_upper_threshold()
1378 static u8 ath6kl_wmi_get_lower_threshold(s16 rssi, in ath6kl_wmi_get_lower_threshold() argument
1387 if (rssi > sq_thresh->lower_threshold[index]) { in ath6kl_wmi_get_lower_threshold()
1421 s16 rssi; in ath6kl_wmi_rssi_threshold_event_rx() local
1429 rssi = a_sle16_to_cpu(reply->rssi); in ath6kl_wmi_rssi_threshold_event_rx()
1440 if (rssi < sq_thresh->upper_threshold[0]) { in ath6kl_wmi_rssi_threshold_event_rx()
1443 rssi); in ath6kl_wmi_rssi_threshold_event_rx()
1444 } else if ((rssi < sq_thresh->upper_threshold[1]) && in ath6kl_wmi_rssi_threshold_event_rx()
1445 (rssi >= sq_thresh->upper_threshold[0])) { in ath6kl_wmi_rssi_threshold_event_rx()
[all …]
/drivers/net/wireless/mediatek/mt7601u/
Dmac.c436 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/
Dspectral_common.h54 s8 rssi; member
105 u8 rssi; member
/drivers/net/wireless/rsi/
Drsi_91x_mac80211.c803 s8 rssi) in rsi_perform_cqm() argument
811 if (rssi < thold && (last_event == 0 || rssi < (last_event - hyst))) in rsi_perform_cqm()
813 else if (rssi > thold && in rsi_perform_cqm()
814 (last_event == 0 || rssi > (last_event + hyst))) in rsi_perform_cqm()
819 common->cqm_info.last_cqm_event_rssi = rssi; in rsi_perform_cqm()
845 char rssi = rx_params->rssi; in rsi_fill_rx_status() local
855 rxs->signal = -(rssi); in rsi_fill_rx_status()
/drivers/net/wireless/
Drndis_wlan.c255 __le32 rssi; member
2020 signal = level_to_qual(le32_to_cpu(bssid->rssi)); in rndis_bss_info_update()
2474 __le32 linkspeed, rssi; in rndis_fill_station_info() local
2486 len = sizeof(rssi); in rndis_fill_station_info()
2488 &rssi, &len); in rndis_fill_station_info()
2490 sinfo->signal = level_to_qual(le32_to_cpu(rssi)); in rndis_fill_station_info()
2658 __le32 rssi; in rndis_wlan_craft_connected_bss() local
2663 len = sizeof(rssi); in rndis_wlan_craft_connected_bss()
2664 rssi = 0; in rndis_wlan_craft_connected_bss()
2666 &rssi, &len); in rndis_wlan_craft_connected_bss()
[all …]
/drivers/net/wireless/ti/wlcore/
Drx.c83 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/broadcom/brcm80211/brcmsmac/phy/
Dphy_cmn.c2532 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/intel/iwlwifi/mvm/
Dfw-api-tof.h233 s8 rssi; member
319 s8 rssi; member
/drivers/net/wireless/intersil/prism54/
Dislpci_eth.c261 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/ethernet/toshiba/
Dps3_gelic_wireless.h160 __be16 rssi; /* percentage */ member
195 __be16 rssi; member

1234567