Skip to content

Commit 7d63a5f

Browse files
lwfingerlinvjw
authored andcommitted
rtlwifi: Change order in device startup
The existing order of steps when starting the PCI devices works for 2.4G devices, but fails to initialize the 5G section of the RTL8821AE hardware. This patch is needed to fix the regression reported in Bug #88811 (https://bugzilla.kernel.org/show_bug.cgi?id=88811). Reported-by: Valerio Passini <valerio.passini@unicam.it> Tested-by: Valerio Passini <valerio.passini@unicam.it> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Cc: Valerio Passini <valerio.passini@unicam.it> Signed-off-by: John W. Linville <linville@tuxdriver.com>
1 parent a91ed19 commit 7d63a5f

File tree

1 file changed

+10
-10
lines changed
  • drivers/net/wireless/rtlwifi

1 file changed

+10
-10
lines changed

drivers/net/wireless/rtlwifi/pci.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2249,6 +2249,16 @@ int rtl_pci_probe(struct pci_dev *pdev,
22492249
/*like read eeprom and so on */
22502250
rtlpriv->cfg->ops->read_eeprom_info(hw);
22512251

2252+
if (rtlpriv->cfg->ops->init_sw_vars(hw)) {
2253+
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, "Can't init_sw_vars\n");
2254+
err = -ENODEV;
2255+
goto fail3;
2256+
}
2257+
rtlpriv->cfg->ops->init_sw_leds(hw);
2258+
2259+
/*aspm */
2260+
rtl_pci_init_aspm(hw);
2261+
22522262
/* Init mac80211 sw */
22532263
err = rtl_init_core(hw);
22542264
if (err) {
@@ -2264,16 +2274,6 @@ int rtl_pci_probe(struct pci_dev *pdev,
22642274
goto fail3;
22652275
}
22662276

2267-
if (rtlpriv->cfg->ops->init_sw_vars(hw)) {
2268-
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, "Can't init_sw_vars\n");
2269-
err = -ENODEV;
2270-
goto fail3;
2271-
}
2272-
rtlpriv->cfg->ops->init_sw_leds(hw);
2273-
2274-
/*aspm */
2275-
rtl_pci_init_aspm(hw);
2276-
22772277
err = ieee80211_register_hw(hw);
22782278
if (err) {
22792279
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,

0 commit comments

Comments
 (0)