]> git.karo-electronics.de Git - linux-beck.git/commitdiff
RTL8192CU: Increase max APFM_ONMAC polling count
authorAndy Spencer <andy753421@ucla.edu>
Fri, 2 May 2014 06:48:13 +0000 (06:48 +0000)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 6 May 2014 18:51:02 +0000 (14:51 -0400)
With certain hardware combinations the poll interval is exceeded before
initialization completes.

Tested on a MacBookPro10,1 using a Sabrent USB-A11N USB adapter.

Signed-off-by: Andy Spencer <andy753421@ucla.edu>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/rtl8192cu/hw.c

index 68b5c7e92cfbc2c6a76580a2d1dbb3297730c64f..31b79e78c63c1b7ded5ea3976b2131bf29693b9a 100644 (file)
@@ -511,7 +511,7 @@ static int _rtl92cu_init_power_on(struct ieee80211_hw *hw)
                        pr_info("MAC auto ON okay!\n");
                        break;
                }
-               if (pollingCount++ > 100) {
+               if (pollingCount++ > 1000) {
                        RT_TRACE(rtlpriv, COMP_INIT, DBG_EMERG,
                                 "Failed to polling REG_APS_FSMCO[APFM_ONMAC] done!\n");
                        return -ENODEV;