android/handsfree: Add helper to check codec negotiation support
android/handsfree: Add helper to check codec negotiation support

This patch adds helper to test if codec negotiation is supported.

This patch fixes also logic behind that. So far we assumed that codec
negotiation is there if HFP HF does support it, even HFP AG does not
support it. It cause a problem with e.g. SLC creation in scenario where
HFP AG is not supporting codec negoctiation. In such a case we
incorrectly reply with ERROR on AT+CIND? because we incorretly expected
AT+BAC before that command. Issue found on UPF.

pstglia/external-bluetooth-bluez,mapfau/bluez,silent-snowman/bluez,silent-snowman/bluez,pkarasev3/bluez,pstglia/external-bluetooth-bluez,silent-snowman/bluez,pkarasev3/bluez,ComputeCycles/bluez,pkarasev3/bluez,ComputeCycles/bluez,pkarasev3/bluez,silent-snowman/bluez,pstglia/external-bluetooth-bluez,mapfau/bluez,ComputeCycles/bluez,mapfau/bluez,ComputeCycles/bluez,pstglia/external-bluetooth-bluez,mapfau/bluez