wifi: iwlwifi: mvm: simplify by using SKB MAC header pointer
authorMordechay Goodstein <mordechay.goodstein@intel.com>
Thu, 26 Jan 2023 22:28:17 +0000 (00:28 +0200)
committerGregory Greenman <gregory.greenman@intel.com>
Mon, 30 Jan 2023 11:00:03 +0000 (13:00 +0200)
commit3f7a9d577d47b83b8911f82e37fdd626c91d95cc
tree11306d53da9de84f4a8ffec18a3a656a9e656b3c
parent0ac93c06dca70f0806099771f96a097fb05efbb8
wifi: iwlwifi: mvm: simplify by using SKB MAC header pointer

Instead of calculating the offset to the 802.11 header based on radiotap
bits and length, shorten the code path by always setting the MAC header
in the skb and using skb_mac_header().

Signed-off-by: Mordechay Goodstein <mordechay.goodstein@intel.com>
Link: https://lore.kernel.org/r/20230127002430.3ec5493934a4.I1d41a2af28588b5899fcd2402f8c4bd8cc29a12e@changeid
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c