From 6d1141bf7a34600c2e8185480ac596e50bde894f Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Sat, 14 Dec 2024 08:36:25 +0100 Subject: [PATCH] wifiConnections() improved BSSID parsing (windows) --- CHANGELOG.md | 5 +++-- docs/history.html | 7 ++++++- docs/index.html | 2 +- lib/wifi.js | 2 +- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b5ca3ac..0ecadc28 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 | diff --git a/docs/history.html b/docs/history.html index 76ba248a..1ff3f4f7 100644 --- a/docs/history.html +++ b/docs/history.html @@ -58,7 +58,12 @@

Full version history

- 5.23.21 + 5.23.13 + 2024-12-14 + wifiConnections() improved BSSID parsing (windows) + + + 5.23.12 2024-12-13 networkConnections() fixed PID parsing macOS >= version 15 (macOS) diff --git a/docs/index.html b/docs/index.html index e04b2fa7..6360fbd8 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.23.12
+
New Version: 5.23.13
diff --git a/lib/wifi.js b/lib/wifi.js index 40764f79..ea3250b2 100644 --- a/lib/wifi.js +++ b/lib/wifi.js @@ -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;