0

连接到打开的 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>"

但它没有说网络连接配置文件的配置已损坏。

4

1 回答 1

0
@"<?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>";  
于 2013-10-31T09:28:07.423 回答