File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
features/cellular/framework
targets/GEMALTO/CINTERION Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -378,9 +378,8 @@ bool AT_CellularContext::get_context()
378
378
// APN matched -> Check PDP type
379
379
pdp_type_t pdp_type = string_to_pdp_type (pdp_type_from_context);
380
380
381
- // Accept exact matching PDP context type or dual PDP context for IPv4/IPv6 only modems
382
- if (get_property (pdp_type_t_to_cellular_property (pdp_type)) ||
383
- ((pdp_type == IPV4V6_PDP_TYPE && (modem_supports_ipv4 || modem_supports_ipv6)) && !_nonip_req)) {
381
+ // Accept exact matching PDP context type
382
+ if (get_property (pdp_type_t_to_cellular_property (pdp_type))) {
384
383
_pdp_type = pdp_type;
385
384
_cid = cid;
386
385
}
Original file line number Diff line number Diff line change @@ -290,8 +290,9 @@ nsapi_size_or_error_t GEMALTO_CINTERION_CellularStack::socket_sendto_impl(Cellul
290
290
{
291
291
if (socket->proto == NSAPI_UDP) {
292
292
const int ip_version = address.get_ip_version ();
293
- if ((ip_version == NSAPI_IPv4 && _stack_type != IPV4_STACK) ||
294
- (ip_version == NSAPI_IPv6 && _stack_type != IPV6_STACK)) {
293
+ if (_stack_type != IPV4V6_STACK &&
294
+ ((ip_version == NSAPI_IPv4 && _stack_type != IPV4_STACK) ||
295
+ (ip_version == NSAPI_IPv6 && _stack_type != IPV6_STACK))) {
295
296
tr_warn (" No IP route for %s" , address.get_ip_address ());
296
297
return NSAPI_ERROR_NO_SOCKET;
297
298
}
You can’t perform that action at this time.
0 commit comments