Changing debug level in 2 sockets control solution

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


Hi,

wpa_cli example is using 1 socket for both control and monitor.
However it is more convenient to use different sockets for control and
monitor.
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
size...
What is the better one ?

Thanks,

Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20080219/2a219800/attachment.htm 



More information about the Hostap mailing list