iwlwifi: reorder device setup
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 22 Jan 2010 22:22:53 +0000 (14:22 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 25 Jan 2010 21:36:24 +0000 (16:36 -0500)
commit158bea07c6017fa67bc0c64815ce5c3a998083dc
tree5cfd028cf21c9abf2f997a7623314a60f4449e51
parent1d8c4ae9169ee8d8ca7fb84a7b6bb4c7a4d49397
iwlwifi: reorder device setup

It is better to first notify cfg80211 about the hw
rfkill state (so the rfkill device that will be
registered won't have the wrong state while being
registered), and the power/tt variable init can
(and probably should) also be done first.

Also rename iwl_setup_mac to
iwl_mac_setup_register to better describe what it
really does.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-agn.c