mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-23 06:02:37 +01:00
netdev: netdev_build_cmd_connect doesn't fail
This commit is contained in:
parent
c1bf2376d4
commit
29aea1d411
@ -3340,9 +3340,6 @@ build_cmd_connect:
|
||||
cmd_connect = netdev_build_cmd_connect(netdev, bss, hs,
|
||||
NULL, vendor_ies, num_vendor_ies);
|
||||
|
||||
if (!cmd_connect)
|
||||
return -EINVAL;
|
||||
|
||||
if (!is_offload(hs) && (is_rsn || hs->settings_8021x)) {
|
||||
sm = eapol_sm_new(hs);
|
||||
|
||||
@ -3457,8 +3454,6 @@ int netdev_reassociate(struct netdev *netdev, struct scan_bss *target_bss,
|
||||
|
||||
cmd_connect = netdev_build_cmd_connect(netdev, target_bss, hs,
|
||||
orig_bss->addr, NULL, 0);
|
||||
if (!cmd_connect)
|
||||
return -EINVAL;
|
||||
|
||||
if (is_rsn)
|
||||
sm = eapol_sm_new(hs);
|
||||
|
Loading…
Reference in New Issue
Block a user