iwlwifi: mvm: tighten BAID range check
authorJohannes Berg <johannes.berg@intel.com>
Wed, 3 Aug 2016 11:52:56 +0000 (13:52 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 16 Sep 2016 06:10:35 +0000 (09:10 +0300)
commitfd659f8e75b7f8214b4f323d46248205b4566e10
treeddcd6755b4fa342cd750c05ac299f05da2d27fff
parent9b8568360585854c4fe99572e4fbffc736706cfd
iwlwifi: mvm: tighten BAID range check

As pointed out by smatch, checking the BAID for just >= INVALID
is a bad idea since only 32 (IWL_MAX_BAID) actually exist. Check
the range for that and print invalid ones in the warning.

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