iwlwifi: mvm: fix off-by-one in scan channels configuration
authorEliad Peller <eliad@wizery.com>
Sun, 11 May 2014 16:59:43 +0000 (19:59 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 13 May 2014 11:04:55 +0000 (14:04 +0300)
commit64793110ad4d82e18d88a33307749c6562a6dd04
tree21b502166d7f9890f9067fa4e0c951a7a06bbe1f
parent1c4abec0baf25ffb92a28cc99d4231feeaa4d3f3
iwlwifi: mvm: fix off-by-one in scan channels configuration

tail should be equal to the last valid index, so
decrease it by one.

This error causes in "a gap" in some cases (as well as
some possible out-of-bound write), finally resulting in
ucode assertion.

Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/scan.c