mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +00:00
[PATCH] libertas: fix WEXT quality reporting
Found by Ronak and others at Marvell. Signed-off-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
fcff0e0856
commit
b20c520763
@ -949,7 +949,7 @@ static struct iw_statistics *wlan_get_wireless_stats(struct net_device *dev)
|
||||
priv->wstats.discard.misc = le16_to_cpu(adapter->logmsg.ackfailure);
|
||||
|
||||
/* Calculate quality */
|
||||
priv->wstats.qual.qual = max(quality, (u32)100);
|
||||
priv->wstats.qual.qual = min_t(u32, quality, 100);
|
||||
priv->wstats.qual.updated = IW_QUAL_ALL_UPDATED | IW_QUAL_DBM;
|
||||
stats_valid = 1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user