sh /etc/netstart urtwn0
panic: invalid transition AUTH -> RUN
Stopped at panic+0x158: TID PID UID PRFLAGS
PFLAGS C
PU COMMAND
*352180 67191 0 0x14000 0x200 0 usbtask
db_enter() at panic+0x154
panic() at rtwn_newstate+0x6c4
rtwn_newstate() at urtwn_task+0x5c
urtwn_task() at usb_task_thread+0xe8
usb_task_thread() at proc_trampoline+0xc
https://www.openbsd.org/ddb.html describes the minimum info required in bug
reports. Insufficient info makes it difficult to find and fix bugs.
ddb> show panic
invalid transition AUTH -> RUN
ddb> trace
db_enter() at panic+0x154
panic() at rtwn_newstate+0x6c4
rtwn_newstate() at urtwn_task+0x5c
urtwn_task() at usb_task_thread+0xe8
usb_task_thread() at proc_trampoline+0xc
# diff -u /root/ieee80211_proto-orig.c ieee80211_proto.c
--- /root/ieee80211_proto-orig.c Fri Aug 4 10:45:32 2017
+++ ieee80211_proto.c Fri Aug 4 10:05:29 2017
@@ -1022,11 +1022,11 @@
switch (ostate) {
case IEEE80211_S_INIT:
case IEEE80211_S_SCAN:
- case IEEE80211_S_ASSOC:
panic("invalid transition %s -> %s",
ieee80211_state_name[ostate],
ieee80211_state_name[nstate]);
break;
+ case IEEE80211_S_ASSOC:
case IEEE80211_S_AUTH:
IEEE80211_SEND_MGMT(ic, ni,
IEEE80211_FC0_SUBTYPE_ASSOC_REQ, 0);
2017-08-03 16:13 GMT-03:00 Stefan Sperling <[email protected]>:
> On Thu, Aug 03, 2017 at 03:20:13PM -0300, R0me0 *** wrote:
> > Yes, all on raspberry
> >
> > Stefan, I can setup VM and test amd64. Current or 6.1-stable?
> >
> > To ensure I didn't a mess follow the diff:
> >
> > diff -u ieee80211_proto-orig.c /usr/src/sys/net80211/ieee80211_proto.c
>
> This diff is incorrect, it deletes way too many lines.
>
> > --- ieee80211_proto-orig.c Thu Aug 3 13:38:26 2017
> > +++ /usr/src/sys/net80211/ieee80211_proto.c Thu Aug 3 13:10:45 2017
> > @@ -1023,10 +1023,6 @@
> > case IEEE80211_S_INIT:
> > case IEEE80211_S_SCAN:
> > case IEEE80211_S_ASSOC:
> > - panic("invalid transition %s -> %s",
> > - ieee80211_state_name[ostate],
> > - ieee80211_state_name[nstate]);
> > - break;
> > case IEEE80211_S_AUTH:
> > IEEE80211_SEND_MGMT(ic, ni,
> > IEEE80211_FC0_SUBTYPE_ASSOC_REQ, 0);
>
> Here is my diff again (move just the "IEEE80211_S_ASSOC" line down).
>
> Index: ieee80211_proto.c
> ===================================================================
> RCS file: /cvs/src/sys/net80211/ieee80211_proto.c,v
> retrieving revision 1.78
> diff -u -p -r1.78 ieee80211_proto.c
> --- ieee80211_proto.c 22 Jul 2017 16:54:46 -0000 1.78
> +++ ieee80211_proto.c 28 Jul 2017 09:05:55 -0000
> @@ -1022,11 +1022,11 @@ justcleanup:
> switch (ostate) {
> case IEEE80211_S_INIT:
> case IEEE80211_S_SCAN:
> - case IEEE80211_S_ASSOC:
> panic("invalid transition %s -> %s",
> ieee80211_state_name[ostate],
> ieee80211_state_name[nstate]);
> break;
> + case IEEE80211_S_ASSOC:
> case IEEE80211_S_AUTH:
> IEEE80211_SEND_MGMT(ic, ni,
> IEEE80211_FC0_SUBTYPE_ASSOC_REQ, 0);
>
>