Loading system/gd/hci/remote_name_request.cc +8 −2 Original line number Diff line number Diff line Loading @@ -156,15 +156,21 @@ struct RemoteNameRequestModule::impl { void on_remote_host_supported_features_notification(EventView view) { auto packet = RemoteHostSupportedFeaturesNotificationView::Create(view); ASSERT(packet.IsValid()); if (pending_) { if (pending_ && !on_remote_host_supported_features_notification_.IsEmpty()) { LOG_INFO( "Received REMOTE_HOST_SUPPORTED_FEATURES_NOTIFICATION from %s", packet.GetBdAddr().ToRedactedStringForLogging().c_str()); on_remote_host_supported_features_notification_.Invoke(packet.GetHostSupportedFeatures()); } else { // Remove the callback so that we won't call it again. on_remote_host_supported_features_notification_ = RemoteHostSupportedFeaturesCallback(); } else if (!pending_) { LOG_ERROR( "Received unexpected REMOTE_HOST_SUPPORTED_FEATURES_NOTIFICATION when no Remote Name " "Request is outstanding"); } else { // callback is not set, which indicates we have processed the feature notification. LOG_ERROR( "Received more than one REMOTE_HOST_SUPPORTED_FEATURES_NOTIFICATION during Remote Name " "Request"); } } Loading Loading
system/gd/hci/remote_name_request.cc +8 −2 Original line number Diff line number Diff line Loading @@ -156,15 +156,21 @@ struct RemoteNameRequestModule::impl { void on_remote_host_supported_features_notification(EventView view) { auto packet = RemoteHostSupportedFeaturesNotificationView::Create(view); ASSERT(packet.IsValid()); if (pending_) { if (pending_ && !on_remote_host_supported_features_notification_.IsEmpty()) { LOG_INFO( "Received REMOTE_HOST_SUPPORTED_FEATURES_NOTIFICATION from %s", packet.GetBdAddr().ToRedactedStringForLogging().c_str()); on_remote_host_supported_features_notification_.Invoke(packet.GetHostSupportedFeatures()); } else { // Remove the callback so that we won't call it again. on_remote_host_supported_features_notification_ = RemoteHostSupportedFeaturesCallback(); } else if (!pending_) { LOG_ERROR( "Received unexpected REMOTE_HOST_SUPPORTED_FEATURES_NOTIFICATION when no Remote Name " "Request is outstanding"); } else { // callback is not set, which indicates we have processed the feature notification. LOG_ERROR( "Received more than one REMOTE_HOST_SUPPORTED_FEATURES_NOTIFICATION during Remote Name " "Request"); } } Loading