diff options
author | Hyuk Lee <hyuk0512.lee@samsung.com> | 2016-09-09 12:55:46 +0900 |
---|---|---|
committer | Hyuk Lee <hyuk0512.lee@samsung.com> | 2016-09-09 17:01:17 +0900 |
commit | cd35ffd79d39e7e86870c054984f05a3e19825a6 (patch) | |
tree | 96690f1ae549554550f2d80306d234510281e2ff /profiles | |
parent | a6030ea205362915303ebd25d224e33f909fd5c7 (diff) | |
download | bluez-cd35ffd79d39e7e86870c054984f05a3e19825a6.tar.gz bluez-cd35ffd79d39e7e86870c054984f05a3e19825a6.tar.bz2 bluez-cd35ffd79d39e7e86870c054984f05a3e19825a6.zip |
Restricted connection when request come from remoted audio devicesubmit/tizen/20160912.055637submit/tizen/20160912.033649accepted/tizen/wearable/20160913.041753accepted/tizen/tv/20160913.041732accepted/tizen/mobile/20160913.041719accepted/tizen/ivi/20160913.041814accepted/tizen/common/20160912.181444
Change-Id: Ic9bf302bdf3af5355979e781c9ef2a3bf1a5e019
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
Diffstat (limited to 'profiles')
-rw-r--r-- | profiles/audio/a2dp.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/profiles/audio/a2dp.c b/profiles/audio/a2dp.c index 47f6be91..1844f331 100644 --- a/profiles/audio/a2dp.c +++ b/profiles/audio/a2dp.c @@ -1551,6 +1551,18 @@ static void confirm_cb(GIOChannel *io, gpointer data) if (!device) goto drop; +#ifdef __TIZEN_PATCH__ +{ + gboolean restricted = FALSE; + + restricted = device_is_profile_restricted(device, A2DP_SINK_UUID); + if (restricted) { + DBG("A2DP is restricted"); + goto drop; + } +} +#endif + chan = queue_find(server->channels, match_by_device, device); if (chan) { struct a2dp_setup *setup; |