Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bugfix] Power manager now uses the last used profile_id to determine…
… the pm_action, instead of the first profile in the g_pm_cfg table. bug: v/50506 Rootcause: For example, if the previous SPP profile request entered idle mode, the device will enter sniff mode after 1 second. However, if the peer device later requests entering active mode, the power manager will query `g_pm_cfg` to find the matching current action and get the AG's `pm_action`. This results in using the AG's idle timeout of 7 seconds. But at this point, we want the power manager to use the SPP profile's `pm_action` with a timeout of 1 second. Signed-off-by: zhongzhijie1 <[email protected]>
- Loading branch information