Send a proper configuration when a source doesn't have a first reliable
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
@@ -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
Hi,
Quoted 9 lines · Santiago Carot-Nemesio
--- health/hdp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)health/hdp.c +0
-0
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