Skip to content

Commit 402c471

Browse files
author
Sebastian Stockhammer
committed
Require exact context type match
1 parent 9974899 commit 402c471

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

features/cellular/framework/AT/AT_CellularContext.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,8 @@ bool AT_CellularContext::get_context()
385385
// APN matched -> Check PDP type
386386
pdp_type_t pdp_type = string_to_pdp_type(pdp_type_from_context);
387387

388-
// Accept exact matching PDP context type or dual PDP context for IPv4/IPv6 only modems
389-
if (get_property(pdp_type_t_to_cellular_property(pdp_type)) ||
390-
((pdp_type == IPV4V6_PDP_TYPE && (modem_supports_ipv4 || modem_supports_ipv6)) && !_nonip_req)) {
388+
// Accept exact matching PDP context type
389+
if (get_property(pdp_type_t_to_cellular_property(pdp_type))) {
391390
_pdp_type = pdp_type;
392391
_cid = cid;
393392
}

0 commit comments

Comments
 (0)