Skip to content

Commit

Permalink
Use the fWorkLoop from base
Browse files Browse the repository at this point in the history
  • Loading branch information
pigworlds committed Aug 2, 2021
1 parent 9f0fff0 commit e07c168
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions AirportItlwm/AirportItlwm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ bool AirportItlwm::start(IOService *provider)
super::stop(pciNub);
return false;
}
_fWorkloop = OSDynamicCast(IO80211WorkLoop, getWorkLoop());
if (_fWorkloop == NULL) {
XYLog("No _fWorkloop!!\n");
super::stop(pciNub);
Expand Down Expand Up @@ -482,21 +483,6 @@ bool AirportItlwm::initPCIPowerManagment(IOPCIDevice *provider)
return true;
}

bool AirportItlwm::createWorkLoop()
{
_fWorkloop = nullptr;
if (super::createWorkLoop())
{
_fWorkloop = OSDynamicCast(IO80211WorkLoop, super::getWorkLoop());
}
return _fWorkloop != nullptr;
}

IOWorkLoop *AirportItlwm::getWorkLoop() const
{
return _fWorkloop;
}

IOReturn AirportItlwm::selectMedium(const IONetworkMedium *medium)
{
setSelectedMedium(medium);
Expand Down Expand Up @@ -587,7 +573,7 @@ void AirportItlwm::releaseAll()
fWatchdogWorkLoop->release();
fWatchdogWorkLoop = NULL;
}
_fWorkloop->release();
// _fWorkloop->release();
_fWorkloop = NULL;
}
unregistPM();
Expand Down

0 comments on commit e07c168

Please sign in to comment.