diff options
| author | David S. Miller <davem@davemloft.net> | 2014-11-26 16:38:35 -0500 | 
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2014-11-26 16:38:35 -0500 | 
| commit | d1c637c51d87e021c12ed66baddf6cfbd11a3e2b (patch) | |
| tree | 230fa979dd666ab491155f9c3f49230e820d4fc0 /drivers/net/wireless/rtlwifi/pci.c | |
| parent | f4713a3dfad045d46afcb9c2a7d0bba288920ed4 (diff) | |
| parent | 7d63a5f9b25ba6b130da8eb2d32a72b1462d0249 (diff) | |
Merge tag 'master-2014-11-25' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless
John W. Linville says:
====================
pull request: wireless 2014-11-26
Please pull this little batch of fixes intended for the 3.18 stream...
For the iwlwifi one, Emmanuel says:
"Not all the firmware know how to handle the HOT_SPOT_CMD.
Make sure that the firmware will know this command before
sending it. This avoids a firmware crash."
Along with that, Larry sends a pair of rtlwifi fixes to address some
discrepancies from moving drivers out of staging.  Larry says:
"These two patches are needed to fix a regression introduced when
driver rtl8821ae was moved from staging to the regular wireless tree."
Please let me know if there are problems!
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/rtlwifi/pci.c')
| -rw-r--r-- | drivers/net/wireless/rtlwifi/pci.c | 20 | 
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/net/wireless/rtlwifi/pci.c b/drivers/net/wireless/rtlwifi/pci.c index 61f5d36eca6a..846a2e6e34d8 100644 --- a/drivers/net/wireless/rtlwifi/pci.c +++ b/drivers/net/wireless/rtlwifi/pci.c @@ -2249,6 +2249,16 @@ int rtl_pci_probe(struct pci_dev *pdev,  	/*like read eeprom and so on */  	rtlpriv->cfg->ops->read_eeprom_info(hw); +	if (rtlpriv->cfg->ops->init_sw_vars(hw)) { +		RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, "Can't init_sw_vars\n"); +		err = -ENODEV; +		goto fail3; +	} +	rtlpriv->cfg->ops->init_sw_leds(hw); + +	/*aspm */ +	rtl_pci_init_aspm(hw); +  	/* Init mac80211 sw */  	err = rtl_init_core(hw);  	if (err) { @@ -2264,16 +2274,6 @@ int rtl_pci_probe(struct pci_dev *pdev,  		goto fail3;  	} -	if (rtlpriv->cfg->ops->init_sw_vars(hw)) { -		RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, "Can't init_sw_vars\n"); -		err = -ENODEV; -		goto fail3; -	} -	rtlpriv->cfg->ops->init_sw_leds(hw); - -	/*aspm */ -	rtl_pci_init_aspm(hw); -  	err = ieee80211_register_hw(hw);  	if (err) {  		RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,  | 
