Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src-draft/trunk]: src/sys/net80211 Move the pkthdr only if mprev is NULL. C...



details:   https://anonhg.NetBSD.org/src-all/rev/6ecd7ea73d59
branches:  trunk
changeset: 366925:6ecd7ea73d59
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Thu May 14 16:22:14 2020 +1000

description:
Move the pkthdr only if mprev is NULL.  Connecting to secured aps work.

diffstat:

 sys/net80211/ieee80211_netbsd.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r c29ca1ad35a7 -r 6ecd7ea73d59 sys/net80211/ieee80211_netbsd.c
--- a/sys/net80211/ieee80211_netbsd.c   Thu May 14 12:21:22 2020 +1000
+++ b/sys/net80211/ieee80211_netbsd.c   Thu May 14 16:22:14 2020 +1000
@@ -1440,7 +1440,7 @@
                        m_freem(m0);
                        return (NULL);
                }
-               if (m->m_flags & M_PKTHDR) {
+               if (mprev == NULL && m->m_flags & M_PKTHDR) {
                        FBSDKASSERT(mprev == NULL, ("%s: m0 %p, m %p has M_PKTHDR",
                            __func__, m0, m));
                        m_move_pkthdr(n, m);



Home | Main Index | Thread Index | Old Index