Lines Matching refs:ant
38 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00link_antenna_get_link_rssi() local
41 return rt2x00link_get_avg_rssi(&ant->rssi_ant); in rt2x00link_antenna_get_link_rssi()
48 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00link_antenna_get_rssi_history() local
50 if (ant->rssi_history) in rt2x00link_antenna_get_rssi_history()
51 return ant->rssi_history; in rt2x00link_antenna_get_rssi_history()
58 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00link_antenna_update_rssi_history() local
59 ant->rssi_history = rssi; in rt2x00link_antenna_update_rssi_history()
64 ewma_rssi_init(&rt2x00dev->link.ant.rssi_ant); in rt2x00link_antenna_reset()
69 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00lib_antenna_diversity_sample() local
76 memcpy(&new_ant, &ant->active, sizeof(new_ant)); in rt2x00lib_antenna_diversity_sample()
81 ant->flags &= ~ANTENNA_MODE_SAMPLE; in rt2x00lib_antenna_diversity_sample()
97 other_antenna = (ant->active.rx == ANTENNA_A) ? ANTENNA_B : ANTENNA_A; in rt2x00lib_antenna_diversity_sample()
99 if (ant->flags & ANTENNA_RX_DIVERSITY) in rt2x00lib_antenna_diversity_sample()
102 if (ant->flags & ANTENNA_TX_DIVERSITY) in rt2x00lib_antenna_diversity_sample()
110 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00lib_antenna_diversity_eval() local
115 memcpy(&new_ant, &ant->active, sizeof(new_ant)); in rt2x00lib_antenna_diversity_eval()
137 ant->flags |= ANTENNA_MODE_SAMPLE; in rt2x00lib_antenna_diversity_eval()
139 if (ant->flags & ANTENNA_RX_DIVERSITY) in rt2x00lib_antenna_diversity_eval()
142 if (ant->flags & ANTENNA_TX_DIVERSITY) in rt2x00lib_antenna_diversity_eval()
150 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00lib_antenna_diversity() local
156 if (!(ant->flags & ANTENNA_RX_DIVERSITY) && in rt2x00lib_antenna_diversity()
157 !(ant->flags & ANTENNA_TX_DIVERSITY)) { in rt2x00lib_antenna_diversity()
158 ant->flags = 0; in rt2x00lib_antenna_diversity()
168 if (ant->flags & ANTENNA_MODE_SAMPLE) { in rt2x00lib_antenna_diversity()
185 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00link_update_stats() local
217 ewma_rssi_add(&ant->rssi_ant, -rxdesc->rssi); in rt2x00link_update_stats()