After the dual WLAN function is turned on, the secondary WLAN cannot connect to WiFi

听雨 刘 1 Reputation point
2021-08-26T08:17:16.213+00:00

After enabling the dual WLAN function , I used the GUID of the secondary WLAN to connect to the WiFi, but it kept failing and reported 1186 error

dwResult = WlanSetInterface(
m_wlanHandle,
&m_primaryInterfaceGuid,
wlan_intf_opcode_secondary_sta_synchronized_connections,
sizeof(BOOL),
static_cast<PVOID>(&enable),
nullptr);

dwResult = WlanQueryInterface(
m_wlanHandle,
&m_primaryInterfaceGuid,
wlan_intf_opcode_secondary_sta_interfaces,
nullptr,
&dwDataSize,
(PVOID*)&pIfList,
nullptr);

wlanConnPara.wlanConnectionMode = wlan_connection_mode_profile;
wlanConnPara.strProfile = wifiSSID.c_str();
wlanConnPara.pDot11Ssid = NULL;
wlanConnPara.dot11BssType = dot11_BSS_type_any;
wlanConnPara.pDesiredBssidList = NULL;
wlanConnPara.dwFlags = 0;
dwResult = WlanConnect(m_wlanHandle, interfaceGuid, &wlanConnPara, NULL);

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,426 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Reza-Ameri 16,836 Reputation points
    2021-09-03T14:17:09.497+00:00

    Try update Network driver card.
    Report this issue using the Feedback Hub app.

    0 comments No comments