title: Connect to iphone hotspot from raspberry pi
body: <p>Currently, i can connect from the raspberry (raspbian) to my home wifi but when i try to connect to iphone (4s) hotspot i can't. Iphone is WPA2 Personal while my home network is WPA/WPA2 Personal. I suspect there's something wrong with my config but i really can't find what. Here's the relevant part in <code>/etc/wpa_supplicant/wpa_supplicant.conf</code>. </p>
  
  <pre><code>network={
      ssid="iPhone"
      psk="pass"
      proto=RSN
      key_mgmt=WPA-PSK
      pairwise=CCMP
      auth_alg=OPEN
   }
  </code></pre>
  
  <p>For reference here's the config (working) for my home network (in the same file):</p>
  
  <pre><code>network={
      ssid="wifi name"
      psk="pass"
      # Protocol type can be: RSN (for WP2) and WPA (for WPA1)
      proto=WPA
      # Key management type can be: WPA-PSK or WPA-EAP (Pre-Shared or Enterprise)
      key_mgmt=WPA-PSK
      # Pairwise can be CCMP or TKIP (for WPA2 or WPA1)
      pairwise=TKIP
      #Authorization option should be OPEN for both WPA1/WPA2 (in less commonly used are SHARED and LEAP)
      auth_alg=OPEN
  }
  </code></pre>