Skip to content

Wlanapi Permissions bug on Windows 10 #71

@MattCatz

Description

@MattCatz

I ran into the issue discussed here:
https://docs.microsoft.com/en-us/answers/questions/397654/34netsh-wlan-connect34-wlanapiwlanconnect-from-wit.html

I am remoting into my Windows 10 machine using the built-in openssh server and running scripts that use pywifi. I purpose that we remove the WLAN_PROFILE_USER (0x2) from the call to WlanSetProfile

def _wlan_set_profile(self, handle, iface_guid, xml, overwrite, reason_code):
func = native_wifi.WlanSetProfile
func.argtypes = [HANDLE, POINTER(
GUID), DWORD, c_wchar_p, c_wchar_p, c_bool, c_void_p, POINTER(DWORD)]
func.restypes = [DWORD]
return func(handle, iface_guid, 2, xml, None, overwrite, None, reason_code)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions