Ticket #53 (closed defect: fixed)

Opened 7 months ago

Last modified 6 months ago

CreateDevice - Case-sensitive device path

Reported by: cktakahasi Assigned to: cidoca
Priority: major Milestone: Sprint 5
Component: core Version: 3.31
Keywords: Cc:
Estimated Number of Hours: 0 Add Hours to Ticket: 0
Billable?: 0 Total Hours: 1.0

Description (Last modified by cktakahasi)

Device's address is used to create the DBus(device) path. When CreateDevice? is called the address argument is used to compose the path without convert it to uppercase.

Side-effects: No path standard and different path address when the hcid restarts.

See the following log:

hcid[25566]: Removing device /hci0/dev_00_1B_63_59_3C_44
hcid[25566]: Removing device /hci0/dev_00_19_DB_99_76_E3
hcid[25566]: Removing device /hci0/dev_00_1C_9A_2B_3C_F2
hcid[25566]: Removing device /hci0/dev_00_15_F7_20_08_90
hcid[25566]: Removing device /hci0/dev_00_80_98_c4_81_ff
hcid[25566]: Removing device /hci0/dev_00_13_46_00_A5_e4
hcid[25566]: Exit
cktakahasi@krau-note:~/Work/utils-cvs/hcid$ sudo ./hcid -dnx
hcid[25598]: Bluetooth HCI daemon
hcid[25598]: Enabling debug information
hcid[25598]: Registering experimental manager path
hcid[25598]: Registering experimental manager interface
hcid[25598]: HCI dev 0 registered
hcid[25598]: HCI dev 0 already up
hcid[25598]: Device hci0 has been added
hcid[25598]: Starting security manager 0
hcid[25598]: Device hci0 has been activated
hcid[25598]: Creating device /hci0/dev_00_15_F7_20_08_90
hcid[25598]: Creating device /hci0/dev_00_80_98_C4_81_FF
hcid[25598]: Creating device /hci0/dev_00_13_46_00_A5_E4
hcid[25598]: Creating device /hci0/dev_00_1B_63_59_3C_44
hcid[25598]: Creating device /hci0/dev_00_19_DB_99_76_E3
hcid[25598]: Creating device /hci0/dev_00_1C_9A_2B_3C_F2

Change History

05/06/08 21:17:48 changed by cktakahasi

  • description changed.

05/07/08 16:03:56 changed by cidoca

  • owner changed from vudentz to cidoca.
  • status changed from new to assigned.

05/07/08 16:07:08 changed by cidoca

  • hours set to 1.
  • status changed from assigned to closed.
  • resolution set to fixed.
  • totalhours changed from 0.0 to 1.0.

New function g_ascii_strup created in eglib to convert the MAC address to upper case when creating a device object path.

05/19/08 14:38:27 changed by cktakahasi

  • milestone changed from Undefined to Sprint 5.