@@ -75,7 +75,7 @@ void bta_dm_init_pm(void)
7575{
7676 memset (& bta_dm_conn_srvcs , 0x00 , sizeof (bta_dm_conn_srvcs ));
7777
78- /* if there are no power manger entries, so not register */
78+ /* if there are no power manager entries, so not register */
7979 if (p_bta_dm_pm_cfg [0 ].app_id != 0 ) {
8080 bta_sys_pm_register ((tBTA_SYS_CONN_CBACK * )bta_dm_pm_cback );
8181
@@ -694,9 +694,9 @@ static BOOLEAN bta_dm_pm_sniff(tBTA_DM_PEER_DEVICE *p_peer_dev, UINT8 index)
694694#endif
695695 {
696696#if (BTM_SSR_INCLUDED == TRUE )
697- /* Dont initiate Sniff if controller has alreay accepted
697+ /* Dont initiate Sniff if controller has already accepted
698698 * remote sniff params. This avoid sniff loop issue with
699- * some agrresive headsets who use sniff latencies more than
699+ * some aggressive headsets who use sniff latencies more than
700700 * DUT supported range of Sniff intervals.*/
701701 if ((mode == BTM_PM_MD_SNIFF ) && (p_peer_dev -> info & BTA_DM_DI_ACP_SNIFF )) {
702702 APPL_TRACE_DEBUG ("%s: already in remote initiate sniff" , __func__ );
@@ -917,7 +917,7 @@ void bta_dm_pm_btm_status(tBTA_DM_MSG *p_data)
917917 } else {
918918#if (BTM_SSR_INCLUDED == TRUE )
919919 if (p_dev -> prev_low ) {
920- /* need to send the SSR paramaters to controller again */
920+ /* need to send the SSR parameters to controller again */
921921 bta_dm_pm_ssr (p_dev -> peer_bdaddr );
922922 }
923923 p_dev -> prev_low = BTM_PM_STS_ACTIVE ;
@@ -980,6 +980,7 @@ void bta_dm_pm_btm_status(tBTA_DM_MSG *p_data)
980980 ) {
981981 tBTA_DM_SEC conn ;
982982 conn .mode_chg .mode = p_data -> pm_status .status ;
983+ conn .mode_chg .interval = p_data -> pm_status .value ;
983984 bdcpy (conn .mode_chg .bd_addr , p_data -> pm_status .bd_addr );
984985 bta_dm_cb .p_sec_cback (BTA_DM_PM_MODE_CHG_EVT , (tBTA_DM_SEC * )& conn );
985986 }
0 commit comments