mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-04-30 20:27:55 +02:00
netdev: Fix connections to open networks
Fix a regression where connection to an open network results in an NotSupported error being returned. Fixes: d79e883e93df ("netdev: Introduce connection types")
This commit is contained in:
parent
61d0abe910
commit
ea324a7959
@ -3232,6 +3232,11 @@ int netdev_connect(struct netdev *netdev, struct scan_bss *bss,
|
|||||||
if (netdev->connected || netdev->connect_cmd_id || netdev->work.id)
|
if (netdev->connected || netdev->connect_cmd_id || netdev->work.id)
|
||||||
return -EISCONN;
|
return -EISCONN;
|
||||||
|
|
||||||
|
if (!is_rsn) {
|
||||||
|
nhs->type = CONNECTION_TYPE_SOFTMAC;
|
||||||
|
goto build_cmd_connect;
|
||||||
|
}
|
||||||
|
|
||||||
if (netdev_handshake_state_setup_connection_type(hs) < 0)
|
if (netdev_handshake_state_setup_connection_type(hs) < 0)
|
||||||
return -ENOTSUP;
|
return -ENOTSUP;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user