cfg80211: fix elapsed_jiffies calculation
authorEliad Peller <eliad@wizery.com>
Tue, 17 Jun 2014 10:07:02 +0000 (13:07 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 23 Jun 2014 09:29:25 +0000 (11:29 +0200)
commit0ce12026d6ea4a24d52ddcde36b9643f2e26d560
treeb245ae02e5719e1811ee39749c03c6ce5770f010
parente33e2241e272eddc38339692500bd1c7d8753a77
cfg80211: fix elapsed_jiffies calculation

MAX_JIFFY_OFFSET has no meaning when calculating the
elapsed jiffies, as jiffies run out until ULONG_MAX.

This miscalculation results in erroneous values
in case of a wrap-around.

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/core.h