radio: config: 1.1-wrapper: Enable mobile data at last
* This fixes mobile data for a user who have Redmi 3S (running latest
global firmware) with single SIM on SIM1 slot
(it doesn't happen for me and the others, though)
* Logically, Enabling stuff after disabling finishes should be safer
Change-Id: I1bc84f8d4a4a449cb478143b01adf9cc2a4db6de
diff --git a/radio/config/1.1-wrapper/RadioConfig.cpp b/radio/config/1.1-wrapper/RadioConfig.cpp
index b3f1674..a4682b3 100644
--- a/radio/config/1.1-wrapper/RadioConfig.cpp
+++ b/radio/config/1.1-wrapper/RadioConfig.cpp
@@ -144,8 +144,10 @@
radioError = RadioError::INVALID_ARGUMENTS;
} else {
for (uint8_t i = 0; i < radios.size(); i++) {
- radios[i]->setDataAllowed(-1, i == modemId);
+ if (i != modemId) radios[i]->setDataAllowed(-1, false);
}
+
+ radios[modemId]->setDataAllowed(-1, true);
}
auto radioConfigResponseV1_1 = mRadioConfigResponseV1_1;