9

I'm trying to set the debug level of wpa_cli using the level command. It doesn't matter if I use interactive mode or direct commands the level command always fails.

wpa_cli -i wlan0 level 1

=> FAIL

And interactive mode:

wpa_cli
wpa_cli v2.3
Copyright (c) 2004-2014, Jouni Malinen <[email protected]> and contributors

This software may be distributed under the terms of the BSD license.
See README for more details.


Selected interface 'wlan0'

Interactive mode

> level 5
FAIL

What is the correct way to get this to work?

I'm trying to get debug messages for when a connection fails (because of a wrong psk or something)

1
  • Sorry that's not exactly what I am looking for, I have no problems connecting to my network but I would like to be able to debug the problem for the rare occasion that the connection fails.
    – MSB
    Jun 1, 2016 at 14:35

1 Answer 1

11

From the Interactive mode type log_level:

> log_level 
Current level: INFO
Timestamp: 0

Then type log_level debug :

> log_level debug
OK

Verify using the command log_level :

> log_level 
Current level: DEBUG
Timestamp: 0
1
  • Hi @GAD3R, Please let me know how to get the Timestamp value. No need to print 0 value. Please guide me. May 25, 2022 at 10:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .