提交 caef47a0 编写于 作者: H Holger Schurig 提交者: David S. Miller

[PATCH] libertas: remove adapter->rxpd_rate

No code uses the contents of this variable, so it can go.
Signed-off-by: NHolger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 cad9d9b1
...@@ -60,7 +60,6 @@ void libertas_mac_event_disconnected(wlan_private * priv) ...@@ -60,7 +60,6 @@ void libertas_mac_event_disconnected(wlan_private * priv)
memset(adapter->rawNF, 0x00, sizeof(adapter->rawNF)); memset(adapter->rawNF, 0x00, sizeof(adapter->rawNF));
adapter->nextSNRNF = 0; adapter->nextSNRNF = 0;
adapter->numSNRNF = 0; adapter->numSNRNF = 0;
adapter->rxpd_rate = 0;
lbs_deb_cmd("current SSID '%s', length %u\n", lbs_deb_cmd("current SSID '%s', length %u\n",
escape_essid(adapter->curbssparams.ssid, escape_essid(adapter->curbssparams.ssid,
adapter->curbssparams.ssid_len), adapter->curbssparams.ssid_len),
......
...@@ -343,7 +343,6 @@ struct _wlan_adapter { ...@@ -343,7 +343,6 @@ struct _wlan_adapter {
u8 rawNF[DEFAULT_DATA_AVG_FACTOR]; u8 rawNF[DEFAULT_DATA_AVG_FACTOR];
u16 nextSNRNF; u16 nextSNRNF;
u16 numSNRNF; u16 numSNRNF;
u16 rxpd_rate;
u8 radioon; u8 radioon;
u32 preamble; u32 preamble;
......
...@@ -117,8 +117,6 @@ static void wlan_compute_rssi(wlan_private * priv, struct rxpd *p_rx_pd) ...@@ -117,8 +117,6 @@ static void wlan_compute_rssi(wlan_private * priv, struct rxpd *p_rx_pd)
adapter->NF[TYPE_RXPD][TYPE_NOAVG] = p_rx_pd->nf; adapter->NF[TYPE_RXPD][TYPE_NOAVG] = p_rx_pd->nf;
wlan_save_rawSNRNF(priv, p_rx_pd); wlan_save_rawSNRNF(priv, p_rx_pd);
adapter->rxpd_rate = p_rx_pd->rx_rate;
adapter->SNR[TYPE_RXPD][TYPE_AVG] = wlan_getavgsnr(priv) * AVG_SCALE; adapter->SNR[TYPE_RXPD][TYPE_AVG] = wlan_getavgsnr(priv) * AVG_SCALE;
adapter->NF[TYPE_RXPD][TYPE_AVG] = wlan_getavgnf(priv) * AVG_SCALE; adapter->NF[TYPE_RXPD][TYPE_AVG] = wlan_getavgnf(priv) * AVG_SCALE;
lbs_deb_rx("after computing SNR: SNR-avg = %d, NF-avg = %d\n", lbs_deb_rx("after computing SNR: SNR-avg = %d, NF-avg = %d\n",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册