iwlwifi: pcie: gen2: build A-MSDU only for GSO
authorJohannes Berg <johannes.berg@intel.com>
Fri, 1 Jun 2018 07:45:55 +0000 (09:45 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 28 Sep 2018 05:57:25 +0000 (08:57 +0300)
commit53f474e6a8d74d5dc0c3a015d889471f9a157685
treec28c1a4cbe4ff7a6027153953c633643c2a993a8
parent3f425b81ce41ab076e5052160a6defbfa8e7e56a
iwlwifi: pcie: gen2: build A-MSDU only for GSO

If the incoming frame should be an A-MSDU, it may already be one,
for example in the case of NAN multicast being encapsulated in an
A-MSDU. Thus, use the GSO algorithm to build A-MSDU only if the
skb actually contains GSO data.

Fixes: 6ffe5de35b05 ("iwlwifi: pcie: add AMSDU to gen2")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c