drivers: wireless: Fix mtu info for gs2200m

Summary:
- I noticed that mtu info with ifconfig shows incorrect size.
- This commit fixes this issue.

Impact:
- None

Testing:
- Tested with spresense:wifi_smp

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
Masayuki Ishikawa 2023-04-28 16:17:15 +09:00 committed by Xiang Xiao
parent 0d3abe6ebb
commit 8355ab9070

View File

@ -3533,6 +3533,11 @@ FAR void *gs2200m_register(FAR const char *devpath,
goto errout;
}
/* Set d_pktsize and d_llhdrlen to show mtu info correctly */
dev->net_dev.d_pktsize = MAX_PKT_LEN;
dev->net_dev.d_llhdrlen = 0;
return dev;
errout: