mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-24 10:38:01 +08:00
feat(wps): delete some invalid comments
This commit is contained in:
@ -4,7 +4,7 @@ gwen:
|
|||||||
pp: 6a32b9b
|
pp: 6a32b9b
|
||||||
wpa: 743c778
|
wpa: 743c778
|
||||||
espnow: 743c778
|
espnow: 743c778
|
||||||
wps: 44eada6
|
wps: 6a32b9b
|
||||||
|
|
||||||
smartconfig: 2.8.2
|
smartconfig: 2.8.2
|
||||||
phy: 1149
|
phy: 1149
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -60,18 +60,11 @@ int wps_build_public_key(struct wps_data* wps, struct wpabuf* msg, wps_key_mode_
|
|||||||
#ifdef CONFIG_IDF_TARGET_ESP8266
|
#ifdef CONFIG_IDF_TARGET_ESP8266
|
||||||
API_MUTEX_DECLARE(c_tmp);
|
API_MUTEX_DECLARE(c_tmp);
|
||||||
API_MUTEX_TAKE(c_tmp);
|
API_MUTEX_TAKE(c_tmp);
|
||||||
//pp_soft_wdt_stop();
|
|
||||||
esp_set_cpu_freq(ESP_CPU_FREQ_160M);
|
esp_set_cpu_freq(ESP_CPU_FREQ_160M);
|
||||||
//REG_SET_BIT(0x3ff00014, BIT(0)); //change CPU to 160Mhz
|
|
||||||
//ets_update_cpu_frequency(160);
|
|
||||||
#endif
|
#endif
|
||||||
wps->dh_ctx = dh5_init(&wps->dh_privkey, &pubkey);
|
wps->dh_ctx = dh5_init(&wps->dh_privkey, &pubkey);
|
||||||
#ifdef CONFIG_IDF_TARGET_ESP8266
|
#ifdef CONFIG_IDF_TARGET_ESP8266
|
||||||
esp_set_cpu_freq(ESP_CPU_FREQ_80M);
|
esp_set_cpu_freq(ESP_CPU_FREQ_80M);
|
||||||
//REG_CLR_BIT(0x3ff00014, BIT(0)); //change CPU to 80Mhz
|
|
||||||
//ets_update_cpu_frequency(80);
|
|
||||||
|
|
||||||
//pp_soft_wdt_restart();
|
|
||||||
API_MUTEX_GIVE(c_tmp);
|
API_MUTEX_GIVE(c_tmp);
|
||||||
#endif
|
#endif
|
||||||
wpa_printf(MSG_DEBUG, "build public key finish");
|
wpa_printf(MSG_DEBUG, "build public key finish");
|
||||||
|
@ -601,26 +601,16 @@ static int wps_process_pubkey(struct wps_data* wps, const u8* pk,
|
|||||||
#ifdef CONFIG_IDF_TARGET_ESP8266
|
#ifdef CONFIG_IDF_TARGET_ESP8266
|
||||||
API_MUTEX_DECLARE(c_tmp);
|
API_MUTEX_DECLARE(c_tmp);
|
||||||
API_MUTEX_TAKE(c_tmp);
|
API_MUTEX_TAKE(c_tmp);
|
||||||
//pp_soft_wdt_stop();
|
|
||||||
|
|
||||||
//REG_SET_BIT(0x3ff00014, BIT(0)); //change CPU to 160Mhz
|
|
||||||
//ets_update_cpu_frequency(160);
|
|
||||||
//ets_printf("[%s]line:[%d]%d\r\n", __func__, __LINE__, REG_READ(0x3ff20c00));
|
|
||||||
esp_set_cpu_freq(ESP_CPU_FREQ_160M);
|
esp_set_cpu_freq(ESP_CPU_FREQ_160M);
|
||||||
|
|
||||||
if (wps_derive_keys(wps) < 0) {
|
if (wps_derive_keys(wps) < 0) {
|
||||||
//REG_CLR_BIT(0x3ff00014, BIT(0)); //change CPU to 80Mhz
|
|
||||||
//ets_update_cpu_frequency(80);
|
|
||||||
esp_set_cpu_freq(ESP_CPU_FREQ_80M);
|
esp_set_cpu_freq(ESP_CPU_FREQ_80M);
|
||||||
//pp_soft_wdt_restart();
|
|
||||||
API_MUTEX_GIVE(c_tmp);
|
API_MUTEX_GIVE(c_tmp);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
esp_set_cpu_freq(ESP_CPU_FREQ_80M);
|
esp_set_cpu_freq(ESP_CPU_FREQ_80M);
|
||||||
//ets_printf("[%s]line:[%d]%d\r\n", __func__, __LINE__, REG_READ(0x3ff20c00));
|
|
||||||
//REG_CLR_BIT(0x3ff00014, BIT(0)); //change CPU to 80Mhz
|
|
||||||
//ets_update_cpu_frequency(80);
|
|
||||||
//pp_soft_wdt_restart();
|
|
||||||
API_MUTEX_GIVE(c_tmp);
|
API_MUTEX_GIVE(c_tmp);
|
||||||
#else
|
#else
|
||||||
if (wps_derive_keys(wps) < 0) {
|
if (wps_derive_keys(wps) < 0) {
|
||||||
|
Reference in New Issue
Block a user