1
Vote

Network List not showing correctly

description

Hi all

I have created a windows application which identifies nearby wifi connections.For accessing wifi networks i am using managed wifi project.But my issue is

var networkList = wifiConnection.GetAvailableNetworkList(0); iam calling this function to get the n/w list and getting only n/ws with frequencies within 2.4 ghz.Actually there are n/ws with frequencies above 5 ghz.Is there anything need to be added to get the accurate list.

/// <summary>
        /// Retrieves the list of available networks.
        /// </summary>
        /// <param name="flags">Controls the type of networks returned.</param>
        /// <returns>A list of the available networks.</returns>
        public Wlan.WlanAvailableNetwork[] GetAvailableNetworkList(Wlan.WlanGetAvailableNetworkFlags flags)
        {
            IntPtr availNetListPtr;
            Wlan.ThrowIfError(
                Wlan.WlanGetAvailableNetworkList(client.clientHandle, info.interfaceGuid, flags, IntPtr.Zero, out availNetListPtr));
            try
            {
                return ConvertAvailableNetworkListPtr(availNetListPtr);
            }
            finally
            {
                Wlan.WlanFreeMemory(availNetListPtr);
            }
        }

comments