Skip to content

Commit

Permalink
Updated rssi and noise values to match itlwm.kext api OpenIntelWirele…
Browse files Browse the repository at this point in the history
…ss/itlwm@dd4bec0

- Hidden Security and country code items since they have not been implemented so this pull request can be merged.
  • Loading branch information
ErrorErrorError committed Jul 5, 2020
1 parent 57329a2 commit e6cbf5d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Common/Common.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ struct ioctl_sta_info {
int cur_mcs;
uint channel;
uint16_t band_width;//20 40 80 160
uint rssi;
uint noise;
int16_t rssi;
int16_t noise;
uint rate;
unsigned char ssid[NWID_LEN];
uint8_t bssid[ETHER_ADDR_LEN];
Expand Down
5 changes: 5 additions & 0 deletions HeliPort/Appearance/StatusMenu.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ final class StatusMenu: NSMenu, NSMenuDelegate {
items[items.count - idx].isHidden = !visible
}
for idx in 11...23 {
// Hide security and country code since those have not been implemented in io_station_info
if idx == 15 || idx == 18 {
items[idx].isHidden = true
continue
}
items[idx].isHidden = !(visible && status == ITL80211_S_RUN)
}
}
Expand Down

0 comments on commit e6cbf5d

Please sign in to comment.