friedrith / node-wifi

📶 NodeJS tool to manage wifi (connections, scans)
MIT License
396 stars 160 forks source link

Fix connections function to return proper mac address and not the bssid #105

Closed lesenther closed 2 years ago

lesenther commented 4 years ago

Description

Fixes incorrect mac address returned when getting connections information on windows, which actually returns the bssid instead.

Motivation and Context

Bugfix

Usage examples

const wifi = require('node-wifi'); wifi.init({iface: 'wlan'}); wifi.getCurrentConnections().then(result => console.log(result));

// Compare with 'netsh wlan show interfaces'

How Has This Been Tested?

Tested on Windows 10

Types of changes

friedrith commented 1 year ago

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.