From 4ecea62e533d77cce6813a46811bcdca8d03b143 Mon Sep 17 00:00:00 2001 From: patrick Date: Sun, 11 Feb 2018 05:07:36 +0000 Subject: [PATCH] Update the packet header length as well as the mbuf length on receive. Did that everywhere else but missed it here. --- sys/dev/sdmmc/if_bwfm_sdio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/sdmmc/if_bwfm_sdio.c b/sys/dev/sdmmc/if_bwfm_sdio.c index 6271b20ca13..beb6c7a2a7e 100644 --- a/sys/dev/sdmmc/if_bwfm_sdio.c +++ b/sys/dev/sdmmc/if_bwfm_sdio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bwfm_sdio.c,v 1.4 2018/02/09 02:21:16 patrick Exp $ */ +/* $OpenBSD: if_bwfm_sdio.c,v 1.5 2018/02/11 05:07:36 patrick Exp $ */ /* * Copyright (c) 2010-2016 Broadcom Corporation * Copyright (c) 2016,2017 Patrick Wildt @@ -1138,7 +1138,7 @@ bwfm_sdio_rx_glom(struct bwfm_sdio_softc *sc, uint16_t *sublen, int nsub) ml_purge(&ml); return; } - m->m_len = letoh16(sublen[i]); + m->m_len = m->m_pkthdr.len = letoh16(sublen[i]); } /* TODO: Verify actual superframe header */ -- 2.20.1