Skip to content

Commit

Permalink
Redo missing flags handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
zxystd committed May 31, 2023
1 parent acf7be5 commit 485fc16
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions AirportItlwm/AirportSTAIOCTL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,12 @@ getSUPPORTED_CHANNELS(OSObject *object, struct apple80211_sup_channel_data *ad)
for (int i = 0; i < IEEE80211_CHAN_MAX; i++) {
if (ic->ic_channels[i].ic_freq != 0) {
ad->supported_channels[ad->num_channels].channel = ieee80211_chan2ieee(ic, &ic->ic_channels[i]);
#if __IO80211_TARGET < __MAC_13_0
ad->supported_channels[ad->num_channels].flags = ieeeChanFlag2apple(ic->ic_channels[i].ic_flags, -1);
#else
ad->supported_channels[ad->num_channels].flags = ieeeChanFlag2appleScanFlagVentura(ic->ic_channels[i].ic_flags);
#endif

ad->num_channels++;
}
}
Expand Down

0 comments on commit 485fc16

Please sign in to comment.