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
1 changed files with 3 additions and 2 deletions

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)
{
struct netdev *netdev = user_data;
int err = l_genl_msg_get_error(msg);
if (l_genl_msg_get_error(msg) < 0) {
l_error("Could not send CMD_FRAME");
if (err < 0) {
l_error("Could not send CMD_FRAME (%d)", err);
netdev_connect_failed(netdev,
NETDEV_RESULT_AUTHENTICATION_FAILED,
MMPDU_STATUS_CODE_UNSPECIFIED);