开发者

Connecting to a network without WEP security using ManagedWifi APi

开发者 https://www.devze.com 2023-03-18 03:08 出处:网络
I am using ManagedWifi API to write an application the example inhttp://managedwifi.codeplex.com/SourceControl/changeset/view/41381#213980 gives us a view of how to connect to a SSID with WEP securi

I am using ManagedWifi API to write an application

the example in http://managedwifi.codeplex.com/SourceControl/changeset/view/41381#213980 gives us a view of how to connect to a SSID with WEP security .

I would like to have to some pointers as to what开发者_JAVA百科 would need to change if we need to connect to a known SSID "without" WEP security ..


The fact that that example uses WEP is because the used profile uses WEP.

A WLANProfile should follow the schema explained here. A number of sample WLANProfiles can be found here.

A WLANProfile for an open network should look more or less like this (can't test it right now)

<?xml version="1.0"?>
<WLANProfile xmlns="http://www.microsoft.com/networking/WLAN/profile/v1">
    <name>{0}</name>
    <SSIDConfig>
        <SSID>
            <name>{0}</name>
        </SSID>
        <nonBroadcast>false</nonBroadcast>
    </SSIDConfig>
    <connectionType>ESS</connectionType>
    <connectionMode>manual</connectionMode>
    <MSM>
        <security>
            <authEncryption>
                <authentication>open</authentication>
                <encryption>none</encryption>
                <useOneX>false</useOneX>
            </authEncryption>
        </security>
    </MSM>
</WLANProfile>

With {0} being the SSID you want to connect with

0

精彩评论

暂无评论...
验证码 换一张
取 消