question

24550950 avatar image
0 Votes"
24550950 asked Reza-Ameri answered

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

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
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Are you facing this issue in Windows 11?
Have you observed the same behavior in previous version of Windows.

0 Votes 0 ·

1 Answer

Reza-Ameri avatar image
0 Votes"
Reza-Ameri answered jackyjoy-0833 Suspended commented

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.