On Tue, Jan 29, 2019 at 11:02:20AM -0700, Steve Johnson wrote: > 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) This failed due to the driver you are using here not supporting the needed functionality. The DPP_LISTEN command itself has already returned at this point, so the failure cannot be reported as part of that output. > 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 This does not look correct.. It looks like dpp_listen_freq does not get cleared in the driver failure case for remain-on-channel and that's why the second request to start listen state is assumed to be unnecessary. I'll fix this part. Anyway, this won't make DPP work with drivers that do not support remain-on-channel. PS. Currently the best location for examples on DPP operations is the implementation of the hwsim test cases for it: https://w1.fi/cgit/hostap/tree/tests/hwsim/test_dpp.py Some higher level information is also documented in https://w1.fi/cgit/hostap/tree/wpa_supplicant/README-DPP -- Jouni Malinen PGP id EFC895FA _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap