Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src-draft/trunk]: src/sys/dev/pci Use correct state machine override functio...
details: https://anonhg.NetBSD.org/src-all/rev/d29905c39ac6
branches: trunk
changeset: 375047:d29905c39ac6
user: Nathanial Sloss <nat%netbsd.org@localhost>
date: Thu Sep 24 12:29:49 2020 +1000
description:
Use correct state machine override function. Disable others.
diffstat:
sys/dev/pci/if_iwm.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (41 lines):
diff -r 8696b0059f24 -r d29905c39ac6 sys/dev/pci/if_iwm.c
--- a/sys/dev/pci/if_iwm.c Thu Sep 24 12:25:16 2020 +1000
+++ b/sys/dev/pci/if_iwm.c Thu Sep 24 12:29:49 2020 +1000
@@ -470,9 +470,11 @@ static void iwm_setrates_task(void *);
static int iwm_setrates(struct iwm_node *);
#endif
static int iwm_media_change(struct ifnet *);
+#if 0
static int iwm_do_newstate(struct ieee80211vap *, enum ieee80211_state,
int);
-//static void iwm_newstate_cb(struct work *, void *);
+static void iwm_newstate_cb(struct work *, void *);
+#endif
static int iwm_newstate(struct ieee80211vap *, enum ieee80211_state, int);
static void iwm_endscan(struct iwm_softc *);
static void iwm_fill_sf_command(struct iwm_softc *, struct iwm_sf_cfg_cmd *,
@@ -6293,7 +6295,7 @@ iwm_media_change(struct ifnet *ifp)
}
static int
-iwm_do_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg)
+iwm_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg)
{
struct ifnet *ifp = vap->iv_ifp;
struct ieee80211com *ic = vap->iv_ic;
@@ -6466,6 +6468,7 @@ iwm_newstate_cb(struct work *wk, void *v
}
#endif
+#if 0
static int
iwm_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg)
{
@@ -6489,6 +6492,7 @@ iwm_newstate(struct ieee80211vap *vap, e
return 0;
}
+#endif
static void
iwm_endscan(struct iwm_softc *sc)
Home |
Main Index |
Thread Index |
Old Index