title: use "netsh wlan set hostednetwork ..." to create a wifi hotspot and the authentication can't work correctly
body: <p>I run <code>netsh wlan show drivers</code> and get the output containing <code>Hosted network supported  : Yes</code>:</p>
  
  <pre><code>Interface name: Wireless Network Connection
  
  Driver                    : Broadcom 802.11n Network Adapter
  Vendor                    : Broadcom
  Provider                  : Broadcom
  Date                      : 8/22/2013
  Version                   : 6.32.223.1
  INF file                  : C:\Windows\INF\oem75.inf
  Files                     : 5 total
                              C:\Windows\system32\DRIVERS\BCMWL664.SYS
                              C:\Windows\system32\bcmihvsrv64.dll
                              C:\Windows\system32\bcmihvui64.dll
                              C:\Windows\system32\drivers\vwifibus.sys
                              C:\Windows\system32\bcmwlcoi.dll
  Type                      : Native Wi-Fi Driver
  Radio types supported     : 802.11n 802.11g 802.11b
  FIPS 140-2 mode supported : Yes
  Hosted network supported  : Yes
  Authentication and cipher supported in infrastructure mode:
                              Open            None
                              Open            WEP
                              Shared          None
                              Shared          WEP
                              WPA2-Enterprise TKIP
                              WPA2-Personal   TKIP
                              WPA2-Enterprise CCMP
                              WPA2-Personal   CCMP
                              WPA2-Enterprise Vendor defined
                              WPA2-Enterprise Vendor defined
                              Vendor defined  Vendor defined
                              Vendor defined  Vendor defined
                              Vendor defined  TKIP
                              Vendor defined  CCMP
                              Vendor defined  Vendor defined
                              Vendor defined  Vendor defined
                              WPA-Enterprise  TKIP
                              WPA-Personal    TKIP
                              WPA-Enterprise  CCMP
                              WPA-Personal    CCMP
  Authentication and cipher supported in ad-hoc mode:
                              WPA2-Personal   CCMP
                              Open            None
                              Open            WEP
  IHV service present       : Yes
  IHV adapter OUI           : [00 10 18], type: [00]
  IHV extensibility DLL path: C:\Windows\System32\bcmihvsrv64.dll
  IHV UI extensibility ClSID: {aaa6dee9-31b9-4f18-ab39-82ef9b06eb73}
  IHV diagnostics CLSID     : {00000000-0000-0000-0000-000000000000}
  </code></pre>
  
  <p>Then <code>netsh wlan set hostednetwork mode=allow ssid=happy key=12345678</code>, get</p>
  
  <pre><code>The hosted network mode has been set to allow.
  The SSID of the hosted network has been successfully changed.
  The user key passphrase of the hosted network has been successfully changed.
  </code></pre>
  
  <p>Then <code>netsh wlan start hostednetwork</code>, get</p>
  
  <pre><code>The hosted network started.
  </code></pre>
  
  <p>After that, in <code>Network and Sharing Center</code> -> <code>Change adapter settings</code>, I set up shared hotspot as the <a href="http://www.talkofweb.com/creating-wi-fi-hotspot-in-windows-8-share-laptop-internet-connection/">tutorial</a> said. </p>
  
  <p>Everything looks well. Then I switch wifi to open on my android phone, find the "happy" network, select "Connect", type the password "12345678"(without quotes). </p>
  
  <p>Now, it first hints "authenticating..." and at last comes up with an error: Authentication problem. I'm certain that I typed the right password, for I checked "show password" and tried again and again...</p>
  
  <p>Here is what <code>netsh wlan show hostednetwork</code> prints: </p>
  
  <pre><code>Hosted network settings
  -----------------------
  Mode                   : Allowed
  SSID name              : "happy"
  Max number of clients  : 100
  Authentication         : WPA2-Personal
  Cipher                 : CCMP
  
  Hosted network status
  ---------------------
  Status                 : Started
  BSSID                  : 68:94:23:b9:86:9d
  Radio type             : 802.11n
  Channel                : 11
  Number of clients      : 0
  </code></pre>
  
  <p>I tried rebooting, tried changing SSID, tried changing password, tried <code>netsh wlan stop hostednetwork</code> then start again, several days passed but it doesn't work yet. </p>
  
  <p>If you need more data or log about this problem, please tell me how to acquire it and I'll do it. </p>
  
  <p>Please help, thanks!</p>
  
  <hr>
  
  <p>Update: it's solved. Methods in previous answers are tried but no good. 
  All steps with no change, but change input method as I said in answer, it works. Thank you all. </p>