diff options
| author | Bernard Xiong <[email protected]> | 2017-07-28 09:17:21 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-07-28 09:17:21 +0800 |
| commit | d4de2c53e3ce8d328bcbc8823a323b2c26e6ccd5 (patch) | |
| tree | 7a8fe65215bed15dc4ef343f760cff3dc38854b0 /components | |
| parent | ab2a125b3d7d2af7027231c97e1df9fd31802f50 (diff) | |
| parent | 09f9fcaaa6e3454712cbc0bb1330a26690b181ee (diff) | |
Merge pull request #775 from armink/master
[DeviceDriver] Fix rw009 WiFi module auto reconnect feature.
Diffstat (limited to 'components')
| -rw-r--r-- | components/drivers/spi/spi_wifi_rw009.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/drivers/spi/spi_wifi_rw009.c b/components/drivers/spi/spi_wifi_rw009.c index 9f5601bf26..5faf63642a 100644 --- a/components/drivers/spi/spi_wifi_rw009.c +++ b/components/drivers/spi/spi_wifi_rw009.c @@ -21,6 +21,7 @@ * Date Author Notes * 2014-07-31 aozima the first version * 2014-09-18 aozima update command & response. + * 2017-07-28 armink fix auto reconnect feature */ #include <rtthread.h> @@ -165,6 +166,8 @@ static void resp_handler(struct rw009_wifi *wifi_device, struct rw009_resp *resp } else { + wifi_device->active = 1; + eth_device_linkchange(&wifi_device->parent, RT_FALSE); WIFI_DEBUG("RW009_CMD_EASY_JOIN result: %d\n", resp->result ); } |
