summaryrefslogtreecommitdiffstats
path: root/btif/co
diff options
context:
space:
mode:
authorzzy <zhenye@broadcom.com>2012-05-21 11:08:53 -0700
committerMatthew Xie <mattx@google.com>2012-07-14 11:19:21 -0700
commit2672151d36df40cd06b4fbed26d1ee8c7e85c72f (patch)
treebea4cec1fed4e27569f6b29d3a8cf60fccc584aa /btif/co
parentc31ac09a04a4aa3319e0cff85b92f5b2a92b16c9 (diff)
downloadexternal_bluetooth_bluedroid-2672151d36df40cd06b4fbed26d1ee8c7e85c72f.zip
external_bluetooth_bluedroid-2672151d36df40cd06b4fbed26d1ee8c7e85c72f.tar.gz
external_bluetooth_bluedroid-2672151d36df40cd06b4fbed26d1ee8c7e85c72f.tar.bz2
disable pan nap for wingray and misc fixes
Diffstat (limited to 'btif/co')
-rw-r--r--btif/co/bta_pan_co.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/btif/co/bta_pan_co.c b/btif/co/bta_pan_co.c
index ec6d44e..1b6da4f 100644
--- a/btif/co/bta_pan_co.c
+++ b/btif/co/bta_pan_co.c
@@ -175,8 +175,11 @@ void bta_pan_co_close(UINT16 handle, UINT8 app_id)
if(btpan_cb.open_count == 0)
{
destroy_tap_read_thread();
- btpan_tap_close(btpan_cb.tap_fd);
- btpan_cb.tap_fd = -1;
+ if(btpan_cb.tap_fd != -1)
+ {
+ btpan_tap_close(btpan_cb.tap_fd);
+ btpan_cb.tap_fd = -1;
+ }
}
}
}