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

Commit ca26aeae authored by Andre Eisenbach's avatar Andre Eisenbach
Browse files

Add server-side callback for change in MTU (2/4)

When a client requests to update the LE transport MTU, the server
currently does not get notified and can therefor not properly size
notifications appropriate to the current MTU.

Bug: 18388114
Change-Id: Ice355f8919d4f69876574df1d90ce7d31f42bc4f
parent 49353a82
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -335,6 +335,12 @@ static void btapp_gatts_handle_cback(uint16_t event, char* p_param)
            break;

        case BTA_GATTS_MTU_EVT:
            HAL_CBACK(bt_gatt_callbacks, server->mtu_changed_cb
                , p_data->req_data.conn_id
                , p_data->req_data.p_data->mtu
            );
            break;

        case BTA_GATTS_OPEN_EVT:
        case BTA_GATTS_CANCEL_OPEN_EVT:
        case BTA_GATTS_CLOSE_EVT: