wireless: gs2200m: Fix error handling in sendto_request()

Summary:
- This commit returns -errno to the caller

Impact:
- gs2200m only

Testing:
- Tested with spresense:wifi_smp
- NOTE: need to update the gs2200m driver in NuttX

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
Masayuki Ishikawa 2021-06-29 08:03:20 +09:00 committed by Xiang Xiao
parent c7f28f5f9e
commit 21f48846dd

View File

@ -815,7 +815,7 @@ static int sendto_request(int fd, FAR struct gs2200m_s *priv,
if (0 != nret) if (0 != nret)
{ {
ret = -EINVAL; ret = -errno;
goto prepare; goto prepare;
} }