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);