Skip to content

Commit 184caf8

Browse files
authored
Merge pull request #20 from xiangxistu/master
[fix] modify ppp macro defined
2 parents 91eb196 + c89bd7d commit 184caf8

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

inc/ppp_device.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#endif
2525

2626
#define PPP_DAIL_CMD "ATD*99#" /* common dailing cmd */
27-
#ifndef USING_PUBLIC_APN
27+
#ifndef PPP_USING_PUBLIC_APN
2828
#define PPP_APN_CMD "AT+CGDCONT=1,\"IP\","PPP_PRIVATE_APN
2929
#else
3030
#ifdef PPP_APN_CMCC
@@ -46,8 +46,8 @@
4646
#define PPP_DROP_BUF PPP_FRAME_MAX
4747

4848

49-
#define PPP_DEVICE_SW_VERSION "1.1.1"
50-
#define PPP_DEVICE_SW_VERSION_NUM 0x10101
49+
#define PPP_DEVICE_SW_VERSION "1.1.0"
50+
#define PPP_DEVICE_SW_VERSION_NUM 0x10100
5151

5252
enum ppp_trans_type
5353
{

src/ppp_device.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,10 +586,10 @@ static rt_err_t ppp_device_open(struct rt_device *device, rt_uint16_t oflag)
586586
ppp_set_usepeerdns(ppp_device->pcb, 1);
587587
LOG_D("ppp_set_usepeerdns has set a dns number.");
588588

589-
#ifdef USING_PRIVATE_APN
589+
#ifdef PPP_USING_PRIVATE_APN
590590
/* set authorize */
591591
#if PAP_SUPPORT
592-
ppp_set_auth(ppp_device->pcb , PPPAUTHTYPE_PAP, PRIVATE_APN_ACCOUNT, PRIVATE_APN_PASSWORD);
592+
ppp_set_auth(ppp_device->pcb , PPPAUTHTYPE_PAP, PPP_PRIVATE_APN_ACCOUNT, PPP_PRIVATE_APN_PASSWORD);
593593
#elif CHAP_SUPPORT
594594
ppp_set_auth(ppp_device->pcb, PPPAUTHTYPE_CHAP, ppp_device->config.user_name, ppp_device->config.user_name);
595595
#else

0 commit comments

Comments
 (0)