mac80211: Fix accounting of the tailroom-needed counter
authorIdo Yariv <ido@wizery.com>
Tue, 29 Jul 2014 12:38:53 +0000 (15:38 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 26 Aug 2014 09:15:59 +0000 (11:15 +0200)
commitca34e3b5c808385b175650605faa29e71e91991b
tree306b688cae1820d65902c31c82b95f4c23e9293b
parent170fd0b1f6108b48df4369afa0ee29a83e922748
mac80211: Fix accounting of the tailroom-needed counter

When hw acceleration is enabled, the GENERATE_IV or PUT_IV_SPACE flags
will only require headroom space. Consequently, the tailroom-needed
counter can safely be decremented.

Signed-off-by: Ido Yariv <idox.yariv@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/mac80211.h
net/mac80211/key.c