]> granicus.if.org Git - esp-idf/commitdiff
1. Do not disable clock for generating random number.
authorXiaXiaotian <xiaxiaotian@espressif.com>
Mon, 27 Feb 2017 08:48:04 +0000 (16:48 +0800)
committerXiaXiaotian <xiaxiaotian@espressif.com>
Mon, 27 Feb 2017 08:48:04 +0000 (16:48 +0800)
2. And fix the bug that system crashes if call esp_wifi_stop() twice.

components/esp32/lib
components/esp32/phy_init.c

index 28c6ee924ca6efc71bb77dcb040efd07d4d8a000..965f7400f339dc1e4566cea232602e225b1e4085 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 28c6ee924ca6efc71bb77dcb040efd07d4d8a000
+Subproject commit 965f7400f339dc1e4566cea232602e225b1e4085
index 34e1a9f00ef72d39ff9fafb5cf6e53675cc8e4aa..f70aa4a50be473ee47f3fe46c7469bd5fe179f3c 100644 (file)
@@ -84,8 +84,8 @@ esp_err_t esp_phy_rf_deinit(void)
     if (s_phy_rf_init_count == 1) {
         // Disable PHY and RF. TODO: convert this function to another one.
         pm_close_rf();
-        // Disable WiFi peripheral clock
-        CLEAR_PERI_REG_MASK(DPORT_WIFI_CLK_EN_REG, 0x87cf);
+        // Disable WiFi peripheral clock. Do not disable clock for generating random number.
+        CLEAR_PERI_REG_MASK(DPORT_WIFI_CLK_EN_REG, 0x874f);
     } else {
 #if CONFIG_SW_COEXIST_ENABLE
         coex_deinit();