Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1705e5a3 authored by Brian Delwiche's avatar Brian Delwiche Committed by Gerrit Code Review
Browse files

Merge "Add handling for first-time mtu exchange value" into main

parents 307a65f1 87d21632
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1127,6 +1127,8 @@ void gatt_process_mtu_rsp(tGATT_TCB& tcb, tGATT_CLCB* p_clcb, uint16_t len,
    if (tcb.pending_user_mtu_exchange_value > tcb.max_user_mtu) {
      tcb.max_user_mtu =
          std::min(tcb.pending_user_mtu_exchange_value, tcb.payload_size);
    } else if (tcb.pending_user_mtu_exchange_value == 0) {
      tcb.max_user_mtu = tcb.payload_size;
    }
    tcb.pending_user_mtu_exchange_value = 0;