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: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20191217161318.31402-4-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Jérôme Pouiller 2019-12-17 16:14:30 +00:00 committed by Greg Kroah-Hartman
parent 89606bb3a9
commit 5eee614700

View File

@ -39,8 +39,8 @@ struct wfx_link_entry {
struct tx_policy {
struct list_head link;
int usage_count;
u8 rates[12];
u8 usage_count;
u8 uploaded;
};