-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow configuration of set_udub ril op #2
Open
Pekkari
wants to merge
1
commit into
mer-hybris:master
Choose a base branch
from
Pekkari:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ | |
#include "ril_vendor.h" | ||
#include "ril_devmon.h" | ||
#include "ril_log.h" | ||
#include "ril-constants.h" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I think you can just drop this line, this header must be included from elsewhere as |
||
|
||
#include <ofono/slot.h> | ||
#include <ofono/storage.h> | ||
|
@@ -100,6 +101,7 @@ | |
#define RILMODEM_DEFAULT_SLOT_FLAGS OFONO_SLOT_NO_FLAGS | ||
#define RILMODEM_DEFAULT_CELL_INFO_INTERVAL_SHORT_MS (2000) /* 2 sec */ | ||
#define RILMODEM_DEFAULT_CELL_INFO_INTERVAL_LONG_MS (30000) /* 30 sec */ | ||
#define RILMODEM_DEFAULT_RIL_REQUEST_ON_SET_UDUB RIL_REQUEST_UDUB | ||
|
||
/* RIL socket transport name and parameters */ | ||
#define RIL_TRANSPORT_MODEM "modem" | ||
|
@@ -160,6 +162,7 @@ | |
#define RILCONF_DEVMON "deviceStateTracking" | ||
#define RILCONF_CELL_INFO_INTERVAL_SHORT_MS "cellInfoIntervalShortMs" | ||
#define RILCONF_CELL_INFO_INTERVAL_LONG_MS "cellInfoIntervalLongMs" | ||
#define RILCONF_RIL_REQUEST_ON_SET_UDUB "rilRequestOnSetUdub" | ||
|
||
/* Modem error ids */ | ||
#define RIL_ERROR_ID_RILD_RESTART "rild-restart" | ||
|
@@ -1278,6 +1281,8 @@ static RilSlot *ril_plugin_slot_new_take(char *transport, | |
RILMODEM_DEFAULT_CELL_INFO_INTERVAL_SHORT_MS; | ||
config->cell_info_interval_long_ms = | ||
RILMODEM_DEFAULT_CELL_INFO_INTERVAL_LONG_MS; | ||
config->ril_request_on_set_udub = | ||
RILMODEM_DEFAULT_RIL_REQUEST_ON_SET_UDUB; | ||
slot->timeout = RILMODEM_DEFAULT_TIMEOUT; | ||
slot->sim_flags = RILMODEM_DEFAULT_SIM_FLAGS; | ||
slot->slot_flags = RILMODEM_DEFAULT_SLOT_FLAGS; | ||
|
@@ -1806,6 +1811,14 @@ static RilSlot *ril_plugin_parse_config_group(GKeyFile *file, | |
group, config->cell_info_interval_long_ms); | ||
} | ||
|
||
/* rilRequestOnSetUdub */ | ||
if (ril_config_get_integer(file, group, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Should be |
||
RILCONF_RIL_REQUEST_ON_SET_UDUB, | ||
&config->ril_request_on_set_udub)) { | ||
DBG("%s: " RILCONF_RIL_REQUEST_ON_SET_UDUB " %d", | ||
group, config->ril_request_on_set_udub); | ||
} | ||
|
||
/* Replace devmon with a new one with applied settings */ | ||
ril_devmon_free(slot->devmon); | ||
slot->devmon = NULL; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAICT the default for RIL_REQUEST_UDUB is 17, please mention that in a way similar to how it's done for other entries.