Reject new rfcomm connection when DPM disallow it 13/97513/1
authorSeungyoun Ju <sy39.ju@samsung.com>
Fri, 14 Oct 2016 05:22:17 +0000 (14:22 +0900)
committerSudha Bheemanna <b.sudha@samsung.com>
Mon, 14 Nov 2016 10:30:52 +0000 (16:00 +0530)
commitc0b9a722d345fbd2c59cccd298bb89a981faa24a
tree8b920769d8adaae15d7395135ea022cdb6239087
parent14054febb93ce9b5a2259745e29d9d069cc96158
Reject new rfcomm connection when DPM disallow it

[Model] COMMON
[BinType] AP
[Customer] OPEN

[Issue#] P161013-00685
[Request] PLM
[Occurrence Version] R735AUCU2CPJ3

Code modified according to DPM poliy.

[Problem] After SPP MDM policy is restricted and the device is rebooted,
 service daemon cannot create RFCOMM server socket. But it cannot know
 when MDM policy is changed to "allowed". So until BT is turned off and
 on, related service cannot run.
[Cause & Measure] RFCOMM server socket creation / listen / accept
operations are blocked by MDM. But it is better to block new
connections. So that, service layer doesn't need to consider MDM policy.
[Checking Method] Restrict SPP MDM Policy -> Reboot -> Allow SPP MDM
policy -> Check service (sapd) working state.

[Team] Basic connection
[Developer] Seungyoun Ju
[Solution company] Samsung
[Change Type] Specification change

Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Change-Id: Ie12949dde1f9fc50adb5fb86325de9a7da00fb8f
bt-api/bt-rfcomm-client.c
bt-api/bt-rfcomm-server.c