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/8905da3c84e4
branches:  trunk
changeset: 951665:8905da3c84e4
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 9ac95f768e21 -r 8905da3c84e4 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