Commit 5eee6147 authored by Jérôme Pouiller's avatar Jérôme Pouiller Committed by Greg Kroah-Hartman

staging: wfx: fix counter overflow

Some weird behaviors were observed when connection is really good and
packets are small. It appears that sometime, number of packets in queues
can exceed 255 and generate an overflow in field usage_count.
Signed-off-by: default avatarJérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20191217161318.31402-4-Jerome.Pouiller@silabs.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 89606bb3
...@@ -39,8 +39,8 @@ struct wfx_link_entry { ...@@ -39,8 +39,8 @@ struct wfx_link_entry {
struct tx_policy { struct tx_policy {
struct list_head link; struct list_head link;
int usage_count;
u8 rates[12]; u8 rates[12];
u8 usage_count;
u8 uploaded; u8 uploaded;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment