iwlwifi: mvm: add size checks for range response notification
authorAvraham Stern <avraham.stern@intel.com>
Wed, 9 Dec 2020 21:16:48 +0000 (23:16 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Wed, 9 Dec 2020 22:16:06 +0000 (00:16 +0200)
commit27eeb03784b3cfbf38716ef314bf9a0dc09bd1fe
tree0b1d986ab0982a678966b4fb28e922d0964f02dc
parent8a59d39033c35bb484f6bd91891db86ebe07fdc2
iwlwifi: mvm: add size checks for range response notification

The range response notification has several versions. Check the
notification size according to the expected notification version.
Notifications with incorrect size will be ignored.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20201209231352.ee57c3214d05.I810d7de33fb08001ef1a2e24714d5b68932e088e@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c