Skip to content

Conversation

MattCatz
Copy link

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

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.

see also: https://docs.microsoft.com/en-us/answers/questions/397654/34netsh-wlan-connect34-wlanapiwlanconnect-from-wit.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wlanapi Permissions bug on Windows 10

1 participant