Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Mar 2020 12:26:41 +0000
From:      bugzilla-noreply@freebsd.org
To:        wireless@FreeBSD.org
Subject:   [Bug 245125] [PATCH] Typo in hccontrol/le.c
Message-ID:  <bug-245125-21060@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D245125

            Bug ID: 245125
           Summary: [PATCH] Typo in hccontrol/le.c
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: wireless
          Assignee: wireless@FreeBSD.org
          Reporter: marc@bumblingdork.com

I found a small typo in hccontrol (disble/disable):

marc@devnovo:/usr/src/usr.sbin/bluetooth/hccontrol $ hccontrol le_enable
disable
Using HCI node: ubt0hci
Usage: le_enable
le_enable [enable|disable]=20
Enable LE event=20
marc@devnovo:/usr/src/usr.sbin/bluetooth/hccontrol $ hccontrol le_enable di=
sble
Using HCI node: ubt0hci


Patch below should fix it.

Index: usr.sbin/bluetooth/hccontrol/le.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- usr.sbin/bluetooth/hccontrol/le.c   (revision 359389)
+++ usr.sbin/bluetooth/hccontrol/le.c   (working copy)
@@ -306,7 +306,7 @@
                set_event_mask(s, NG_HCI_EVENT_MASK_DEFAULT |
                               NG_HCI_EVENT_MASK_LE);
                set_le_event_mask(s, NG_HCI_LE_EVENT_MASK_ALL);
-       } else if (strcasecmp(argv[0], "disble") =3D=3D 0)
+       } else if (strcasecmp(argv[0], "disable") =3D=3D 0)
                set_event_mask(s, NG_HCI_EVENT_MASK_DEFAULT);
        else
                return USAGE;

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-245125-21060>