OSDN Git Service

lib: Avoid using HCI_MAX_NAME_LENGTH in management header
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 1 Jan 2013 01:09:52 +0000 (17:09 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 1 Jan 2013 01:09:52 +0000 (17:09 -0800)
lib/mgmt.h

index 6c7e44a..e28005e 100644 (file)
@@ -79,7 +79,7 @@ struct mgmt_rp_read_index_list {
 
 /* Reserve one extra byte for names in management messages so that they
  * are always guaranteed to be nul-terminated */
-#define MGMT_MAX_NAME_LENGTH           (HCI_MAX_NAME_LENGTH + 1)
+#define MGMT_MAX_NAME_LENGTH           (248 + 1)
 #define MGMT_MAX_SHORT_NAME_LENGTH     (10 + 1)
 
 #define MGMT_SETTING_POWERED           0x00000001