mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #9101 from jarvte/fix_pppmode_wrong_stack
Cellular: Fix to use PPP stack in PPP modepull/9131/head
commit
6380d8826e
|
@ -28,6 +28,7 @@ QUECTEL_BC95_CellularContext::~QUECTEL_BC95_CellularContext()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !NSAPI_PPP_AVAILABLE
|
||||||
NetworkStack *QUECTEL_BC95_CellularContext::get_stack()
|
NetworkStack *QUECTEL_BC95_CellularContext::get_stack()
|
||||||
{
|
{
|
||||||
if (!_stack) {
|
if (!_stack) {
|
||||||
|
@ -35,6 +36,7 @@ NetworkStack *QUECTEL_BC95_CellularContext::get_stack()
|
||||||
}
|
}
|
||||||
return _stack;
|
return _stack;
|
||||||
}
|
}
|
||||||
|
#endif // #if !NSAPI_PPP_AVAILABLE
|
||||||
|
|
||||||
bool QUECTEL_BC95_CellularContext::stack_type_supported(nsapi_ip_stack_t stack_type)
|
bool QUECTEL_BC95_CellularContext::stack_type_supported(nsapi_ip_stack_t stack_type)
|
||||||
{
|
{
|
||||||
|
|
|
@ -27,7 +27,9 @@ public:
|
||||||
virtual ~QUECTEL_BC95_CellularContext();
|
virtual ~QUECTEL_BC95_CellularContext();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
#if !NSAPI_PPP_AVAILABLE
|
||||||
virtual NetworkStack *get_stack();
|
virtual NetworkStack *get_stack();
|
||||||
|
#endif // #if !NSAPI_PPP_AVAILABLE
|
||||||
virtual bool stack_type_supported(nsapi_ip_stack_t stack_type);
|
virtual bool stack_type_supported(nsapi_ip_stack_t stack_type);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -34,6 +34,7 @@ using namespace events;
|
||||||
|
|
||||||
static const AT_CellularBase::SupportedFeature unsupported_features[] = {
|
static const AT_CellularBase::SupportedFeature unsupported_features[] = {
|
||||||
AT_CellularBase::AT_CGSN_WITH_TYPE,
|
AT_CellularBase::AT_CGSN_WITH_TYPE,
|
||||||
|
AT_CellularBase::AT_CGDATA,
|
||||||
AT_CellularBase::SUPPORTED_FEATURE_END_MARK
|
AT_CellularBase::SUPPORTED_FEATURE_END_MARK
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,7 @@ bool QUECTEL_BG96_CellularContext::stack_type_supported(nsapi_ip_stack_t stack_t
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !NSAPI_PPP_AVAILABLE
|
||||||
NetworkStack *QUECTEL_BG96_CellularContext::get_stack()
|
NetworkStack *QUECTEL_BG96_CellularContext::get_stack()
|
||||||
{
|
{
|
||||||
if (!_stack) {
|
if (!_stack) {
|
||||||
|
@ -43,6 +44,7 @@ NetworkStack *QUECTEL_BG96_CellularContext::get_stack()
|
||||||
}
|
}
|
||||||
return _stack;
|
return _stack;
|
||||||
}
|
}
|
||||||
|
#endif // #if !NSAPI_PPP_AVAILABLE
|
||||||
|
|
||||||
nsapi_error_t QUECTEL_BG96_CellularContext::do_user_authentication()
|
nsapi_error_t QUECTEL_BG96_CellularContext::do_user_authentication()
|
||||||
{
|
{
|
||||||
|
|
|
@ -28,7 +28,9 @@ public:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool stack_type_supported(nsapi_ip_stack_t stack_type);
|
virtual bool stack_type_supported(nsapi_ip_stack_t stack_type);
|
||||||
|
#if !NSAPI_PPP_AVAILABLE
|
||||||
virtual NetworkStack *get_stack();
|
virtual NetworkStack *get_stack();
|
||||||
|
#endif // #if !NSAPI_PPP_AVAILABLE
|
||||||
virtual nsapi_error_t do_user_authentication();
|
virtual nsapi_error_t do_user_authentication();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue