Commit 10906e20 authored by Chippa-a's avatar Chippa-a Committed by Bernhard Thoben
Browse files

kitakami-common: libril: Use dispatchStrings for auto/manual network selection request

Based on "dispatchNetworkManual" introduced by
Adrian Ulrich (adrian-bl-yuga) and which was used
till Android O RIL stack.

[HenningJW]: Apply for automatic network selection too

Change-Id: I85433f2a4f94690c1dd2a742f0b1c39aba360cd6
parent 81aa60f4
......@@ -1352,7 +1352,7 @@ Return<void> RadioImpl::setNetworkSelectionModeAutomatic(int32_t serial) {
#if VDBG
RLOGD("setNetworkSelectionModeAutomatic: serial %d", serial);
#endif
dispatchVoid(serial, mSlotId, RIL_REQUEST_SET_NETWORK_SELECTION_AUTOMATIC);
dispatchStrings(serial, mSlotId, RIL_REQUEST_SET_NETWORK_SELECTION_AUTOMATIC, 0);
return Void();
}
......@@ -1362,13 +1362,13 @@ Return<void> RadioImpl::setNetworkSelectionModeManual(int32_t serial,
RLOGD("setNetworkSelectionModeManual: serial %d", serial);
#endif
#ifndef OLD_MNC_FORMAT
dispatchString(serial, mSlotId, RIL_REQUEST_SET_NETWORK_SELECTION_MANUAL,
operatorNumeric.c_str());
dispatchStrings(serial, mSlotId, RIL_REQUEST_SET_NETWORK_SELECTION_MANUAL, true,
1, operatorNumeric.c_str());
#else
std::string opNum = operatorNumeric;
opNum.append("+");
dispatchString(serial, mSlotId, RIL_REQUEST_SET_NETWORK_SELECTION_MANUAL,
opNum.c_str());
dispatchStrings(serial, mSlotId, RIL_REQUEST_SET_NETWORK_SELECTION_MANUAL, true,
1, opNum.c_str());
#endif
return Void();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment