Skip to content

Commit a9db2f1

Browse files
chengkai15xiaoxiang781216
authored andcommitted
wireless/bluetooth: fix ioctl no match driver param
Signed-off-by: chengkai <[email protected]>
1 parent ab991be commit a9db2f1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/wireless/bluetooth/bt_bridge.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@ static int bt_bridge_ioctl(FAR struct bt_driver_s *drv, int cmd,
492492
FAR struct bt_bridge_device_s *device =
493493
(FAR struct bt_bridge_device_s *)drv;
494494
FAR struct bt_bridge_s *bridge = device->bridge;
495+
FAR struct bt_driver_s *driver = bridge->driver;
495496
int ret;
496497

497498
switch (cmd)
@@ -534,9 +535,9 @@ static int bt_bridge_ioctl(FAR struct bt_driver_s *drv, int cmd,
534535

535536
default:
536537
{
537-
if (bridge->driver->ioctl)
538+
if (driver->ioctl)
538539
{
539-
ret = bridge->driver->ioctl(drv, cmd, arg);
540+
ret = driver->ioctl(driver, cmd, arg);
540541
}
541542
else
542543
{

0 commit comments

Comments
 (0)