How to use interworking_select command within wpa_cli utility?

work vlpl thework.vlpl at gmail.com
Thu Apr 12 10:18:40 PDT 2018


Hello,
I am testing hotspot 2.0 functionality, and can't figure out how to
use interworking_select command  within wpa_cli  utility.

I run hs20 test from hwsim directory, pause test with pdb.set_trace(),
to get device in desired state and do my other work.

interworking_select command that start from python code works
perfectly, for example this is output from wpa_cli

...
<3>Starting ANQP fetch for 02:00:00:00:03:00
<3>GAS-QUERY-START addr=02:00:00:00:03:00 dialog_token=34 freq=2412
<3>GAS-QUERY-DONE addr=02:00:00:00:03:00 dialog_token=34 freq=2412
status_code=0 result=SUCCESS
<3>RX-ANQP 02:00:00:00:03:00 ANQP Capability list
<3>RX-ANQP 02:00:00:00:03:00 NAI Realm list
<3>RX-ANQP 02:00:00:00:03:00 Domain Name list
<3>RX-HS20-ANQP 02:00:00:00:03:00 HS Capability List
<3>ANQP-QUERY-DONE addr=02:00:00:00:03:00 result=SUCCESS
<3>ANQP fetch completed
<3>INTERWORKING-AP 02:00:00:00:03:00 type=home id=0 priority=0 sp_priority=0
<3>INTERWORKING-SELECTED 02:00:00:00:03:00
<3>SME: Trying to authenticate with 02:00:00:00:03:00
(SSID='test-hs20' freq=2412 MHz)
<3>Trying to associate with 02:00:00:00:03:00 (SSID='test-hs20' freq=2412 MHz)
<3>Associated with 02:00:00:00:03:00
<3>CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
<3>CTRL-EVENT-EAP-STARTED EAP authentication started
<3>CTRL-EVENT-EAP-STATUS status='started' parameter=''
<3>CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=21
<3>CTRL-EVENT-EAP-STATUS status='accept proposed method' parameter='TTLS'
<3>CTRL-EVENT-EAP-METHOD EAP vendor 0 method 21 (TTLS) selected
...

But if I try run it manually from wpa_cli (wlan0 and wlan3 still
desired configured state because hwsim tests in pause), utility return
this

> interworking_select
Unknown command 'interworking_select'
> set interworking 1
OK
> set hs20 1
OK
> interworking_select
Unknown command 'interworking_select'
>

What should I do to make `interworking_select` command work?

--
Vladimir



More information about the Hostap mailing list