friedrith / node-wifi

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

fix: windows wifi scan issue fix for first network #138

Closed geetanshjain closed 3 years ago

geetanshjain commented 3 years ago

Description

While scanning for the networks in windows, initially there is a slicing from 5th index which leads to the omitting of first row depicting the ssid of the network. Have changed the slicing from 4th index, so that all the network information be preserved and assigned correctly.

Motivation and Context

This change is required as to get the correct information of the first network been captured and utilized. https://github.com/friedrith/node-wifi/issues/137

Usage examples

How Has This Been Tested?

After the change, have tried to scan for the networks, and can see all the information for every network is been listed correctly. Also tried to connect and disconnect with the selected network, which works as expected.

Types of changes

friedrith commented 2 years 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.