Skip to content

Commit

Permalink
fix(dhcp): Update MACADDR & IP after send DHCP ACK
Browse files Browse the repository at this point in the history
internal gitlab: 9ab0b268
  • Loading branch information
wujiangang committed Apr 19, 2018
1 parent 7a6d8eb commit 3ba05d3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ phy:

gitlab:
driver : 68fc7b06
lwip : 077057c5
lwip : 60d9a8f0
mbedtls : e4dace14
Binary file modified lib/liblwip.a
Binary file not shown.
2 changes: 1 addition & 1 deletion third_party/lwip/app/dhcpserver.c
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,7 @@ static void ICACHE_FLASH_ATTR handle_dhcp(void *arg,
os_printf("dhcps: handle_dhcp-> DHCPD_STATE_ACK\n");
#endif
send_ack(pmsg_dhcps);
wifi_softap_set_station_info(pmsg_dhcps->chaddr, &client_address.addr);
break;
case DHCPS_STATE_NAK://4
#if DHCPS_DEBUG
Expand Down Expand Up @@ -1173,7 +1174,6 @@ uint32 ICACHE_FLASH_ATTR wifi_softap_dhcps_client_update(u8 *bssid, struct ip_ad
node_insert_to_list(&plist,pback_node);
}
}
wifi_softap_set_station_info(bssid, &pdhcps_pool->ip);

return pdhcps_pool->ip.addr;
}

0 comments on commit 3ba05d3

Please sign in to comment.