friedrith / node-wifi

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

Windows 11 support for `getCurrentConnections` (fix parsing) #177

Open juanmartin opened 2 years ago

juanmartin commented 2 years ago

Description

Windows 11 has two more fields in netsh wlan show interfaces: Interface Type (ifaceType) and Band (band). This made the parsing break so .getCurrentConnections() would return its values on the wrong keys for the resulting object.

Also made a few quick typo corrections.

Motivation and Context

See #176

Usage examples

Use .getCurrentConnections() in Windows 11.

How Has This Been Tested?

I tested getting the current connections and the object would now make sense.

Types of changes