iwlwifi: move uCode flags handling to op_mode
authorJohannes Berg <johannes.berg@intel.com>
Tue, 21 Feb 2012 16:31:06 +0000 (18:31 +0200)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Mon, 27 Feb 2012 21:25:06 +0000 (13:25 -0800)
commita78be210d53b24cc3437d4362912c510b895a8eb
tree3b8e30a6df0a44a876a719c3f76d8977f471d831
parente211b2427a61e92e5a6bdd629bc2c2e6114c2dc1
iwlwifi: move uCode flags handling to op_mode

The uCode flags modification is op_mode dependent
since the P2P config is an op-mode config.

This also fixes P2P enabling: due to the uCode
loading code shuffle moving the SKU check before
the EEPROM was read it was always false and would
always disable PAN/P2P.

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.c
drivers/net/wireless/iwlwifi/iwl-ucode.c