Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Apr 2008 17:20:50 GMT
From:      Sam Leffler <sam@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 139527 for review
Message-ID:  <200804071720.m37HKob6071456@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=139527

Change 139527 by sam@sam_ebb on 2008/04/07 17:20:13

	hookup new radio events

Affected files ...

.. //depot/projects/vap/sys/dev/iwi/if_iwi.c#22 edit

Differences ...

==== //depot/projects/vap/sys/dev/iwi/if_iwi.c#22 (text+ko) ====

@@ -3237,10 +3237,12 @@
 iwi_radio_on(void *arg, int pending)
 {
 	struct iwi_softc *sc = arg;
+	struct ieee80211com *ic = sc->sc_ifp->if_l2com;
 
 	device_printf(sc->sc_dev, "radio turned on\n");
 
 	iwi_init(sc);
+	ieee80211_notify_radio(ic, 1);
 }
 
 static void
@@ -3267,10 +3269,13 @@
 iwi_radio_off(void *arg, int pending)
 {
 	struct iwi_softc *sc = arg;
+	struct ieee80211com *ic = sc->sc_ifp->if_l2com;
 	IWI_LOCK_DECL;
 
 	device_printf(sc->sc_dev, "radio turned off\n");
 
+	ieee80211_notify_radio(ic, 0);
+
 	IWI_LOCK(sc);
 	iwi_stop_locked(sc);
 	iwi_rfkill_poll(sc);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804071720.m37HKob6071456>