Update: I issue the command "dpp_listen 2437" twice in a row. It appears that the first command succeeded (wpa_cli reports "OK"), even though the -dd output from wpa_supplicant leads one to believe otherwise. Here is the console output from wpa_supplicant for the two listen commands received from wpa_cli: wlan0: Control interface command 'DPP_LISTEN 2437' wlan0: Add radio work 'dpp-listen'@0x1ff7e78 wlan0: First radio work item in the queue - schedule start immediately CTRL-DEBUG: ctrl_sock-sendto: sock=13 sndbuf=163840 outq=0 send_len=3 wlan0: Starting radio work 'dpp-listen'@0x1ff7e78 after 0.000123 second wait nl80211: Failed to request remain-on-channel (freq=2437 duration=5000): -1 (Operation not permitted) DPP: Failed to request the driver to remain on channel (2437 MHz) for listen wlan0: Radio work 'dpp-listen'@0x1ff7e78 done in 0.000299 seconds wlan0: radio_work_free('dpp-listen'@0x1ff7e78): num_active_works --> 0 wlan0: Control interface command 'DPP_LISTEN 2437' DPP: Already listening on 2437 MHz CTRL-DEBUG: ctrl_sock-sendto: sock=13 sndbuf=163840 outq=0 send_len=3 It seems like either: 1) There is a problem that is being masked. 2) There is information being reported that is misleading or incorrect Thanks, Steve > On Jan 28, 2019, at 4:36 PM, Steve Johnson <steve@xxxxxxxxxxxxxx> wrote: > > I am trying to do some hostapd basic testing for DPP. I'm looking for some simple steps to follow to provision an Enrollee onto an Access Point. > > What I have done: > • HostAPD > • Built hostapd with DPP enabled on a Ubuntu box. It functions successfully as an access point. > • I can run hostapd_cli on that machine and successfully communicate with hostapd. > • I can run dpp_bootstrap_gen and create the bootstrap information (DPP:yadayada) > • WPA > • Built wpa_supplicant with DPP enabled on a Raspberry Pi 3B > • I can run wpa_cli on the Pi and successfully communicate with wpa_supplicant > > Where I am stuck: > • I don't have an example of the sequence of dpp commands to issue at each end to effect DPP provisioning > • I tried dpp_listen 2412 on wpa_cli, and it returned OK, but the -dd output on wpa-supplicant said: > • nl80211: Failed to request remain-on-channel (freq=2412 duration=5000): -1 (Operation not permitted) > • DPP: Failed to request the driver to remain on channel (2412 MHz) for listen > > > Can someone provide a sequence of commands for each cli interface to successfully provision the enrollee? > > > wpa_supplicant.conf: > ctrl_interface=DIR=/var/run/wpa_supplicant > ctrl_interface_group=0 > update_config=1 > pmf=2 > dpp_config_processing=2 > > hostapd.dpp.conf: > interface=wlp2s0 > #bridge=br0 > driver=nl80211 > logger_syslog=1 > logger_syslog_level=2 > logger_stdout=-1 > logger_stdout_level=2 > ctrl_interface=/var/run/hostapd > ctrl_interface_group=0 > ssid=uncle-john > country_code=US > ieee80211d=1 > ieee80211h=1 > hw_mode=g > channel=1 > beacon_int=100 > dtim_period=2 > max_num_sta=255 > rts_threshold=-1 > fragm_threshold=-1 > macaddr_acl=0 > auth_algs=1 > ignore_broadcast_ssid=0 > ap_isolate=0 > ieee80211n=1 > require_ht=0 > #eapol_key_index_workaround=0 > #eap_server=0 > #own_ip_addr=127.0.0.1 > wpa=2 > wpa_passphrase=micronets > wpa_key_mgmt=WPA-PSK WPA-PSK-SHA256 DPP > wpa_pairwise=CCMP TKIP > rsn_pairwise=CCMP TKIP > wpa_strict_rekey=1 > ieee80211w=1 > mbo=1 > > Thanks, > > Steve Johnson > CableLabs > _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap