Skip to content
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

[rilbinder] Implement setupDataCall_1_4. JB#55388 #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mlehtima
Copy link
Contributor

@mlehtima mlehtima commented Sep 3, 2021

Fixes 2G data calls on some devices using [email protected] interface. Requires configuration change to enable [email protected] interface for example "transport=binder:name=slot1;[email protected]".in /etc/ofono/ril_subscription.conf.

ril_binder_radio_take_string(out, &profile->user, user);
ril_binder_radio_take_string(out, &profile->password, password);

RADIO_PDP_PROTOCOL_TYPE protocol = RADIO_PDP_PROTOCOL_UNKNOWN;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like out-of-order declaration, which is not quite C

ril_binder_radio_take_string(out, &profile->password, password);

RADIO_PDP_PROTOCOL_TYPE protocol = RADIO_PDP_PROTOCOL_UNKNOWN;
if (g_strcmp0(proto, "IPV6") == 0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add {} around if blocks for consistency

}

ran = RADIO_ACCESS_NETWORK_UNKNOWN;
switch ((RADIO_TECH)tech) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this mapping different from the one in ril_binder_radio_encode_setup_data_call_1_2()? If not, please move it to a separate function and call it from both places.

Copy link
Contributor

@monich monich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit too much copy-paste to my liking but LGTM if it works (haven't tested)

Fixes 2G data calls on some devices using [email protected] interface.
@Flohack74
Copy link

We got feedback from one user that this does not solve the problem, but we will try to collect more feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants