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/09a7853edcf3
branches:  trunk
changeset: 1025247:09a7853edcf3
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 79305c93d96a -r 09a7853edcf3 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