Skip to content

Commit

Permalink
wifiConnections() improved BSSID parsing (windows)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebhildebrandt committed Dec 14, 2024
1 parent c4b99a5 commit 6d1141b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.

| Version | Date | Comment |
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
| 5.23.12 | 2024-12-13 | `networkConnections()` fixed wrond PID parsing (macOS) |
| 5.23.11 | 2024-12-13 | `networkConnections()` fixed wrond PID parsing (macOS) |
| 5.23.13 | 2024-12-14 | `wifiConnections()` improved BSSID parsing (windows) |
| 5.23.12 | 2024-12-13 | `networkConnections()` fixed wrong PID parsing (macOS) |
| 5.23.11 | 2024-12-13 | `networkConnections()` fixed wrong PID parsing (macOS) |
| 5.23.10 | 2024-12-12 | `time()` changed retrieval of timezones (linux, macOS) |
| 5.23.9 | 2024-12-11 | `typings` added definitions with overload |
| 5.23.8 | 2024-12-10 | `system()` added Raspberry 500 detection |
Expand Down
7 changes: 6 additions & 1 deletion docs/history.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ <h3>Full version history</h3>
</thead>
<tbody>
<tr>
<th scope="row">5.23.21</th>
<th scope="row">5.23.13</th>
<td>2024-12-14</td>
<td><span class="code">wifiConnections()</span> improved BSSID parsing (windows)</td>
</tr>
<tr>
<th scope="row">5.23.12</th>
<td>2024-12-13</td>
<td><span class="code">networkConnections()</span> fixed PID parsing macOS >= version 15 (macOS)</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
<img class="logo" src="assets/logo.png" alt="logo">
<div class="title">systeminformation</div>
<div class="subtitle"><span id="typed"></span>&nbsp;</div>
<div class="version">New Version: <span id="version">5.23.12</span></div>
<div class="version">New Version: <span id="version">5.23.13</span></div>
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
</div>
<div class="down">
Expand Down
2 changes: 1 addition & 1 deletion lib/wifi.js
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ function wifiConnections(callback) {
const model = lines[1].indexOf(':') >= 0 ? lines[1].split(':')[1].trim() : '';
const id = lines[2].indexOf(':') >= 0 ? lines[2].split(':')[1].trim() : '';
const ssid = util.getValue(lines, 'SSID', ':', true);
const bssid = util.getValue(lines, 'BSSID', ':', true);
const bssid = util.getValue(lines, 'BSSID', ':', true) || util.getValue(lines, 'AP BSSID', ':', true);;
const quality = util.getValue(lines, 'Signal', ':', true);
const signalLevel = wifiDBFromQuality(quality);
const type = util.getValue(lines, 'Radio type', ':', true) || util.getValue(lines, 'Type de radio', ':', true) || util.getValue(lines, 'Funktyp', ':', true) || null;
Expand Down

0 comments on commit 6d1141b

Please sign in to comment.