mirror of https://github.com/ARMmbed/mbed-os.git
Require exact context type match
parent
4251b8cf5e
commit
55243ae027
|
@ -385,9 +385,8 @@ bool AT_CellularContext::get_context()
|
||||||
// APN matched -> Check PDP type
|
// APN matched -> Check PDP type
|
||||||
pdp_type_t pdp_type = string_to_pdp_type(pdp_type_from_context);
|
pdp_type_t pdp_type = string_to_pdp_type(pdp_type_from_context);
|
||||||
|
|
||||||
// Accept exact matching PDP context type or dual PDP context for IPv4/IPv6 only modems
|
// Accept exact matching PDP context type
|
||||||
if (get_property(pdp_type_t_to_cellular_property(pdp_type)) ||
|
if (get_property(pdp_type_t_to_cellular_property(pdp_type))) {
|
||||||
((pdp_type == IPV4V6_PDP_TYPE && (modem_supports_ipv4 || modem_supports_ipv6)) && !_nonip_req)) {
|
|
||||||
_pdp_type = pdp_type;
|
_pdp_type = pdp_type;
|
||||||
_cid = cid;
|
_cid = cid;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue