OSDN Git Service

what on earth
authorZach Johnson <zachoverflow@google.com>
Wed, 19 Aug 2020 18:25:04 +0000 (11:25 -0700)
committerZach Johnson <zachoverflow@google.com>
Wed, 19 Aug 2020 18:32:10 +0000 (11:32 -0700)
commit1cf17942904cc483176b15f3cecae9d374bd0dc5
tree7942b40d5c8d7a2232f7d242415bb3b9f7935060
parent83c525631e22a1c29b2febbea3dcfd2cc6bddfea
what on earth

this has been here since this code was put into AOSP

"oh hey, PAN_Register changes discoverable and connectable, let's work
around it by saving the initial values and then restoring them after."

anyways, I checked PAN_Register only sets initial state & registers with
l2cap.

this looks like a vestige of early PAN, probably from BTA days when this
was on feature phones they needed a way to make your phone discoverable
so you could use PAN.

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: I51c3b864b5c7c4847bcc2dfb84e55b6191146778
bta/pan/bta_pan_act.cc
stack/pan/pan_api.cc