Open mussacharles60 opened 1 year ago
Still appears to be an issue.
The problem is that the code is assuming the fields are always shown in the same order. This function would need to be rewritten in a more generic form.
I have proposed a change to the code that fixes this issue.
Expected behavior
I have tested on windows 11 to get the current wifi connections but wrong data returns probably indexing the rows from exec results
OS Name: Microsoft Windows 11 Pro OS Version: 10.0.22000 N/A Build 22000
I tried to check directly via command line
Current behavior
With
getCurrentConnections
method this is what I getAs you can see from
ssid
tomode
there are wrong data compared to the directly get from command line interface.Which are the affected features
Which is your operating system?
Windows
Environment
electron
Version of node-wifi
2.0.16
Steps to Reproduce
Install node-wifi v2.0.16
npm i node-wifi@2.0.16
Import node-wifi to project
Solutions
It should be fixed by indexing the correct data from exec results, like at the expected behavior