Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connect to iphone hotspot from raspberry pi

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 /etc/wpa_supplicant/wpa_supplicant.conf.

network={
    ssid="iPhone"
    psk="pass"
    proto=RSN
    key_mgmt=WPA-PSK
    pairwise=CCMP
    auth_alg=OPEN
 }

For reference here's the config (working) for my home network (in the same file):

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
}
like image 354
scc Avatar asked Jun 13 '14 04:06

scc


2 Answers

I think your network has not the same configuration as you set (for proto / pairwise). You might configure your network this way:

network={
    ssid="iPhone"
    psk="pass"
    key_mgmt=WPA-PSK
 }

The wpa_supplicant will find the correct configuration by itself.

like image 178
jmlemetayer Avatar answered Sep 19 '22 16:09

jmlemetayer


Remove inverted commas & spaces from your iphone’s Name this will solve the problem

like image 33
Guneet Thind Avatar answered Sep 21 '22 16:09

Guneet Thind