]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: remove uCode alternatives mechanism
authorJohannes Berg <johannes.berg@intel.com>
Fri, 9 Mar 2012 08:16:35 +0000 (09:16 +0100)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Mon, 16 Apr 2012 21:34:44 +0000 (14:34 -0700)
commit606af9c04ee72c6247bf8e8171b705d86f7dc09a
tree4278582c681983d2aea5d39be6e8d1d60746d805
parenta854f0edc48ce9898d639cb0f1196ea356349014
iwlwifi: remove uCode alternatives mechanism

We've never released firmware using the alternatives
mechanism and our build process makes that difficult
anyway. This means that in every file we have ever
built (except maybe by hand for testing) the listed
alternative was 0. Make the alternative field in the
TLVs part of the TLV number (thus expanding that to
32 bits); this gives us more TLV numbers (not really
needed) and more importantly protects against rogue
firmware files that actually do use the alternatives
mechanism -- those will now be rejected since they
don't contain any valid TLVs.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-agn-lib.c
drivers/net/wireless/iwlwifi/iwl-agn.c
drivers/net/wireless/iwlwifi/iwl-drv.c
drivers/net/wireless/iwlwifi/iwl-fw-file.h
drivers/net/wireless/iwlwifi/iwl-shared.h