3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-26 18:59:22 +01:00

netdev: print error number on CMD_FRAME failure

This commit is contained in:
James Prestwood 2021-04-22 10:37:45 -07:00 committed by Denis Kenzior
parent cb6faed69a
commit f98ddf2201

View File

@ -3676,9 +3676,10 @@ static void prepare_ft(struct netdev *netdev, struct scan_bss *target_bss)
static void netdev_ft_request_cb(struct l_genl_msg *msg, void *user_data) static void netdev_ft_request_cb(struct l_genl_msg *msg, void *user_data)
{ {
struct netdev *netdev = user_data; struct netdev *netdev = user_data;
int err = l_genl_msg_get_error(msg);
if (l_genl_msg_get_error(msg) < 0) { if (err < 0) {
l_error("Could not send CMD_FRAME"); l_error("Could not send CMD_FRAME (%d)", err);
netdev_connect_failed(netdev, netdev_connect_failed(netdev,
NETDEV_RESULT_AUTHENTICATION_FAILED, NETDEV_RESULT_AUTHENTICATION_FAILED,
MMPDU_STATUS_CODE_UNSPECIFIED); MMPDU_STATUS_CODE_UNSPECIFIED);