Source-Changes-HG archive

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

[src/trunk]: src/sys/net80211 i hit an assert in this code but we weren't sur...



details:   https://anonhg.NetBSD.org/src/rev/bfdf2ea84bb8
branches:  trunk
changeset: 935898:bfdf2ea84bb8
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Jul 13 05:40:25 2020 +0000

description:
i hit an assert in this code but we weren't sure why.

for now, add the ostate and nstate values for further diagnosis
to the assert message.

diffstat:

 sys/net80211/ieee80211_proto.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r c5e8ca0547b1 -r bfdf2ea84bb8 sys/net80211/ieee80211_proto.c
--- a/sys/net80211/ieee80211_proto.c    Mon Jul 13 05:38:52 2020 +0000
+++ b/sys/net80211/ieee80211_proto.c    Mon Jul 13 05:40:25 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ieee80211_proto.c,v 1.34 2017/02/02 10:05:35 nonaka Exp $      */
+/*     $NetBSD: ieee80211_proto.c,v 1.35 2020/07/13 05:40:25 mrg Exp $ */
 /*-
  * Copyright (c) 2001 Atsushi Onoe
  * Copyright (c) 2002-2005 Sam Leffler, Errno Consulting
@@ -36,7 +36,7 @@
 __FBSDID("$FreeBSD: src/sys/net80211/ieee80211_proto.c,v 1.23 2005/08/10 16:22:29 sam Exp $");
 #endif
 #ifdef __NetBSD__
-__KERNEL_RCSID(0, "$NetBSD: ieee80211_proto.c,v 1.34 2017/02/02 10:05:35 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ieee80211_proto.c,v 1.35 2020/07/13 05:40:25 mrg Exp $");
 #endif
 
 /*
@@ -1103,8 +1103,9 @@
                case IEEE80211_S_SCAN:          /* adhoc/hostap mode */
                case IEEE80211_S_ASSOC:         /* infra mode */
                        IASSERT(ni->ni_txrate < ni->ni_rates.rs_nrates,
-                               ("%s: bogus xmit rate %u setup\n", __func__,
-                                       ni->ni_txrate));
+                               ("%s: bogus xmit rate %u setup ostate %x "
+                                "nstate %x\n", __func__, ni->ni_txrate,
+                                ostate, nstate));
 #ifdef IEEE80211_DEBUG
                        if (ieee80211_msg_debug(ic)) {
                                if (ic->ic_opmode == IEEE80211_M_STA)



Home | Main Index | Thread Index | Old Index