Bluetooth/shell: Clear subscription on gatt_unsubscribe()

Clear subscription allowing to test subscribe / unsubscribe in
sequence.

Change-Id: Ife8b994410107f05c23687e3fb23b4a81cad8ce7
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
Andrei Emeltchenko 2016-03-09 17:11:17 +02:00 committed by Johan Hedberg
parent 1ec4ec237b
commit 489b0ff793

View file

@ -1038,6 +1038,9 @@ static void cmd_gatt_unsubscribe(int argc, char *argv[])
} else {
printk("Unsubscribe success\n");
}
/* Clear subscribe_params to reuse it */
memset(&subscribe_params, 0, sizeof(subscribe_params));
}
static void auth_passkey_display(struct bt_conn *conn, unsigned int passkey)