iwlwifi: mvm: make RSS RX more robust
authorJohannes Berg <johannes.berg@intel.com>
Wed, 3 Aug 2016 07:34:39 +0000 (09:34 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 16 Sep 2016 06:10:33 +0000 (09:10 +0300)
commit723d11a4cdf63544a01ae7a474c202a914b67a3b
tree83e8e3f09f7c4562f17c8e213bbe568f67ee0d4c
parent612da1efc07f28ea9e64402820dd25287ff5233b
iwlwifi: mvm: make RSS RX more robust

If the firmware ever decides to send any new/more notifications
to the RSS queues, the driver would currently try to interpret
those as REPLY_RX_MPDU_CMD and, if the notification was small,
access invalid memory.

Prevent that by checking for REPLY_RX_MPDU_CMD explicitly which
allows ignoring unexpected notifications.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/ops.c