mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-20 00:36:01 -04:00
Merge branch 'bugfix/fix_smartconfig_setopt_fail' into 'master'
smartconfig: Fix smartconfig set socket option fail Closes IDFGH-6539 See merge request espressif/esp-idf!16634
This commit is contained in:
commit
9485873669
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2010-2021 Espressif Systems (Shanghai) CO LTD
|
* SPDX-FileCopyrightText: 2010-2022 Espressif Systems (Shanghai) CO LTD
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
@ -121,8 +121,13 @@ static void sc_ack_send_task(void *pvParameters)
|
|||||||
goto _end;
|
goto _end;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (setsockopt(send_sock, SOL_SOCKET, SO_BROADCAST | SO_REUSEADDR, &optval, sizeof(int)) < 0) {
|
if (setsockopt(send_sock, SOL_SOCKET, SO_BROADCAST, &optval, sizeof(int)) < 0) {
|
||||||
ESP_LOGE(TAG, "setsockopt failed");
|
ESP_LOGE(TAG, "setsockopt SO_BROADCAST failed");
|
||||||
|
goto _end;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (setsockopt(send_sock, SOL_SOCKET, SO_REUSEADDR, &optval, sizeof(int)) < 0) {
|
||||||
|
ESP_LOGE(TAG, "setsockopt SO_REUSEADDR failed");
|
||||||
goto _end;
|
goto _end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user