提交 9d565973 编写于 作者: L Luciano Coelho 提交者: John W. Linville

wl1271: remove unecessary qual parameter from rx status

The qual element in ieee80211_rx_status is not used anymore, so we don't need
to set it in the wl1271_rx_status() function.  This saves a bit of time in
the RX path.
Signed-off-by: NLuciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 3414fc3f
...@@ -91,12 +91,6 @@ static void wl1271_rx_status(struct wl1271 *wl, ...@@ -91,12 +91,6 @@ static void wl1271_rx_status(struct wl1271 *wl,
*/ */
status->signal = desc->rssi; status->signal = desc->rssi;
/* FIXME: Should this be optimized? */
status->qual = (desc->rssi - WL1271_RX_MIN_RSSI) * 100 /
(WL1271_RX_MAX_RSSI - WL1271_RX_MIN_RSSI);
status->qual = min(status->qual, 100);
status->qual = max(status->qual, 0);
/* /*
* FIXME: In wl1251, the SNR should be divided by two. In wl1271 we * FIXME: In wl1251, the SNR should be divided by two. In wl1271 we
* need to divide by two for now, but TI has been discussing about * need to divide by two for now, but TI has been discussing about
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册