Skip to content

Commit 65cabbc

Browse files
committed
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
1 parent 0f94319 commit 65cabbc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

radio/config/1.1-wrapper/RadioConfig.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,10 @@ Return<void> RadioConfig::setPreferredDataModem(int32_t serial, uint8_t modemId)
144144
radioError = RadioError::INVALID_ARGUMENTS;
145145
} else {
146146
for (uint8_t i = 0; i < radios.size(); i++) {
147-
radios[i]->setDataAllowed(-1, i == modemId);
147+
if (i != modemId) radios[i]->setDataAllowed(-1, false);
148148
}
149+
150+
radios[modemId]->setDataAllowed(-1, true);
149151
}
150152

151153
auto radioConfigResponseV1_1 = mRadioConfigResponseV1_1;

0 commit comments

Comments
 (0)