mirror of
https://github.com/apache/nuttx.git
synced 2026-09-01 22:53:01 +00:00
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:
parent
0d3abe6ebb
commit
8355ab9070
1 changed files with 5 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue