Skip to content

Commit 6b21699

Browse files
morihisa-momonanashif
authored andcommitted
wifi: airoc: FIX connection to AP with open security
STA fails to connect AP, of which security is open. Signed-off-by: Morihisa Momona <[email protected]>
1 parent 1f1241a commit 6b21699

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/wifi/infineon/airoc_wifi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ static int airoc_mgmt_connect(const struct device *dev, struct wifi_connect_req_
502502
goto error;
503503
}
504504

505-
if (usr_result.security == 0) {
505+
if (usr_result.security == WHD_SECURITY_UNKNOWN) {
506506
ret = -EAGAIN;
507507
LOG_ERR("Could not scan device");
508508
goto error;

0 commit comments

Comments
 (0)