Specify the Network Key Index Example for OMA DM
4/8/2010
You can use the Wi-Fi Configuration Service Provider to specify the network encryption key index an access-point network or a device-to-device network.
Code Examples
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."
<Replace>
<CmdID>3</CmdID>
<Item>
<Target><LocURI>./Vendor/MSFT/Wi-Fi/access-point/Work%20Network/KeyIndex</LocURI></Target>
<Data>1</Data>
</Item>
</Replace>
The following example shows how to specify the network encryption key index for a device-to-device network.
<Replace>
<CmdID>3</CmdID>
<Item>
<Target><LocURI>./Vendor/MSFT/Wi-Fi/ad-hoc/Work%20Network/KeyIndex</LocURI></Target>
<Data>1</Data>
</Item>
</Replace>
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 SyncBody node in an OMA DM provisioning file. For more information about the syntax of the provisioning file, see OMA DM Provisioning Files.