diff options
Diffstat (limited to 'drivers/cc3000/src/wlan.c')
-rw-r--r-- | drivers/cc3000/src/wlan.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/cc3000/src/wlan.c b/drivers/cc3000/src/wlan.c index 0514d1150..638593777 100644 --- a/drivers/cc3000/src/wlan.c +++ b/drivers/cc3000/src/wlan.c @@ -430,7 +430,7 @@ INT32 wlan_connect(UINT32 ulSecType, CHAR *ssid, INT32 ssid_len, // Wait for command complete event SimpleLinkWaitEvent(HCI_CMND_WLAN_CONNECT, &ret); - errno = ret; + CC3000_EXPORT(errno) = ret; return(ret); } @@ -464,7 +464,7 @@ INT32 wlan_connect(CHAR *ssid, INT32 ssid_len) // Wait for command complete event SimpleLinkWaitEvent(HCI_CMND_WLAN_CONNECT, &ret); - errno = ret; + CC3000_EXPORT(errno) = ret; return(ret); } @@ -494,7 +494,7 @@ INT32 wlan_disconnect() // Wait for command complete event SimpleLinkWaitEvent(HCI_CMND_WLAN_DISCONNECT, &ret); - errno = ret; + CC3000_EXPORT(errno) = ret; return(ret); } |