Skip to content

Commit 5082eb0

Browse files
committed
BG96 CELLULAR : check context_type value
1 parent 91464b2 commit 5082eb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/cellular/framework/targets/QUECTEL/BG96/QUECTEL_BG96_CellularContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ ControlPlane_netif *QUECTEL_BG96_CellularContext::get_cp_netif()
7070
nsapi_error_t QUECTEL_BG96_CellularContext::do_user_authentication()
7171
{
7272
uint8_t type = (uint8_t)_pdp_type;
73-
if ((uint8_t)_pdp_type < 1) {
73+
if (((uint8_t)_pdp_type < 1) || ((uint8_t)_pdp_type > 2)) {
7474
type = 1;
7575
}
7676

0 commit comments

Comments
 (0)