[BACK]Return to if_urtwn.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / dev / usb

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/dev/usb/if_urtwn.c between version 1.71 and 1.71.2.1

version 1.71, 2019/07/25 14:31:35 version 1.71.2.1, 2019/09/01 13:00:36
Line 390  urtwn_attach(device_t parent, device_t s
Line 390  urtwn_attach(device_t parent, device_t s
         callout_init(&sc->sc_calib_to, 0);          callout_init(&sc->sc_calib_to, 0);
         callout_setfunc(&sc->sc_calib_to, urtwn_calib_to, sc);          callout_setfunc(&sc->sc_calib_to, urtwn_calib_to, sc);
   
           rnd_attach_source(&sc->rnd_source, device_xname(sc->sc_dev),
               RND_TYPE_NET, RND_FLAG_DEFAULT);
   
         error = usbd_set_config_no(sc->sc_udev, 1, 0);          error = usbd_set_config_no(sc->sc_udev, 1, 0);
         if (error != 0) {          if (error != 0) {
                 aprint_error_dev(self, "failed to set configuration"                  aprint_error_dev(self, "failed to set configuration"
Line 513  urtwn_attach(device_t parent, device_t s
Line 516  urtwn_attach(device_t parent, device_t s
   
         ifp->if_percpuq = if_percpuq_create(ifp);          ifp->if_percpuq = if_percpuq_create(ifp);
         if_register(ifp);          if_register(ifp);
         rnd_attach_source(&sc->rnd_source, device_xname(sc->sc_dev),  
             RND_TYPE_NET, RND_FLAG_DEFAULT);  
   
         ieee80211_announce(ic);          ieee80211_announce(ic);
   
Line 569  urtwn_detach(device_t self, int flags)
Line 570  urtwn_detach(device_t self, int flags)
   
         usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, sc->sc_udev, sc->sc_dev);          usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, sc->sc_udev, sc->sc_dev);
   
           rnd_detach_source(&sc->rnd_source);
   
         callout_destroy(&sc->sc_scan_to);          callout_destroy(&sc->sc_scan_to);
         callout_destroy(&sc->sc_calib_to);          callout_destroy(&sc->sc_calib_to);
   

Legend:
Removed from v.1.71  
changed lines
  Added in v.1.71.2.1

CVSweb <webmaster@jp.NetBSD.org>