if(pAvailableNetworkList->Network[i].dot11BssType==2) { cout<<"\nProcess to Connect to adhoc"; WLAN_CONNECTION_PARAMETERS ConnPara; ConnPara.wlanConnectionMode = wlan_connection_mode_discovery_secure; ConnPara.strProfile = NULL; DOT11_SSID temp2; temp2.ucSSID = pAvailableNetworkList->Network[i].dot11Ssid.ucSSID; //in above line i am getting error like "l-value required" temp2.uSSIDLength = pAvailableNetworkList->Network[i].dot11Ssid.uSSIDLength; ConnPara.pDot11Ssid = &temp2; ConnPara.pDesiredBssidList = NULL; //change if not working ConnPara.dot11BssType = dot11_BSS_type_any; ConnPara.dwFlags = WLAN_CONNECTION_ADHOC_JOIN_ONLY; WlanConnect(hClientHandle, &interfaceGuid, &ConnPara, NULL ); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)