iwlwifi: don't allow the FW to return invalid ch indices
authorArik Nemtsov <arik@wizery.com>
Sun, 1 Mar 2015 16:24:57 +0000 (18:24 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 12 Mar 2015 07:57:39 +0000 (09:57 +0200)
If the FW returns an invalid channels count in response to an MCC request,
make sure we don't reference invalid indices in the channels array.

Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>

No differences found