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

Commit c5a6eee7 authored by Dmitry Grinberg's avatar Dmitry Grinberg
Browse files

DO NOT MERGE: allow customization of sniff params

This completely overrides sniff params with hardcoded external values.
Yes, we understand this is not likely to be useful in ther real world.
This was requested by a vendor for power testing purposes.

Change-Id: Iaf03516752ea49fff2f0be28d5a4b27b039f1214
parent b482a0c4
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -783,6 +783,13 @@ BOOLEAN btsnd_hcic_sniff_mode (UINT16 handle, UINT16 max_sniff_period,
    BT_HDR *p;
    UINT8 *pp;

    #ifdef BDCFG_OVERRIDE_SNIFF_MODE_MAX
    max_sniff_period = BDCFG_OVERRIDE_SNIFF_MODE_MAX;
    min_sniff_period = BDCFG_OVERRIDE_SNIFF_MODE_MIN;
    sniff_attempt = BDCFG_OVERRIDE_SNIFF_MODE_ATTEMPT;
    sniff_timeout = BDCFG_OVERRIDE_SNIFF_MODE_TIMEOUT;
    #endif

    if ((p = HCI_GET_CMD_BUF(HCIC_PARAM_SIZE_SNIFF_MODE)) == NULL)
        return (FALSE);