连接到
开放 Wi-Fi 热点的正确 WLAN 配置文件是什么?我正在使用原生 WiFi API 和以下配置文件:
@"<?xml version=""1.0"" encoding=""US-ASCII""?>
<WLANProfile xmlns=""http://www.microsoft.com/networking/WLAN/profile/v1"">
<name>name_goes_here</name>
<SSIDConfig>
<SSID>
<name>name_goes_here</name>
</SSID>
</SSIDConfig>
<connectionType>ESS</connectionType>
<connectionMode>manual</connectionMode>
<MSM>
<security>
<authEncryption>
<authentication>open</authentication>
</authEncryption>
</security>
</MSM>
</WLANProfile>"
但它失败,指出网络连接配置文件的配置已损坏。
@"<?xml version=""1.0""?>
<WLANProfile xmlns=""http://www.microsoft.com/networking/WLAN/profile/v1"">
<name>name_goes_here</name>
<SSIDConfig>
<SSID>
<name>name_goes_here</name>
</SSID>
</SSIDConfig>
<connectionType>ESS</connectionType>
<MSM>
<security>
<authEncryption>
<authentication>open</authentication>
<encryption>none</encryption>
<useOneX>false</useOneX>
</authEncryption>
</security>
</MSM>
</WLANProfile>";