2

I need to create a hotspot setup using hostapd for EAP-SIM,EAP-AKA and EAP-AKA' and test it with wpa_supplicant.

Currently I am able to use hostapd for WPA-PSK authentication, hostapd2.4 is used for this setup.I have modified the hostapd.conf for supporting hotspot but when I try to connect , the network will be always in scanning state and won't connect. The necessary parameters for HS20 in wpa_supplicant is also enabled.

The following are the supplicant parameters,

build configuration: CONFIG_INTERWORKING=y CONFIG_HS20=y

wpa_supplicant configuration: Enable Interworking interworking=1 Enable Hotspot 2.0 hs20=1 auto_interworking=1

Also have specified a credentials block which takes necessary parameters for authentication with hostapd.

Using wpa_supplicantv2.5.I also have a dhcp server running for assigning IP address and also a milenage db running for EAP-SIM,EAP-AKA and EAP-AKA' authentication.

Can anyone suggest what are the necessary basic setup for enabling hotspot in hostapd?

Anand
  • 278
  • 3
  • 10
  • There some docs here if you haven't seen them already: https://w1.fi/cgit/hostap/tree/hs20/server/hs20-osu-server.txt and for wpa_supplicant: https://w1.fi/cgit/hostap/plain/wpa_supplicant/README-HS20 – Pierz Nov 14 '17 at 15:39

1 Answers1

-2

Step 1 :

iw list Check AP is listed

Step 2 :

sudo vim hostapd.conf
    -------------------------- interface=wlan0 driver=nl80211 ssid=ath9k_SSID         #SSID hw_mode=g channel=1 macaddr_acl=0 auth_algs=1 ignore_broadcast_ssid=0 wpa=3 wpa_passphrase=12345678 
    #password wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP CCMP rsn_pairwise=CCMP
    #comment last 4 lines for Open

Step 3 :

sudo vim /etc/dhcp/dhcpd.conf
    -------------------------- default-lease-time 600; max-lease-time 7200; subnet 192.168.1.0 netmask 255.255.255.0 {  range
    192.168.1.170 192.168.1.200;  option routers 192.168.1.254;  option domain-name-servers 192.168.1.1, 192.168.1.2;  option domain-name "mydomain.example"; }

Step 4 :

sudo vim /etc/network/interfaces
    -------------------------- auto wlan0 iface wlan0 inet static address 192.168.1.250 netmask 255.255.255.0

Step 5 :

sudo /etc/init.d/isc-dhcp-server stop sudo service network-manager stop sudo killall wpa_supplicant ps -N | grep -i hostapd  # make sure there are no hostapd/wpa_supplicant processes are running 

Step 6 :

Remove ethernet cable sudo ifconfig wlan0 192.168.1.169 netmask
    255.255.255.0 sudo /etc/init.d/isc-dhcp-server restart        => to set IP for STA sudo ./hostapd ./hostapd.conf -dddt Step 7: Connect from another device. Should be able to see the IP assigned.
Mostafiz
  • 7,243
  • 3
  • 28
  • 42
S Rana
  • 1
  • 2