Re: [PATCH] wpa-cli: Support monitor mode without action file.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jun 14, 2017 at 11:29:22AM -0700, greearb@xxxxxxxxxxxxxxx wrote:
> I wanted a way to start wpa_cli, have it do the keep-alive ping,
> and print events as they are received.  I do not want an action file,
> and I do not need interactive mode, and I want to run
> this in a way where stdin may not be open.
> 
> So, introduce '-m' monitor mode.
> 
> wpa_cli -m -g /var/run/wpa_supplicant_if_wiphy0

This and the related (I'd assume) "wpa_cli: Don't buffer stdout." patch
were left in my queue for more consideration and I did not really ever
find time to go through the details before now.. It looks like this is
used to enable wpa_cli to be used by some other program to receive
wpa_supplicant messages. That sounds quite complex compared to simply
using wpa_ctrl.c or wpaspy.py (or similar implementation of socket
communication in other programming languages). I'm not really convinced
that wpa_cli should have such mode and instead, I'd recommend
implementing direct wpa_supplicant socket access in whatever the program
is that would be using this no-buffering-stdout from wpa_cli.

-- 
Jouni Malinen                                            PGP id EFC895FA

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux