Skip to content

Commit 16cc2dc

Browse files
authored
Merge pull request #914 from david-cermak/fix/modem_forwardport_patch
[modem]: Forward-port 1.4.1 patches
2 parents d622e41 + fe657b9 commit 16cc2dc

File tree

7 files changed

+17
-18
lines changed

7 files changed

+17
-18
lines changed

.github/workflows/modem__build-host-tests.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ jobs:
1515
matrix:
1616
idf_ver: ["latest", "release-v5.0", "release-v5.1", "release-v5.2", "release-v5.3", "release-v5.4"]
1717
example: ["pppos_client", "modem_console", "modem_tcp_client", "ap_to_pppos", "simple_cmux_client"]
18-
include:
19-
- idf_ver: "release-v5.0"
20-
example: "simple_cmux_client"
21-
warning: "Warning: The smallest app partition is nearly full"
22-
2318
runs-on: ubuntu-22.04
2419
container: espressif/idf:${{ matrix.idf_ver }}
2520
steps:
@@ -30,9 +25,9 @@ jobs:
3025
- if: ${{ matrix.skip_config }}
3126
run: rm -f $GITHUB_WORKSPACE/protocols/components/esp_modem/examples/${{ matrix.example }}/sdkconfig.ci.${{ matrix.skip_config }}*
3227
- name: Build ${{ matrix.example }} with IDF-${{ matrix.idf_ver }}
33-
env:
34-
EXPECTED_WARNING: ${{ matrix.warning }}
3528
shell: bash
29+
env:
30+
EXPECTED_WARNING: "Warning: The smallest app partition is nearly full\nwarning: unknown kconfig symbol 'ESP32_PANIC_PRINT_HALT'"
3631
run: |
3732
. ${IDF_PATH}/export.sh
3833
python -m pip install idf-build-apps

ci/build_apps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
build_dir='build_@t_@w',
5757
config_rules_str=args.rules,
5858
build_log_filename='build_log.txt',
59-
size_json_filename='size.json' if not args.linux else None,
59+
size_json_filename=None,
6060
check_warnings=True,
6161
manifest_files=args.manifests,
6262
default_build_targets=SUPPORTED_TARGETS,

components/esp_modem/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ else()
1111
src/esp_modem_uart.cpp
1212
src/esp_modem_term_uart.cpp
1313
src/esp_modem_netif.cpp)
14-
set(dependencies driver esp_event esp_netif)
14+
set(dependencies esp_event esp_netif)
15+
if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_GREATER "5.3")
16+
list(APPEND dependencies esp_driver_uart)
17+
else()
18+
list(APPEND dependencies driver)
19+
endif()
1520
endif()
1621

1722

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/examples/modem_console/main/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ idf_component_register(SRCS "modem_console_main.cpp"
99
"${command_dir}/my_module_dce.cpp"
1010
"httpget_handle.c"
1111
"ping_handle.c"
12-
REQUIRES console esp_http_client nvs_flash
1312
INCLUDE_DIRS "." "${command_dir}")

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)