diff options
Diffstat (limited to 'drivers/net/wireless/libertas/rx.c')
-rw-r--r-- | drivers/net/wireless/libertas/rx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/libertas/rx.c b/drivers/net/wireless/libertas/rx.c index 2473931f8151..83a7765fd23c 100644 --- a/drivers/net/wireless/libertas/rx.c +++ b/drivers/net/wireless/libertas/rx.c | |||
@@ -85,12 +85,12 @@ static u8 wlan_getavgnf(wlan_private * priv) | |||
85 | static void wlan_save_rawSNRNF(wlan_private * priv, struct rxpd *p_rx_pd) | 85 | static void wlan_save_rawSNRNF(wlan_private * priv, struct rxpd *p_rx_pd) |
86 | { | 86 | { |
87 | wlan_adapter *adapter = priv->adapter; | 87 | wlan_adapter *adapter = priv->adapter; |
88 | if (adapter->numSNRNF < adapter->data_avg_factor) | 88 | if (adapter->numSNRNF < DEFAULT_DATA_AVG_FACTOR) |
89 | adapter->numSNRNF++; | 89 | adapter->numSNRNF++; |
90 | adapter->rawSNR[adapter->nextSNRNF] = p_rx_pd->snr; | 90 | adapter->rawSNR[adapter->nextSNRNF] = p_rx_pd->snr; |
91 | adapter->rawNF[adapter->nextSNRNF] = p_rx_pd->nf; | 91 | adapter->rawNF[adapter->nextSNRNF] = p_rx_pd->nf; |
92 | adapter->nextSNRNF++; | 92 | adapter->nextSNRNF++; |
93 | if (adapter->nextSNRNF >= adapter->data_avg_factor) | 93 | if (adapter->nextSNRNF >= DEFAULT_DATA_AVG_FACTOR) |
94 | adapter->nextSNRNF = 0; | 94 | adapter->nextSNRNF = 0; |
95 | return; | 95 | return; |
96 | } | 96 | } |