From 713597bf4a3bd6f8bbaccec66beb5fe599effbf1 Mon Sep 17 00:00:00 2001 From: Ben Poon Date: Thu, 6 Aug 2020 10:12:52 +0800 Subject: [PATCH] solve the reset issue by return error if the WINC driver is closed --- .../wifi/wilc1000/wireless_driver_extension/wdrvext_wilc1000.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vendors/microchip/harmony/v2.05/framework/driver/wifi/wilc1000/wireless_driver_extension/wdrvext_wilc1000.c b/vendors/microchip/harmony/v2.05/framework/driver/wifi/wilc1000/wireless_driver_extension/wdrvext_wilc1000.c index 2aa81084308..18acfec9805 100644 --- a/vendors/microchip/harmony/v2.05/framework/driver/wifi/wilc1000/wireless_driver_extension/wdrvext_wilc1000.c +++ b/vendors/microchip/harmony/v2.05/framework/driver/wifi/wilc1000/wireless_driver_extension/wdrvext_wilc1000.c @@ -437,6 +437,9 @@ uint32_t WDRV_EXT_DataSend(uint16_t segSize, uint8_t *p_segData) { int8_t ret; + if (!s_isInitComplete) + return WDRV_ERROR; + if (gp_wdrv_cfg->networkType == WDRV_NETWORK_TYPE_SOFT_AP) { ret = wilc1000_eth_data_send(p_segData, segSize, AP_INTERFACE);