Compartilhar via


Specify the Network Key Index Example

4/8/2010

The Wi-Fi Configuration Service Provider allows you to specify the network encryption key index for the network.

Code Example

The following example shows how to specify the network encryption key index for an access-point network. In this example, the network name is "Work Network."

<characteristic type="Wi-Fi">
    <characteristic type="access-point">
        <characteristic type="Work Network">
            <parm name="KeyIndex" value="1"/>
        </characteristic>
    </characteristic>
</characteristic>

The following example shows how to specify the network encryption key index for a device-to-device network.

<characteristic type="Wi-Fi">
    <characteristic type="ad-hoc">
        <characteristic type="Work Network">
            <parm name="KeyIndex" value="1"/>
        </characteristic>
    </characteristic>
</characteristic>

Remarks

One provisioning XML file typically contains configuration information for multiple Configuration Service Providers. To use this example, you must replace the values as appropriate, and add the node as a child of the OMA Client Provisioning file. For information about the syntax of this file, see OMA Client Provisioning Files. For examples, see OMA Client Provisioning XML File Examples.

See Also

Concepts

Wi-Fi Configuration Service Provider Examples for OMA Client Provisioning