mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	bluez5: backend-native: Send error for not supported event only as AG
The HS/HF roles should not sent error messages, only commands.
This commit is contained in:
		
							parent
							
								
									9478414773
								
							
						
					
					
						commit
						b19c3501e7
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -1388,6 +1388,7 @@ static void rfcomm_process_events(struct rfcomm *rfcomm, char *buf, bool ag, boo
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (!handler(rfcomm, token)) {
 | 
							if (!handler(rfcomm, token)) {
 | 
				
			||||||
			spa_log_debug(backend->log, "RFCOMM received unsupported event: %s", token);
 | 
								spa_log_debug(backend->log, "RFCOMM received unsupported event: %s", token);
 | 
				
			||||||
 | 
								if (ag)
 | 
				
			||||||
				rfcomm_send_error(rfcomm, CMEE_OPERATION_NOT_SUPPORTED);
 | 
									rfcomm_send_error(rfcomm, CMEE_OPERATION_NOT_SUPPORTED);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue