Skip to content

Commit e13d792

Browse files
author
Antti Kauppila
authored
Merge pull request #9 from AnttiKauppila/apn-lookup-disabling
Apn lookup disabling
2 parents dfed4bb + 35b83cd commit e13d792

File tree

3 files changed

+6
-17
lines changed

3 files changed

+6
-17
lines changed

features/cellular/framework/AT/AT_CellularContext.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,10 @@
3636
#include "nsapi_ppp.h"
3737
#endif
3838

39-
#define USE_APN_LOOKUP (MBED_CONF_CELLULAR_USE_APN_LOOKUP || (NSAPI_PPP_AVAILABLE && MBED_CONF_PPP_CELL_IFACE_APN_LOOKUP))
40-
41-
#if USE_APN_LOOKUP
39+
#if MBED_CONF_CELLULAR_USE_APN_LOOKUP
4240
#include "CellularInformation.h"
4341
#include "APN_db.h"
44-
#endif //USE_APN_LOOKUP
42+
#endif //MBED_CONF_CELLULAR_USE_APN_LOOKUP
4543

4644
using namespace mbed_cellular_util;
4745
using namespace mbed;
@@ -917,7 +915,7 @@ void AT_CellularContext::cellular_callback(nsapi_event_t ev, intptr_t ptr)
917915
_semaphore.release();
918916
}
919917
}
920-
#if USE_APN_LOOKUP
918+
#if MBED_CONF_CELLULAR_USE_APN_LOOKUP
921919
if (st == CellularSIMStatusChanged && data->status_data == CellularDevice::SimStateReady &&
922920
_cb_data.error == NSAPI_ERROR_OK) {
923921
if (!_apn) {
@@ -946,7 +944,7 @@ void AT_CellularContext::cellular_callback(nsapi_event_t ev, intptr_t ptr)
946944
_device->close_information();
947945
}
948946
}
949-
#endif // USE_APN_LOOKUP
947+
#endif // MBED_CONF_CELLULAR_USE_APN_LOOKUP
950948

951949
if (!_nw && st == CellularDeviceReady && _cb_data.error == NSAPI_ERROR_OK) {
952950
_nw = _device->open_network(_fh);

features/cellular/mbed_lib.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
"config": {
44
"use-apn-lookup": {
55
"help": "Use APN database lookup",
6-
"value": true
6+
"value": false
77
},
88
"use-sms": {
99
"help": "Enable or disable SMS functionality in Cellular stack.",
10-
"value": true
10+
"value": false
1111
},
1212
"random_max_start_delay": {
1313
"help": "Maximum random delay value used in start-up sequence in milliseconds",

features/netsocket/cellular/mbed_lib.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)