commit d0b0004c8c90cf025c7468739dc6f1f2216d7f7a
parent 7e9708ddbcb5f7f83c2dffab7c3ddb7a8c648fbe
Author: James Prestwood <prestwoj@gmail.com>
Date: Tue, 28 Sep 2021 14:27:38 -0700
netdev: set result/status for deauth path
If the deauth path was triggered IWD would deauth but end up
calling the connect callback with whatever result netdev had
set, e.g. 'NETDEV_RESULT_OK'. This, of course, caused station
some confusion.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/netdev.c b/src/netdev.c
@@ -2621,6 +2621,8 @@ error:
return;
deauth:
+ netdev->result = NETDEV_RESULT_ASSOCIATION_FAILED;
+ netdev->last_code = MMPDU_STATUS_CODE_UNSPECIFIED;
msg = netdev_build_cmd_deauthenticate(netdev,
MMPDU_REASON_CODE_UNSPECIFIED);
netdev->disconnect_cmd_id = l_genl_family_send(nl80211,