Changing debug level in 2 sockets control solution

Dmitry Shmidt dimitrysh
Tue Feb 19 18:12:39 PST 2008


wpa_cli example is using 1 socket for both control and monitor.
However it is more convenient to use different sockets for control and
The problem:
Command "level Number" that is used to set debug_level variable "arrives" to

  wpa_supplicant_ctrl_iface_level() call from ctrl_iface_unix.c
wpa_supplicant_ctrl_iface_level() checks that from-path and dest-path are
the same and only then change debug_level.
  However, dest-path is monitor socket, and command is done through control
interface, so they differ and you can not set debug_level.

The simplest solution is to remove this check or restrict it to smaller path
What is the better one ?


-------------- next part --------------
An HTML attachment was scrubbed...

More information about the Hostap mailing list