[PATCH 2/7] wpaspy: add option to use wpa_cli

Jouni Malinen j at w1.fi
Sat Mar 23 13:02:34 PDT 2024


On Sat, Mar 09, 2024 at 08:42:23PM +0100, Janusz Dziedzic wrote:
> This one allow connection to remote/local
> host via SSH and use wpa_cli.

> diff --git a/wpaspy/wpaspy.py b/wpaspy/wpaspy.py
> @@ -10,16 +10,26 @@ import os
>  import stat
>  import socket
>  import select
> +import remotehost

That feels quite undesired. remotehost.py is part of the tests/hwsim
test setup while wpaspy.py is supposed to be standalone module that can
be used to communicate with wpa_supplicant and hostapd for various needs
that are certainly not limited to just testing.

Maybe this should be in a new class within tests/hwsim that inherits
class Ctrl and extends it for this purpose.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list