Skip to content

Commit 018ba58

Browse files
committed
fix(modem): Address build issues
1 parent 67c682d commit 018ba58

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

components/esp_modem/examples/ap_to_pppos/main/ap_to_pppos.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
2+
* SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD
33
*
44
* SPDX-License-Identifier: Unlicense OR CC0-1.0
55
*/
@@ -100,10 +100,10 @@ void wifi_init_softap(void)
100100
ESP_ERROR_CHECK(esp_wifi_init(&cfg));
101101

102102
ESP_ERROR_CHECK(esp_event_handler_instance_register(WIFI_EVENT,
103-
ESP_EVENT_ANY_ID,
104-
&wifi_event_handler,
105-
NULL,
106-
NULL));
103+
ESP_EVENT_ANY_ID,
104+
&wifi_event_handler,
105+
NULL,
106+
NULL));
107107

108108
wifi_config_t wifi_config = {
109109
.ap = {
@@ -120,7 +120,7 @@ void wifi_init_softap(void)
120120
}
121121

122122
ESP_ERROR_CHECK(esp_wifi_set_mode(WIFI_MODE_AP));
123-
ESP_ERROR_CHECK(esp_wifi_set_config(ESP_IF_WIFI_AP, &wifi_config));
123+
ESP_ERROR_CHECK(esp_wifi_set_config(WIFI_IF_AP, &wifi_config));
124124
ESP_ERROR_CHECK(esp_wifi_start());
125125

126126
ESP_LOGI(TAG, "wifi_init_softap finished. SSID:%s password:%s channel:%d",

components/esp_modem/port/linux/esp_netif_linux/lwipopts.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989

9090
#define MPPE_SUPPORT 0
9191

92-
#define PPP_MAXIDLEFLAG 0
92+
#define PPP_MAXIDLEFLAG 100
9393

9494
#define PRINTPKT_SUPPORT 1
9595
#define PPP_PROTOCOLNAME 1

components/esp_modem/port/linux/esp_netif_linux/tun_io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static void ppp_link_status_cb(ppp_pcb *pcb, int err_code, void *ctx)
104104
}
105105
}
106106

107-
static u32_t ppp_output_cb(struct ppp_pcb_s *pcb, const void *data, u32_t len, void *ctx)
107+
static u32_t ppp_output_cb(struct ppp_pcb_s *pcb, u8_t *data, u32_t len, void *ctx)
108108
{
109109
esp_netif_t *netif = (esp_netif_t *)ctx;
110110
if (netif->transmit) {

0 commit comments

Comments
 (0)