Skip to contentSkip to conversation

Send a proper configuration when a source doesn't have a first reliable

PATCH In review Santiago Carot-Nemesio 2 participants 2 messages Oct 25, 2010 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Send a proper configuration when a source doesn't have a first reliable

---
 health/hdp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
health/hdp.c +1 -1
index fd3b1ca..10f4c5f 100644
@@ -1026,7 +1026,7 @@ static uint8_t hdp_mcap_mdl_conn_req_cb(struct mcap_mcl *mcl, uint8_t mdepid,
 	case HDP_NO_PREFERENCE_DC:
 		if (app->role == HDP_SINK)
 			return MCAP_CONFIGURATION_REJECTED;
-		else if (app->chan_type_set)
+		else if (dev->fr && app->chan_type_set)
 			*conf = app->chan_type;
 		else
 			*conf = HDP_RELIABLE_DC;
Signature · 1 line
1.7.3.1
#1 lore raw

Hi,

Quoted 9 lines · Santiago Carot-Nemesio
---
 health/hdp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
health/hdp.c +0 -0
index fd3b1ca..10f4c5f 100644

health/hdp.c static uint8_t hdp_mcap_mdl_conn_req_cb(struct mcap_mcl *mcl, uint8_t mdepid, · line 1032

Quoted 8 lines
health/hdp.c +1 -1
@@ -1026,7 +1026,7 @@ static uint8_t hdp_mcap_mdl_conn_req_cb(struct mcap_mcl *mcl, uint8_t mdepid,
 	case HDP_NO_PREFERENCE_DC:
 		if (app->role == HDP_SINK)
 			return MCAP_CONFIGURATION_REJECTED;
-		else if (app->chan_type_set)
+		else if (dev->fr && app->chan_type_set)
 			*conf = app->chan_type;
 		else
 			*conf = HDP_RELIABLE_DC;

Pushed upstream. Thanks.

Johan