Commit e13deef
[lightning-ln882h] Fix static IP ignored after WiFi connect (libretiny-eu#375)
wifi_sta_connect() always starts DHCP internally; there is no way to
pass a dhcp_mode parameter to it like BK72XX's bk_wlan_start_sta_adv_fix.
Apply static IP and stop DHCP in wifiEventStaConnected(), immediately
after the L2 association event fires, before the SDK-initiated DHCP
exchange completes. Emit GOT_IP manually since the netdev callback
won't fire when DHCP is stopped.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 9598759 commit e13deef
1 file changed
Lines changed: 16 additions & 0 deletions
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
31 | 47 | | |
32 | 48 | | |
33 | 49 | | |
| |||
0 commit comments