提交 09f9fcaa 编写于 作者: armink_ztl's avatar armink_ztl

[DeviceDriver] Fix rw009 WiFi module auto reconnect feature.

上级 ab2a125b
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
* Date Author Notes * Date Author Notes
* 2014-07-31 aozima the first version * 2014-07-31 aozima the first version
* 2014-09-18 aozima update command & response. * 2014-09-18 aozima update command & response.
* 2017-07-28 armink fix auto reconnect feature
*/ */
#include <rtthread.h> #include <rtthread.h>
...@@ -165,6 +166,8 @@ static void resp_handler(struct rw009_wifi *wifi_device, struct rw009_resp *resp ...@@ -165,6 +166,8 @@ static void resp_handler(struct rw009_wifi *wifi_device, struct rw009_resp *resp
} }
else else
{ {
wifi_device->active = 1;
eth_device_linkchange(&wifi_device->parent, RT_FALSE);
WIFI_DEBUG("RW009_CMD_EASY_JOIN result: %d\n", resp->result ); WIFI_DEBUG("RW009_CMD_EASY_JOIN result: %d\n", resp->result );
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册