mirror of
https://github.com/martin-ger/esp_wifi_repeater.git
synced 2026-07-27 19:56:03 +00:00
Fixed size of lock pw
This commit is contained in:
Binary file not shown.
Binary file not shown.
+2
-2
@@ -1,3 +1,3 @@
|
||||
2dd44516882b6f950962565d509b150e3e80696d firmware/0x02000.bin
|
||||
b358bd8bff5dc075a4872a9cbbdf67d938b041c3 firmware/0x82000.bin
|
||||
4242c10cecaa314ec94e9799ed92209a67a0ee77 firmware/0x02000.bin
|
||||
f5c525b88e5254bcae044e53bb587b4d4bdc168f firmware/0x82000.bin
|
||||
9bd7d25204d71b3db5f35e0b2def8a6aaa7f765c firmware/0x00000.bin
|
||||
|
||||
@@ -46,6 +46,7 @@ uint32_t reg0, reg1, reg3;
|
||||
|
||||
//os_printf("%02x:%02x:%02x\r\n", reg0, reg1, reg3);
|
||||
//os_printf("STA: %02x:%02x:%02x:%02x:%02x:%02x\r\n", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
|
||||
//os_printf("Config block: %d\r\n", sizeof(sysconfig_t));
|
||||
|
||||
os_memcpy(config->STA_MAC_address, mac, 6);
|
||||
mac[0] |= 0x02;
|
||||
|
||||
+1
-1
@@ -58,7 +58,7 @@ typedef struct {
|
||||
uint8_t PEAP_username[64]; // PEAP enterprise username
|
||||
uint8_t PEAP_password[32]; // PEAP enterprise password
|
||||
#endif
|
||||
uint8_t lock_password[32]; // Password of config lock
|
||||
uint8_t lock_password[64]; // Password of config lock
|
||||
uint8_t locked; // Should we allow for config changes
|
||||
|
||||
int32_t ap_watchdog; // Seconds without ap traffic will cause reset (-1 off, default)
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
#ifndef _USER_CONFIG_
|
||||
#define _USER_CONFIG_
|
||||
|
||||
#define ESP_REPEATER_VERSION "V2.2.9"
|
||||
#define ESP_REPEATER_VERSION "V2.2.10"
|
||||
|
||||
#define LOCAL_ACCESS 0x01
|
||||
#define REMOTE_ACCESS 0x02
|
||||
|
||||
@@ -2179,6 +2179,11 @@ void ICACHE_FLASH_ATTR console_handle_command(struct espconn *pespconn)
|
||||
}
|
||||
else if (nTokens == 2)
|
||||
{
|
||||
if (os_strlen(tokens[1]) > sizeof(config.lock_password)-1)
|
||||
{
|
||||
os_sprintf_flash(response, "Password too long\r\n");
|
||||
goto command_handled;
|
||||
}
|
||||
os_sprintf(config.lock_password, "%s", tokens[1]);
|
||||
}
|
||||
else
|
||||
@@ -2308,6 +2313,11 @@ void ICACHE_FLASH_ATTR console_handle_command(struct espconn *pespconn)
|
||||
|
||||
if (strcmp(tokens[1], "password") == 0)
|
||||
{
|
||||
if (os_strlen(tokens[2]) > sizeof(config.password)-1)
|
||||
{
|
||||
os_sprintf_flash(response, "Password too long\r\n");
|
||||
goto command_handled;
|
||||
}
|
||||
os_sprintf(config.password, "%s", tokens[2]);
|
||||
if (config.automesh_mode != AUTOMESH_OFF)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user