OSDN Git Service

mac80211: allow not sending MIC up from driver for HW crypto
authorSara Sharon <sara.sharon@intel.com>
Wed, 24 Feb 2016 09:49:45 +0000 (11:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 May 2018 08:06:46 +0000 (10:06 +0200)
commit706e58e319087f02267208b160af584c09c36dfd
treef893e9b20bd1f775aea44e8388cf100caf1721a3
parent5381f9d1dd9149cbba00bb4f9335e140855dce1c
mac80211: allow not sending MIC up from driver for HW crypto

commit f980ebc058c2fa2a552e495db1de0b330082ab70 upstream.

When HW crypto is used, there's no need for the CCMP/GCMP MIC to
be available to mac80211, and the hardware might have removed it
already after checking. The MIC is also useless to have when the
frame is already decrypted, so allow indicating that it's not
present.

Since we are running out of bits in mac80211_rx_flags, make
the flags field a u64.

Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Cc: Sriram R <srirrama@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/ath/ath10k/htt_rx.c
drivers/net/wireless/ath/wcn36xx/txrx.c
include/net/mac80211.h
net/mac80211/util.c
net/mac80211/wpa.c