Skip to content

Commit

Permalink
revert state IOCTL.
Browse files Browse the repository at this point in the history
  • Loading branch information
zxystd committed Feb 2, 2021
1 parent 9bf4636 commit ecf78fc
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions AirportItlwm/AirportSTAIOCTL.cpp
Expand Up @@ -562,14 +562,7 @@ getSTATE(OSObject *object,
{
memset(sd, 0, sizeof(*sd));
sd->version = APPLE80211_VERSION;
IO80211Interface *inf = OSDynamicCast(IO80211Interface, object);
if (inf && inf->linkState() == kIO80211NetworkLinkUp) {
sd->state = APPLE80211_S_RUN;
}
IO80211VirtualInterface *vif = OSDynamicCast(IO80211VirtualInterface, object);
if (vif && vif->linkState() == kIO80211NetworkLinkUp) {
sd->state = APPLE80211_S_RUN;
}
sd->state = fHalService->get80211Controller()->ic_state;
return kIOReturnSuccess;
}

Expand Down

0 comments on commit ecf78fc

Please sign in to comment.