File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -368,6 +368,7 @@ bool AirportItlwm::start(IOService *provider)
368368 super::stop (pciNub);
369369 return false ;
370370 }
371+ _fWorkloop = OSDynamicCast (IO80211WorkLoop, getWorkLoop ());
371372 if (_fWorkloop == NULL ) {
372373 XYLog (" No _fWorkloop!!\n " );
373374 super::stop (pciNub);
@@ -482,21 +483,6 @@ bool AirportItlwm::initPCIPowerManagment(IOPCIDevice *provider)
482483 return true ;
483484}
484485
485- bool AirportItlwm::createWorkLoop ()
486- {
487- _fWorkloop = nullptr ;
488- if (super::createWorkLoop ())
489- {
490- _fWorkloop = OSDynamicCast (IO80211WorkLoop, super::getWorkLoop ());
491- }
492- return _fWorkloop != nullptr ;
493- }
494-
495- IOWorkLoop *AirportItlwm::getWorkLoop () const
496- {
497- return _fWorkloop;
498- }
499-
500486IOReturn AirportItlwm::selectMedium (const IONetworkMedium *medium)
501487{
502488 setSelectedMedium (medium);
@@ -586,7 +572,7 @@ void AirportItlwm::releaseAll()
586572 fWatchdogWorkLoop ->release ();
587573 fWatchdogWorkLoop = NULL ;
588574 }
589- _fWorkloop->release ();
575+ // _fWorkloop->release();
590576 _fWorkloop = NULL ;
591577 }
592578 unregistPM ();
You can’t perform that action at this time.
0 commit comments