Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152035020
D5057.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D5057.diff
View Options
Index: head/sys/dev/rtwn/if_rtwn.c
===================================================================
--- head/sys/dev/rtwn/if_rtwn.c
+++ head/sys/dev/rtwn/if_rtwn.c
@@ -186,11 +186,9 @@
static void rtwn_lc_calib(struct rtwn_softc *);
static void rtwn_temp_calib(struct rtwn_softc *);
static void rtwn_init_locked(struct rtwn_softc *);
-static void rtwn_init(struct rtwn_softc *);
static void rtwn_stop_locked(struct rtwn_softc *);
static void rtwn_stop(struct rtwn_softc *);
static void rtwn_intr(void *);
-static void rtwn_hw_reset(void *, int);
/* Aliases. */
#define rtwn_bb_write rtwn_write_4
@@ -295,7 +293,6 @@
RTWN_LOCK_INIT(sc);
callout_init_mtx(&sc->calib_to, &sc->sc_mtx, 0);
callout_init_mtx(&sc->watchdog_to, &sc->sc_mtx, 0);
- TASK_INIT(&sc->sc_reinit_task, 0, rtwn_hw_reset, sc);
mbufq_init(&sc->sc_snd, ifqmaxlen);
error = rtwn_read_chipid(sc);
@@ -406,7 +403,6 @@
int i;
if (sc->sc_ic.ic_softc != NULL) {
- ieee80211_draintask(&sc->sc_ic, &sc->sc_reinit_task);
rtwn_stop(sc);
callout_drain(&sc->calib_to);
@@ -1899,7 +1895,7 @@
if (sc->sc_tx_timer != 0 && --sc->sc_tx_timer == 0) {
ic_printf(ic, "device timeout\n");
- ieee80211_runtask(ic, &sc->sc_reinit_task);
+ ieee80211_restart_all(ic);
return;
}
callout_reset(&sc->watchdog_to, hz, rtwn_watchdog, sc);
@@ -3361,18 +3357,6 @@
}
static void
-rtwn_init(struct rtwn_softc *sc)
-{
-
- RTWN_LOCK(sc);
- rtwn_init_locked(sc);
- RTWN_UNLOCK(sc);
-
- if (sc->sc_flags & RTWN_RUNNING)
- ieee80211_start_all(&sc->sc_ic);
-}
-
-static void
rtwn_stop_locked(struct rtwn_softc *sc)
{
uint16_t reg;
@@ -3481,14 +3465,3 @@
RTWN_UNLOCK(sc);
}
-
-static void
-rtwn_hw_reset(void *arg0, int pending)
-{
- struct rtwn_softc *sc = arg0;
- struct ieee80211com *ic = &sc->sc_ic;
-
- rtwn_stop(sc);
- rtwn_init(sc);
- ieee80211_notify_radio(ic, 1);
-}
Index: head/sys/dev/rtwn/if_rtwnreg.h
===================================================================
--- head/sys/dev/rtwn/if_rtwnreg.h
+++ head/sys/dev/rtwn/if_rtwnreg.h
@@ -1295,7 +1295,6 @@
bus_size_t sc_mapsize;
int sc_cap_off;
- struct task sc_reinit_task;
struct callout calib_to;
struct callout watchdog_to;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 13, 6:24 AM (10 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31345885
Default Alt Text
D5057.diff (2 KB)
Attached To
Mode
D5057: rtwn: use ieee80211_restart_all() for device reset
Attached
Detach File
Event Timeline
Log In to Comment