equal
deleted
inserted
replaced
2790 |
2790 |
2791 //Start a 5-minute window for active mode |
2791 //Start a 5-minute window for active mode |
2792 void CAutoSniffDelayTimer::StartActive() |
2792 void CAutoSniffDelayTimer::StartActive() |
2793 { |
2793 { |
2794 Start(); |
2794 Start(); |
2795 if(iSniffModeRequested) |
2795 // When enabling auto sniffing, we make use of Explicit active mode. |
2796 { |
2796 (void)MbbhBTBaseband().RequestExplicitActiveMode(ETrue); |
2797 // When enabling auto sniffing, we make use of Explicit active mode. |
|
2798 (void)MbbhBTBaseband().RequestExplicitActiveMode(ETrue); |
|
2799 } |
|
2800 } |
2797 } |
2801 |
2798 |
2802 RBTBaseband& CAutoSniffDelayTimer::MbbhBTBaseband() |
2799 RBTBaseband& CAutoSniffDelayTimer::MbbhBTBaseband() |
2803 { |
2800 { |
2804 return iBTAutoSniffBaseband; |
2801 return iBTAutoSniffBaseband; |
2812 // sniff mode, then it is up to us to cancel the sniff |
2809 // sniff mode, then it is up to us to cancel the sniff |
2813 // requester to prevent the ping-pong effect. |
2810 // requester to prevent the ping-pong effect. |
2814 if(iSniffModeRequested) |
2811 if(iSniffModeRequested) |
2815 { |
2812 { |
2816 MbbhBTBaseband().CancelLowPowerModeRequester(); |
2813 MbbhBTBaseband().CancelLowPowerModeRequester(); |
2817 StartActive(); |
2814 iSniffModeRequested = EFalse; |
2818 } |
2815 } |
2819 } |
2816 } |
2820 __ASSERT_ALWAYS(iBTAutoSniffBasebandChangeEventNotifier != NULL, Panic(EBBInvalidAddress)); |
2817 __ASSERT_ALWAYS(iBTAutoSniffBasebandChangeEventNotifier != NULL, Panic(EBBInvalidAddress)); |
2821 iBTAutoSniffBasebandChangeEventNotifier->SetNotify(ENotifyActiveMode); |
2818 iBTAutoSniffBasebandChangeEventNotifier->SetNotify(ENotifyActiveMode); |
2822 } |
2819 } |