wlcore: save seq num only between recoveries
authorEliad Peller <eliad@wizery.com>
Fri, 11 Jul 2014 00:01:26 +0000 (03:01 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 15 Jul 2014 19:59:51 +0000 (15:59 -0400)
commit50d26aa338fb290f0488e8f87c1c080d2de26e21
treeea5d017e3b5e98d923396612fe6ba223218b342f
parent72fcd3d16c16cd47a897cd72cd9a231aab01ac5b
wlcore: save seq num only between recoveries

We want seq num (freed_pkts) to be initialized
on each new connection, but keep persistent
between recoveries/suspends.

Save the freed_pkts in the private block of the
sta struct (we already do a similar thing for
AP's stations).

However, keep the old wlvif->total_freed_pkts
in order to avoid too intrusive change.

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ti/wlcore/cmd.c
drivers/net/wireless/ti/wlcore/main.c
drivers/net/wireless/ti/wlcore/wlcore_i.h