From: Christian Lamparter Date: Thu, 30 Jun 2011 00:27:29 +0000 (+0200) Subject: carl9170 firmware: fix clock_set parameter mixup X-Git-Tag: 1.9.4~5 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=20dfcb150963d10fcd0604b740da1fa3dfee6ef9;p=carl9170fw.git carl9170 firmware: fix clock_set parameter mixup Signed-off-by: Christian Lamparter --- diff --git a/carlfw/src/rf.c b/carlfw/src/rf.c index 1022048..ae9fd54 100644 --- a/carlfw/src/rf.c +++ b/carlfw/src/rf.c @@ -243,7 +243,7 @@ void rf_psm(void) /* Synthesizer off + RX off */ bank3 = 0x00400018; - clock_set(true, AHB_20_22MHZ); + clock_set(AHB_20_22MHZ, false); } else { /* advance to the next PSM step */ fw.phy.psm.state--; @@ -261,9 +261,9 @@ void rf_psm(void) bank3 = 0x01420098; if ((fw.phy.ht_settings & EIGHTY_FLAG) == EIGHTY_FLAG) - clock_set(true, AHB_80_88MHZ); + clock_set(AHB_80_88MHZ, true); else - clock_set(true, AHB_40_44MHZ); + clock_set(AHB_40_44MHZ, true); } else { return ; } diff --git a/carlfw/usb/main.c b/carlfw/usb/main.c index 649dc4b..cdaf760 100644 --- a/carlfw/usb/main.c +++ b/carlfw/usb/main.c @@ -245,7 +245,7 @@ static void turn_power_off(void) AR9170_PWR_RESET_WLAN_MASK); set(AR9170_PWR_REG_RESET, 0x0); - set(AR9170_PWR_REG_CLOCK_SEL, AHB_40MHZ_OSC); + clock_set(AHB_20_22MHZ, false); set(AR9170_PWR_REG_PLL_ADDAC, 0x5163); /* 0x502b; */ set(AR9170_PHY_REG_ADC_SERIAL_CTL, AR9170_PHY_ADC_SCTL_SEL_EXTERNAL_RADIO);