From 935b990667dbb083d3f4cd9f1679a9446d4bbd34 Mon Sep 17 00:00:00 2001 From: KirisameMashiro <47731209+Sssssaltyfish@users.noreply.github.com> Date: Wed, 25 Dec 2024 17:34:51 +0800 Subject: [PATCH] Added registration for EC801E --- .../Framework/connection/4g/adapter_4g.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/APP_Framework/Framework/connection/4g/adapter_4g.c b/APP_Framework/Framework/connection/4g/adapter_4g.c index d7d65a626..6b32c850d 100644 --- a/APP_Framework/Framework/connection/4g/adapter_4g.c +++ b/APP_Framework/Framework/connection/4g/adapter_4g.c @@ -32,6 +32,10 @@ extern AdapterProductInfoType Ec200aAttach(struct Adapter *adapter); extern AdapterProductInfoType Gm800tfAttach(struct Adapter *adapter); #endif +#ifdef ADAPTER_EC801E +extern AdapterProductInfoType Ec801eAttach(struct Adapter *adapter); +#endif + static int Adapter4GRegister(struct Adapter *adapter) { int ret = 0; @@ -70,6 +74,20 @@ int Adapter4GInit(void) return -1; } +#ifdef ADAPTER_EC801E + AdapterProductInfoType product_info = Ec801eAttach(adapter); + if (!product_info) { + printf("Adapter4GInit ec801e attach error\n"); + PrivFree(adapter); + return -1; + } + + adapter->product_info_flag = 1; + adapter->info = product_info; + adapter->done = product_info->model_done; + +#endif + #ifdef ADAPTER_EC200T AdapterProductInfoType product_info = Ec200tAttach(adapter); if (!product_info) {