Hi,
Ya seccomp kernel config is missing and i built kernel snap adding that now bluetooth is working.
Thanks a lot for your support.
and one thing i observed was there is a crash when connected to ethernet or wifi. Then also everything is working fine. i just wanted to know root cause of that crash. Below is the crash log
55.811478] A link change request failed with some changes committed already. Interface wlan0 may have been left with an inconsistent configuration, please check.
[ 58.233851] systemd[1]: snap-repair.timer: Adding 1h 43min 17.449649s random time.
[ 58.233893] systemd[1]: snap-repair.timer: Adding 14min 42.270780s random time.
[ 58.235776] systemd[1]: snapd.refresh.timer: Adding 5h 24min 3.381145s random time.
[ 58.235814] systemd[1]: snapd.refresh.timer: Adding 5h 41min 45.529215s random time.
[ 58.665376] systemd[1]: snap-repair.timer: Adding 48min 7.306242s random time.
[ 58.665418] systemd[1]: snap-repair.timer: Adding 1h 19min 34.959540s random time.
[ 58.667317] systemd[1]: snapd.refresh.timer: Adding 3h 49min 57.527354s random time.
[ 58.667354] systemd[1]: snapd.refresh.timer: Adding 1h 15min 4.619772s random time.
[ 79.244603] DEBUG_LOCKS_WARN_ON(l->magic != l)
[ 79.244729] ------------[ cut here ]------------
[ 79.248125] WARNING: at kernel/locking/mutex.c:529
[ 79.252799] Modules linked in: wcn36xx smsc75xx wcn36xx_platform squashfs
[ 79.264257] CPU: 0 PID: 3107 Comm: netplan Not tainted 4.4.21-96boards+ #1
[ 79.265822] Hardware name: Qualcomm Technologies, Inc. APQ 8016 SBC (DT)
[ 79.272508] task: ffffffc030469500 ti: ffffffc0304ec000 task.ti: ffffffc0304ec000
[ 79.279370] PC is at mutex_lock_nested+0x370/0x3a8
[ 79.286741] LR is at mutex_lock_nested+0x370/0x3a8
[ 79.291428] pc : [] lr : [] pstate: 600001c5
[ 79.296205] sp : ffffffc0304ef9d0
[ 79.303751] x29: ffffffc0304ef9d0 x28: ffffffc033a778d8
[ 79.312082] x27: ffffffc0311e9808 x26: 0000000000000001
[ 79.317376] x25: ffffffc030469500 x24: ffffffc0311e8e30
[ 79.322672] x23: ffffffc001b08000 x22: ffffffc0311e9808
[ 79.327966] x21: 0000000000000140 x20: ffffffc0311ea2f8
[ 79.333262] x19: ffffffc0311ea300 x18: 0000000000000000
[ 79.338557] x17: 000000000000a4e6 x16: 000000000000a4e0
[ 79.343852] x15: 0000000000000010 x14: ffffffc081b08497
[ 79.349147] x13: ffffffc0313a5060 x12: ffffffc0009836b8
[ 79.354443] x11: 0000000000010101 x10: 0000000000000031
[ 79.359737] x9 : 000000000000000d x8 : 0000000000000264
[ 79.365031] x7 : 0000000000000001 x6 : ffffffc00010f9f0
[ 79.370328] x5 : 0000000000000000 x4 : 0000000000000001
[ 79.375623] x3 : 0000000000000000 x2 : 0000000000000000
[ 79.380917] x1 : ffffffc030469500 x0 : 0000000000000022
[ 79.386388] —[ end trace c8a6a215344122bb ]—
[ 79.387956] Call trace:
[ 79.392555] [] mutex_lock_nested+0x370/0x3a8
[ 79.394755] [] wcn36xx_smd_delete_sta_self+0x28/0xf0 [wcn36xx]
[ 79.400654] [] wcn36xx_remove_interface+0x4c/0x78 [wcn36xx]
[ 79.408187] [] drv_remove_interface+0x28/0x70
[ 79.415216] [] ieee80211_do_stop+0x488/0x6f8
[ 79.420945] [] ieee80211_stop+0x14/0x20
[ 79.426849] [] __dev_close_many+0x84/0xd0
[ 79.432315] [] dev_close_many+0x74/0xf8
[ 79.437698] [] dev_close.part.15+0x28/0x40
[ 79.443254] [] dev_close+0x1c/0x28
[ 79.448984] [] cfg80211_shutdown_all_interfaces+0x3c/0xb8
[ 79.453932] [] ieee80211_remove_interfaces+0x3c/0x1c0
[ 79.460616] [] ieee80211_unregister_hw+0x50/0x108
[ 79.467234] [] wcn36xx_remove+0x38/0x78 [wcn36xx]
[ 79.473463] [] platform_drv_remove+0x24/0x58
[ 79.479714] [] __device_release_driver+0x80/0x108
[ 79.485616] [] device_release_driver+0x28/0x40
[ 79.491778] [] unbind_store+0xec/0x110
[ 79.498028] [] drv_attr_store+0x20/0x30
[ 79.503324] [] sysfs_kf_write+0x60/0x70
[ 79.508618] [] kernfs_fop_write+0x15c/0x1a0
[ 79.514003] [] __vfs_write+0x18/0x40
[ 79.519728] [] vfs_write+0x90/0x1b8
[ 79.524763] [] SyS_write+0x44/0xa0
[ 79.529885] [] el0_svc_naked+0x24/0x28
[ 79.623094] wcn36xx wcn36xx: Direct firmware load for wlan/macaddr0 failed with error -2
[ 79.623318] wcn36xx wcn36xx: Failed (-2) to read macaddressfile wlan/macaddr0, using a random address instead
Thanks