1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-03-09 23:38:56 +00:00

log wpa messages

This commit is contained in:
albfan 2015-08-22 00:25:08 +02:00
parent 6e9402d8a0
commit 0bf42867ad
3 changed files with 15 additions and 1 deletions

View file

@ -17,6 +17,8 @@
* along with MiracleCast; If not, see <http://www.gnu.org/licenses/>.
*/
#define LOG_SUBSYSTEM "wpa"
#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
@ -33,6 +35,7 @@
#include "shl_dlist.h"
#include "shl_util.h"
#include "wpas.h"
#include "shl_log.h"
#define CTRL_PATH_TEMPLATE "/tmp/.miracle-wpas-%d-%lu"
@ -742,6 +745,8 @@ static int wpas__parse_message(struct wpas *w,
int r, num;
bool is_event = false;
log_trace("raw message: %s", raw);
if ((pos = shl_startswith(raw, "IFNAME="))) {
ifname = pos;
pos = strchrnul(pos, ' ');