ath5k: Preserve pcicfg bits during attach
authorNick Kossifidis <mick@madwifi-project.org>
Mon, 10 Aug 2009 00:30:32 +0000 (03:30 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 14 Aug 2009 13:13:56 +0000 (09:13 -0400)
* During attach preserve pcicfg bits when enabling pci core
   sw retry fix.

Signed-off-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/attach.c

index 238eeb7e166ef494f8989614e83f0a3096257ef7..65d438b59f644e4f5e938dbc3ae21b16a792f74c 100644 (file)
@@ -261,7 +261,7 @@ struct ath5k_hw *ath5k_hw_attach(struct ath5k_softc *sc, u8 mac_version)
 
        /* Enable pci core retry fix on Hainan (5213A) and later chips */
        if (srev >= AR5K_SREV_AR5213A)
-               ath5k_hw_reg_write(ah, AR5K_PCICFG_RETRY_FIX, AR5K_PCICFG);
+               AR5K_REG_ENABLE_BITS(ah, AR5K_PCICFG, AR5K_PCICFG_RETRY_FIX);
 
        /*
         * Get card capabilities, calibration values etc