Bluetooth: Add helper function for clearing the discovery filter
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 5 Dec 2014 10:45:21 +0000 (11:45 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 5 Dec 2014 11:12:58 +0000 (13:12 +0200)
commit0256325ed666af8346c89deb9d437c2209f463cb
tree57c63cb418cf1470b07420326d3d5583e99cd34a
parent66ea9427e08cb0a856006012b15e6b93ce379115
Bluetooth: Add helper function for clearing the discovery filter

The discovery filter allocates memory for its UUID list. So use
a helper function to free it and reset it to default states.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_core.c