From e4af73ec562dfefaae64b3285914ac00b85fb50e Mon Sep 17 00:00:00 2001 From: Masayuki Ishikawa Date: Tue, 28 Jan 2020 17:15:35 +0900 Subject: [PATCH] wireless: gs2200m: Fix sendto_request() in gs2200m_main.c Signed-off-by: Masayuki Ishikawa < --- wireless/gs2200m/gs2200m_main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wireless/gs2200m/gs2200m_main.c b/wireless/gs2200m/gs2200m_main.c index 7769f9d4d..9f7d559bb 100644 --- a/wireless/gs2200m/gs2200m_main.c +++ b/wireless/gs2200m/gs2200m_main.c @@ -802,7 +802,9 @@ static int sendto_request(int fd, FAR struct gs2200m_s *priv, goto prepare; } - ret = req->buflen; + /* return length which gs2200m sent */ + + ret = smsg.len; } prepare: