diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2021-04-08 00:11:00 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-04-08 10:04:42 +0000 |
commit | 7e0404c6c2928347f4f69906db7055444285c80e (patch) | |
tree | 110887cb6884f4fc1dfa1703501b064564e5adf6 | |
parent | e9ee6dfdb886d716cbfcc4f8bd86c366f99be3e0 (diff) |
modem-helpers-qmi: match QMI_WDS_AUTHENTICATION_NONE with MM_BEARER_ALLOWED_AUTH_NONE
There is no point in returning UNKNOWN when the WDS auth value is NONE.
-rw-r--r-- | src/mm-modem-helpers-qmi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mm-modem-helpers-qmi.c b/src/mm-modem-helpers-qmi.c index 7d98084a..66e91f4f 100644 --- a/src/mm-modem-helpers-qmi.c +++ b/src/mm-modem-helpers-qmi.c @@ -1485,6 +1485,10 @@ mm_bearer_allowed_auth_from_qmi_authentication (QmiWdsAuthentication auth) { MMBearerAllowedAuth out = 0; + /* Exact match for NONE */ + if (auth == QMI_WDS_AUTHENTICATION_NONE) + return MM_BEARER_ALLOWED_AUTH_NONE; + if (auth & QMI_WDS_AUTHENTICATION_PAP) out |= MM_BEARER_ALLOWED_AUTH_PAP; if (auth & QMI_WDS_AUTHENTICATION_CHAP) |