Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic move some of the patching of callbacks and other ...



details:   https://anonhg.NetBSD.org/src/rev/c5e8ca0547b1
branches:  trunk
changeset: 935897:c5e8ca0547b1
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Jul 13 05:38:52 2020 +0000

description:
move some of the patching of callbacks and other data after
ieee80211_ifattach() but before if_deferred_start_init().

may fix panic i saw in after restarting wpa_supplicant.

from mlelstv.

diffstat:

 sys/dev/ic/bwfm.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (31 lines):

diff -r 84429d6af724 -r c5e8ca0547b1 sys/dev/ic/bwfm.c
--- a/sys/dev/ic/bwfm.c Mon Jul 13 05:20:45 2020 +0000
+++ b/sys/dev/ic/bwfm.c Mon Jul 13 05:38:52 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bwfm.c,v 1.25 2020/05/30 15:55:47 jdolecek Exp $ */
+/* $NetBSD: bwfm.c,v 1.26 2020/07/13 05:38:52 mrg Exp $ */
 /* $OpenBSD: bwfm.c,v 1.5 2017/10/16 22:27:16 patrick Exp $ */
 /*
  * Copyright (c) 2010-2016 Broadcom Corporation
@@ -432,10 +432,6 @@
        }
                
        ieee80211_ifattach(ic);
-       ifp->if_percpuq = if_percpuq_create(ifp);
-       if_deferred_start_init(ifp, NULL);
-       if_register(ifp);
-
        sc->sc_newstate = ic->ic_newstate;
        ic->ic_newstate = bwfm_newstate;
        ic->ic_newassoc = bwfm_newassoc;
@@ -443,6 +439,10 @@
        ic->ic_recv_mgmt = bwfm_recv_mgmt;
        ic->ic_crypto.cs_key_set = bwfm_key_set;
        ic->ic_crypto.cs_key_delete = bwfm_key_delete;
+
+       ifp->if_percpuq = if_percpuq_create(ifp);
+       if_deferred_start_init(ifp, NULL);
+       if_register(ifp);
        ieee80211_media_init(ic, bwfm_media_change, ieee80211_media_status);
 
        ieee80211_announce(ic);



Home | Main Index | Thread Index | Old Index