]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: don't allow A band if SKU forbids it
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 5 Dec 2013 20:42:55 +0000 (22:42 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 2 Feb 2014 09:08:42 +0000 (11:08 +0200)
commitebb64327e2807fae55a3607cca50d1fa84e4525c
tree4c91cce0ade3979a356c293fcd9513c2f754b82f
parent8df9af69eb7c5762e4f4a61f73877888c6ba727a
iwlwifi: mvm: don't allow A band if SKU forbids it

The driver wasn't reading the NVM properly. While this
didn't lead to any issue until now, it seems that there
is an old version of the NVM in the wild.
In this version, the A band channels appear to be valid
but the SKU capabilities (another field of the NVM) says
that A band isn't supported at all.
With this specific version of the NVM, the driver would
think that A band is supported while the HW / firmware
don't. This leads to asserts.

Cc: <stable@vger.kernel.org> [3.10+]
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/iwl-nvm-parse.c