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/9744d6486721
branches:  trunk
changeset: 986412:9744d6486721
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 00ae21d3d7cd -r 9744d6486721 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