Author: avos
Date: Sun May 28 22:38:19 2017
New Revision: 319087
URL: https://svnweb.freebsd.org/changeset/base/319087

Log:
  rtwn_usb: fix build with 'options RTWN_WITHOUT_UCODE'

Modified:
  head/sys/dev/rtwn/rtl8192e/usb/r92eu_attach.c

Modified: head/sys/dev/rtwn/rtl8192e/usb/r92eu_attach.c
==============================================================================
--- head/sys/dev/rtwn/rtl8192e/usb/r92eu_attach.c       Sun May 28 21:42:47 
2017        (r319086)
+++ head/sys/dev/rtwn/rtl8192e/usb/r92eu_attach.c       Sun May 28 22:38:19 
2017        (r319087)
@@ -141,11 +141,13 @@ r92eu_attach(struct rtwn_usb_softc *uc)
        sc->sc_vap_preattach            = rtwn_nop_softc_vap;
        sc->sc_postattach               = rtwn_nop_softc;
        sc->sc_detach_private           = r92e_detach_private;
-       sc->sc_set_media_status         = r92e_set_media_status;
 #ifndef RTWN_WITHOUT_UCODE
+       sc->sc_set_media_status         = r92e_set_media_status;
        sc->sc_set_rsvd_page            = r88e_set_rsvd_page;
        sc->sc_set_pwrmode              = r92e_set_pwrmode;
        sc->sc_set_rssi                 = rtwn_nop_softc;       /* XXX TODO? */
+#else
+       sc->sc_set_media_status         = rtwn_nop_softc_int;
 #endif
        sc->sc_beacon_init              = r12a_beacon_init;
        sc->sc_beacon_enable            = r92c_beacon_enable;
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to