mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 11:33:28 +02:00
wifi: rtl8xxxu: Report the signal strength only if it's known
These chips don't report the signal strength for many (any?) data frames. When the signal strength is not known, set RX_FLAG_NO_SIGNAL_VAL in order to avoid reporting a signal strength of 0. Tested with RTL8192FU and RTL8192CU. Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com> Reviewed-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Link: https://patch.msgid.link/cdbe1a18-f6f1-4575-bad9-e85db8101247@gmail.com
This commit is contained in:
parent
8b795fe429
commit
7aeb8c118e
|
|
@ -6454,6 +6454,8 @@ int rtl8xxxu_parse_rxdesc16(struct rtl8xxxu_priv *priv, struct sk_buff *skb)
|
|||
rtl8xxxu_rx_update_rssi(priv,
|
||||
rx_status,
|
||||
hdr);
|
||||
} else {
|
||||
rx_status->flag |= RX_FLAG_NO_SIGNAL_VAL;
|
||||
}
|
||||
|
||||
rx_status->mactime = rx_desc->tsfl;
|
||||
|
|
@ -6560,6 +6562,8 @@ int rtl8xxxu_parse_rxdesc24(struct rtl8xxxu_priv *priv, struct sk_buff *skb)
|
|||
rtl8xxxu_rx_update_rssi(priv,
|
||||
rx_status,
|
||||
hdr);
|
||||
} else {
|
||||
rx_status->flag |= RX_FLAG_NO_SIGNAL_VAL;
|
||||
}
|
||||
|
||||
rx_status->mactime = rx_desc->tsfl;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user