Increase DHCP wait time to 20000 ms

Increased the DHCP wait time from 10 seconds to 20 seconds to allow more time for lease acquisition.

Signed-off-by: Niel Nielsen <nieldk@gmail.com>
This commit is contained in:
Niel Nielsen
2026-08-29 20:01:24 +02:00
committed by GitHub
parent 2572326440
commit 1b92f7e026
+7 -1
View File
@@ -19,7 +19,7 @@
// After association the STA reports "connected" before DHCP completes, so we
// poll GET_IP until a non-zero address appears (or give up).
#ifndef BWM_WIFI_DHCP_WAIT_MS
#define BWM_WIFI_DHCP_WAIT_MS 10000 // total time to wait for a DHCP lease
#define BWM_WIFI_DHCP_WAIT_MS 20000 // total time to wait for a DHCP lease
#endif
#ifndef BWM_WIFI_DHCP_POLL_MS
#define BWM_WIFI_DHCP_POLL_MS 500 // gap between GET_IP polls
@@ -52,4 +52,10 @@ int bwm_wifi_forward_up(const char *ssid, const char *password,
// BLE-only). Persisted on the BWM so it stays off across reboots.
int bwm_wifi_forward_down(void);
// Query current forward-mode connection state without reconfiguring. Writes the
// BWM IPv4 (host order, a in low byte; 0 if none) to *ip_out and 1/0 to
// *connected (true == has a DHCP lease). Returns PM3_EFAILED if the BWM/UART
// does not answer.
int bwm_wifi_forward_status(uint8_t *connected, uint32_t *ip_out);
#endif