mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 10:32:33 +01:00
netdev: print error if CMD_ASSOCIATE fails
This commit is contained in:
parent
5b226a8151
commit
7fe55567bd
@ -2932,9 +2932,10 @@ static void netdev_new_scan_results_event(struct l_genl_msg *msg,
|
||||
static void netdev_assoc_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("Error sending CMD_ASSOCIATE");
|
||||
if (err < 0) {
|
||||
l_error("Error sending CMD_ASSOCIATE (%d)", err);
|
||||
|
||||
netdev_connect_failed(netdev, NETDEV_RESULT_ASSOCIATION_FAILED,
|
||||
MMPDU_STATUS_CODE_UNSPECIFIED);
|
||||
|
Loading…
Reference in New Issue
Block a user