awkman / pywifi

A cross-platform module for manipulating WiFi devices.
MIT License
453 stars 154 forks source link

Mitigate bug in wlanapi #72

Open MattCatz opened 2 years ago

MattCatz commented 2 years ago

When connecting to wireless networks, wlanconnect can fail if called from a Windows service. This appears to be a bug when using network profiles with the WLAN_PROFILE_USER flag.

This change removes that flag to mitigate the issue.

fixes #71

see also: https://docs.microsoft.com/en-us/answers/questions/397654/34netsh-wlan-connect34-wlanapiwlanconnect-from-wit.html