iwlagn: move context init after firmware loading
authorJohannes Berg <johannes.berg@intel.com>
Sat, 23 Jul 2011 17:24:46 +0000 (10:24 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 8 Aug 2011 20:04:04 +0000 (16:04 -0400)
commit4d2a5d0ecd3d5350957ed8afc4cee2dbc606c7e2
treee2868a819c42d343acbce844c202e0dedf0a1e87
parentca9a46056908d3cade6957b3d5b2e698356b29fc
iwlagn: move context init after firmware loading

The availability of contexts depends on the
firmware capabilities. Currently only the
presence of the second context depends on it,
but soon P2P support will also be different.
Move the context initialisation code to the
firmware-dependent setup before registering
with mac80211 to make it easier to handle.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-agn.c