friedrith / node-wifi

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

[Bug]: not support security WPA3 on Windows 10 #175

Open 4sean opened 2 years ago

4sean commented 2 years ago

Expected behavior

can connect to wifi witch the security is WPA3 on Windows 10

Current behavior

can't connect to wifi witch the security is WPA3 on Windows 10

Which are the affected features

Which is your operating system?

Windows

Environment

No response

Version of node-wifi

2.0.16

Steps to Reproduce

wifi.connect({ ssid: 'ssid', password: 'password' }, (err) => { console.log('Connected'); });

Solutions

if (selectedAp.security.includes('WPA3')) { profile_content += <connectionType>ESS</connectionType> <connectionMode>auto</connectionMode> <autoSwitch>true</autoSwitch> <MSM> <security> <authEncryption> <authentication>WPA3SAE</authentication> <encryption>AES</encryption> <useOneX>false</useOneX> </authEncryption> <sharedKey> <keyType>passPhrase</keyType> <protected>false</protected> <keyMaterial>${key}</keyMaterial> </sharedKey> </security> </MSM>; }

friedrith commented 2 years ago

Hi, I add this feature in my todo list but I am not sure to have the bandwith for that. Can you write a PR for this feature?