Skip to content

Commit

Permalink
Add noise info in scan results
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Belyaev committed Oct 15, 2020
1 parent f11fe03 commit cff9965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AirportItlwm/AirportSTAIOCTL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ getSCAN_RESULT(OSObject *object, struct apple80211_scan_result **sr)
result->asr_channel.version = APPLE80211_VERSION;
result->asr_channel.channel = ieee80211_chan2ieee(ic, fNextNodeToSend->ni_chan);
result->asr_channel.flags = ieeeChanFlag2apple(fNextNodeToSend->ni_chan->ic_flags);
result->asr_noise = 0;
result->asr_noise = fHalService->getDriverInfo()->getBSSNoise();
result->asr_rssi = -(0 - IWM_MIN_DBM - fNextNodeToSend->ni_rssi);
memcpy(result->asr_bssid, fNextNodeToSend->ni_bssid, IEEE80211_ADDR_LEN);
result->asr_ssid_len = fNextNodeToSend->ni_esslen;
Expand Down

0 comments on commit cff9965

Please sign in to comment.