carl9170 firmware: fix time accouting
[carl9170fw.git] / carlfw / src / rf.c
index ae9fd5464e4fcb6f59150c1f34e22dda95e30b4d..9537c2a747f4d3d48849c4b36e45884f6ccd4e0e 100644 (file)
@@ -199,6 +199,9 @@ void rf_cmd(const struct carl9170_cmd *cmd, struct carl9170_rsp *resp)
        fw.phy.ht_settings = cmd->rf_init.ht_settings;
        fw.phy.frequency = cmd->rf_init.freq;
 
+       /*
+        * Is the clock controlled by the PHY?
+        */
        if ((fw.phy.ht_settings & EIGHTY_FLAG) == EIGHTY_FLAG)
                clock_set(AHB_80_88MHZ, true);
        else
@@ -269,7 +272,7 @@ void rf_psm(void)
                }
        }
 
-       if (fw.phy.frequency < 30000000)
+       if (fw.phy.frequency < 3000000)
                bank3 |= 0x00800000;
 
        set(0x1c58f0, bank3);