Skip to content

Commit ec7bd3f

Browse files
committed
Fail beginAP if config is used to specify a manual IP address of x.x.x.100
1 parent 9a6d62a commit ec7bd3f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/WiFi.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,11 @@ uint8_t WiFiClass::startAP(const char *ssid, uint8_t u8SecType, const void *pvAu
407407
strM2MAPConfig.au8DHCPServerIP[3] = 1;
408408
} else {
409409
memcpy(strM2MAPConfig.au8DHCPServerIP, &_localip, sizeof(_localip));
410+
if (strM2MAPConfig.au8DHCPServerIP[3] == 100) {
411+
// limitation of WINC1500 firmware, IP address of client is always x.x.x.100
412+
_status = WL_AP_FAILED;
413+
return _status;
414+
}
410415
}
411416

412417
if (u8SecType == M2M_WIFI_SEC_WEP) {

0 commit comments

Comments
 (0)