#917193 wpasupplicant: missing newline character in error message

Package:
wpasupplicant
Source:
wpa
Description:
client support for WPA and WPA2 (IEEE 802.11i)
Submitter:
Vincent Lefevre
Date:
2018-12-25 23:39:05 UTC
Severity:
minor
#917193#5
Date:
2018-12-23 22:51:41 UTC
From:
To:
I got the following error (via wicd logs):

2018/12/23 22:11:27 :: wpa_cli -i wlp61s0 terminate
Failed to connect to non-global ctrl_ifname: wlp61s0  error: No such file or directory

This should have been:

Failed to connect to non-global ctrl_ifname: wlp61s0
error: No such file or directory

#917193#10
Date:
2018-12-23 23:17:22 UTC
From:
To:
wpa_supplicant/wpa_cli.c contains:

                if (!global &&
                    wpa_cli_open_connection(ctrl_ifname, 0) < 0) {
                        fprintf(stderr, "Failed to connect to non-global "
                                "ctrl_ifname: %s  error: %s\n",
                                ctrl_ifname ? ctrl_ifname : "(nil)",
                                strerror(errno));
                        return -1;
                }

If the goal is to keep the error on the same line, the separator
should be clearer (not just spaces). Or the "error: %s" part could
be surrounded by parentheses.

#917193#15
Date:
2018-12-24 08:52:58 UTC
From:
To:
Thanks for reporting this and the other bug. Could you please try 2.7
from experimental?

#917193#20
Date:
2018-12-24 08:52:58 UTC
From:
To:
Thanks for reporting this and the other bug. Could you please try 2.7
from experimental?

#917193#25
Date:
2018-12-25 19:57:44 UTC
From:
To:
now appears only in the system logs (journalctl).

For the connection failure itself, I don't know yet. This may be a bug
in wpasupplicant as I have no issue with Android.

Here are the full logs:

Dec 25 20:39:44 zira kernel: IPv6: ADDRCONF(NETDEV_UP): wlp61s0: link is not ready
Dec 25 20:39:44 zira wicd[779]: Failed to connect to non-global ctrl_ifname: wlp61s0  error: No such file or directory
Dec 25 20:39:44 zira wicd[779]: Error for wireless request "Set Bit Rate" (8B20) :
Dec 25 20:39:44 zira wicd[779]:     invalid argument "NoneM".
Dec 25 20:39:47 zira kernel: wlp61s0: authenticate with 00:1f:33:89:73:4e
Dec 25 20:39:47 zira kernel: wlp61s0: send auth to 00:1f:33:89:73:4e (try 1/3)
Dec 25 20:39:47 zira kernel: wlp61s0: authenticated
Dec 25 20:39:47 zira kernel: wlp61s0: aborting association with 00:1f:33:89:73:4e by local choice (Reason: 3=DEAUTH_LEAVING)
Dec 25 20:39:47 zira kernel: wlp61s0: authenticate with 00:1f:33:89:73:4e
Dec 25 20:39:47 zira kernel: wlp61s0: send auth to 00:1f:33:89:73:4e (try 1/3)
Dec 25 20:39:47 zira kernel: wlp61s0: aborting authentication with 00:1f:33:89:73:4e by local choice (Reason: 3=DEAUTH_LEAVING)
Dec 25 20:39:47 zira kernel: wlp61s0: authenticate with 00:1f:33:89:73:4e
Dec 25 20:39:47 zira kernel: wlp61s0: send auth to 00:1f:33:89:73:4e (try 1/3)
Dec 25 20:39:47 zira kernel: wlp61s0: send auth to 00:1f:33:89:73:4e (try 2/3)
Dec 25 20:39:47 zira kernel: wlp61s0: authenticated
Dec 25 20:39:47 zira kernel: wlp61s0: associate with 00:1f:33:89:73:4e (try 1/3)
Dec 25 20:39:47 zira kernel: wlp61s0: RX AssocResp from 00:1f:33:89:73:4e (capab=0x401 status=0 aid=5)
Dec 25 20:39:47 zira kernel: wlp61s0: associated
Dec 25 20:39:57 zira kernel: wlp61s0: deauthenticating from 00:1f:33:89:73:4e by local choice (Reason: 3=DEAUTH_LEAVING)

#917193#30
Date:
2018-12-25 23:36:39 UTC
From:
To:
Note that this bug is about the bad format of this error message.
dumb to notice that authentication was not needed (the configuration
of the AP has changed; Android noticed that without needed manual
intervention, but not wicd).