OSDN Git Service

android/pan: Add notify method to PAN notifications
authorRavi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
Wed, 13 Nov 2013 09:25:26 +0000 (11:25 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 13 Nov 2013 09:27:50 +0000 (11:27 +0200)
android/hal-pan.c
android/hal.h

index bec179f..851c5d2 100644 (file)
@@ -31,6 +31,12 @@ static bool interface_ready(void)
        return cbs != NULL;
 }
 
+void bt_notify_pan(uint8_t opcode, void *buf, uint16_t len)
+{
+       if (!interface_ready())
+               return;
+}
+
 static bt_status_t pan_enable(int local_role)
 {
        struct hal_cmd_pan_enable cmd;
index baa4754..72090fe 100644 (file)
@@ -31,3 +31,4 @@ void bt_thread_associate(void);
 void bt_thread_disassociate(void);
 void bt_notify_hidhost(uint8_t opcode, void *buf, uint16_t len);
 void bt_notify_a2dp(uint8_t opcode, void *buf, uint16_t len);
+void bt_notify_pan(uint8_t opcode, void *buf, uint16_t len);