Skip to content

Commit 6380d88

Browse files
author
Cruz Monrreal
authored
Merge pull request #9101 from jarvte/fix_pppmode_wrong_stack
Cellular: Fix to use PPP stack in PPP mode
2 parents 3b138fb + fc4ed93 commit 6380d88

File tree

5 files changed

+9
-0
lines changed

5 files changed

+9
-0
lines changed

features/cellular/framework/targets/QUECTEL/BC95/QUECTEL_BC95_CellularContext.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,15 @@ QUECTEL_BC95_CellularContext::~QUECTEL_BC95_CellularContext()
2828
{
2929
}
3030

31+
#if !NSAPI_PPP_AVAILABLE
3132
NetworkStack *QUECTEL_BC95_CellularContext::get_stack()
3233
{
3334
if (!_stack) {
3435
_stack = new QUECTEL_BC95_CellularStack(_at, _cid, _ip_stack_type);
3536
}
3637
return _stack;
3738
}
39+
#endif // #if !NSAPI_PPP_AVAILABLE
3840

3941
bool QUECTEL_BC95_CellularContext::stack_type_supported(nsapi_ip_stack_t stack_type)
4042
{

features/cellular/framework/targets/QUECTEL/BC95/QUECTEL_BC95_CellularContext.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ class QUECTEL_BC95_CellularContext: public AT_CellularContext {
2727
virtual ~QUECTEL_BC95_CellularContext();
2828

2929
protected:
30+
#if !NSAPI_PPP_AVAILABLE
3031
virtual NetworkStack *get_stack();
32+
#endif // #if !NSAPI_PPP_AVAILABLE
3133
virtual bool stack_type_supported(nsapi_ip_stack_t stack_type);
3234
};
3335

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ using namespace events;
3434

3535
static const AT_CellularBase::SupportedFeature unsupported_features[] = {
3636
AT_CellularBase::AT_CGSN_WITH_TYPE,
37+
AT_CellularBase::AT_CGDATA,
3738
AT_CellularBase::SUPPORTED_FEATURE_END_MARK
3839
};
3940

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,15 @@ bool QUECTEL_BG96_CellularContext::stack_type_supported(nsapi_ip_stack_t stack_t
3636
return false;
3737
}
3838

39+
#if !NSAPI_PPP_AVAILABLE
3940
NetworkStack *QUECTEL_BG96_CellularContext::get_stack()
4041
{
4142
if (!_stack) {
4243
_stack = new QUECTEL_BG96_CellularStack(_at, _cid, _ip_stack_type);
4344
}
4445
return _stack;
4546
}
47+
#endif // #if !NSAPI_PPP_AVAILABLE
4648

4749
nsapi_error_t QUECTEL_BG96_CellularContext::do_user_authentication()
4850
{

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ class QUECTEL_BG96_CellularContext: public AT_CellularContext {
2828

2929
protected:
3030
virtual bool stack_type_supported(nsapi_ip_stack_t stack_type);
31+
#if !NSAPI_PPP_AVAILABLE
3132
virtual NetworkStack *get_stack();
33+
#endif // #if !NSAPI_PPP_AVAILABLE
3234
virtual nsapi_error_t do_user_authentication();
3335
};
3436

0 commit comments

Comments
 (0)