Skip to content

Backport patch fixing RTL8761B (0bda:a728) Bluetooth adapter regression - #5112

Merged
sairon merged 1 commit into
devfrom
fix-rtl8761b-stable-regression
Oct 22, 2026
Merged

sairon merged 1 commit into
devfrom
fix-rtl8761b-stable-regression

Conversation

@sairon

@sairon sairon commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Backport patch fixing a regression introduced by kernel bump to 6.18.45+. Adjusted from [1] to v6.18.y as there's no stable backport yet.

The patch doesn't apply to RPi tree, so add a version-specific subdirectory for 6.18.58.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/patch/?id=df5e35f1663abc2702cf9f9e7eba024129ac5df1

Fixes #5079

Summary by CodeRabbit

  • New Features
    • Added an option to enable IPv6 reachability probing when forwarding is enabled.
  • Bug Fixes
    • Restored hardware VLAN tag insertion for eligible network frames.
    • Updated Bluetooth handling for the affected Realtek adapter: it now uses the generic device behavior without the extended-scan quirk.

Backport patch fixing a regression introduced by kernel bump to
6.18.45+. Adjusted from [1] to v6.18.y as there's no stable backport
yet.

The patch doesn't apply to RPi tree, so add a version-specific
subdirectory for 6.18.58.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/patch/?id=df5e35f1663abc2702cf9f9e7eba024129ac5df1

Fixes #5079
@sairon
sairon requested a review from agners October 22, 2026 16:55
@sairon sairon added board/ova Open Virtual Appliance (Virtual Machine) board/odroid Hardkernel's ODROID Boards linux Linux kernel related issue board/generic-x86-64 Generic x86-64 Boards (like Intel NUC) board/khadas Khadas VIM Boards board/generic-aarch64 Generic aarch64 machine board/green Home Assistant Green labels Oct 22, 2026
@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 65b91423-fbc2-4503-bc71-411618a7a403
📥 Commits

Reviewing files that changed from the base of the PR and between 0dea086 and f2f8975.

📒 Files selected for processing: 3
  • buildroot-external/patches/linux/6.18.58/0001-ipv6-add-option-to-explicitly-enable-reachability-te.patch
  • buildroot-external/patches/linux/6.18.58/0002-vlan-restore-HW-VLAN-tag-insertion-with-reorder_hdr-.patch
  • buildroot-external/patches/linux/6.18.58/0003-Bluetooth-btusb-drop-BROKEN_EXT_SCAN-quirk-for-0bda-.patch

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.

📝 Walkthrough

The pull request adds an IPv6 reachability-probing option, changes VLAN transmit handling for eligible in-band tags, and removes the extended-scan quirk for the Realtek 0bda:a728 Bluetooth device.

Changes: IPv6 reachability probing

Layer / File(s) Summary
Reachability option and route lookup
buildroot-external/patches/linux/6.18.58/0001-ipv6-add-option-to-explicitly-enable-reachability-te.patch
Adds IPV6_REACHABILITY_PROBE. IPv6 route lookup sets RT6_LOOKUP_F_REACHABLE when forwarding is disabled or the option is enabled.

VLAN hardware tag insertion

Layer / File(s) Summary
Transmit tag handling
buildroot-external/patches/linux/6.18.58/0002-vlan-restore-HW-VLAN-tag-insertion-with-reorder_hdr-.patch
The transmit path checks frame and device conditions before moving an in-band VLAN tag into hardware metadata. If tag removal fails, it frees the skb, increments tx_dropped, and returns NETDEV_TX_OK.

Bluetooth scan quirk removal

Layer / File(s) Summary
Remove device-specific scan quirk
buildroot-external/patches/linux/6.18.58/0003-Bluetooth-btusb-drop-BROKEN_EXT_SCAN-quirk-for-0bda-.patch
Removes BTUSB_BROKEN_EXT_SCAN, the 0bda:a728 device-table entry that set it, and the probe logic that applied HCI_QUIRK_BROKEN_EXT_SCAN.

Priority: ➖ Normal

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Bug fix · Severity of issue fixed: Medium

Merge Risk: ⚪ Minimal · up to f2f89

No actionable issue identified in these patches; normal validation remains appropriate before merging.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Out of Scope Changes check Warning Patch 0001 adds an unrelated IPv6 reachability Kconfig option and route behavior. Patch 0002 changes VLAN hardware tag insertion and addresses VLAN transmit timeouts. Neither change implements the RTL… Remove patches 0001 and 0002 from this pull request, or link them to separate active coding requirements and submit them in an appropriately scoped change.
Passed Passed checks: 4 passed
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly identifies the backported fix for the RTL8761B (0bda:a728) Bluetooth adapter regression, which matches the pull request objective and primary change.
Linked Issues check Passed The directly linked issue #5079 concerns RTL8761B device 0bda:a728 timeouts on command 0x200c and USB resets. Patch 0003 removes BTUSB_BROKEN_EXT_SCAN from the 0bda:a728 table entry and removes the pr…
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Full details: Linked Issues check

Explanation

The directly linked issue #5079 concerns RTL8761B device 0bda:a728 timeouts on command 0x200c and USB resets. Patch 0003 removes BTUSB_BROKEN_EXT_SCAN from the 0bda:a728 table entry and removes the probe-time HCI_QUIRK_BROKEN_EXT_SCAN setting. Its patch description identifies the same timeout and reset behavior. This change is placed in the 6.18.58 kernel patch directory. Issue #5079 has no separate automated-test requirement.

Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (3 skipped: 3 unsupported.)

Full details: Out of Scope Changes check

Explanation

Patch 0001 adds an unrelated IPv6 reachability Kconfig option and route behavior. Patch 0002 changes VLAN hardware tag insertion and addresses VLAN transmit timeouts. Neither change implements the RTL8761B Bluetooth fix requested by #5079. The Bluetooth patch is in scope, but these two additional patches are unrelated to the linked issue.

Resolution

Remove patches 0001 and 0002 from this pull request, or link them to separate active coding requirements and submit them in an appropriately scoped change.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

A rabbit watched the packets pass,
And saw a tag move with the stream.
IPv6 probes found a new switch,
A scan quirk left the code,
Then soft paws hopped beside the logs.

Comment @coderabbitai help to get the list of available commands.

@agners agners left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, having to use the patch version dir will probably not update those patches when renovate comes around? We have to keep this in mind 😢 .

LGTM.

@sairon
sairon merged commit 00ade1a into dev Oct 22, 2026
3 checks passed
@sairon
sairon deleted the fix-rtl8761b-stable-regression branch October 22, 2026 17:25
sairon added a commit that referenced this pull request Oct 23, 2026
…on (#5112)

Backport patch fixing a regression introduced by kernel bump to
6.18.45+. Adjusted from [1] to v6.18.y as there's no stable backport
yet.

The patch doesn't apply to RPi tree, so add a version-specific
subdirectory for 6.18.58.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/patch/?id=df5e35f1663abc2702cf9f9e7eba024129ac5df1

Fixes #5079

(cherry picked from commit 00ade1a)
@sairon sairon mentioned this pull request Oct 23, 2026
nyok92 pushed a commit to nyok92/HAOS-rock5b that referenced this pull request Oct 23, 2026
…on (home-assistant#5112)

Backport patch fixing a regression introduced by kernel bump to
6.18.45+. Adjusted from [1] to v6.18.y as there's no stable backport
yet.

The patch doesn't apply to RPi tree, so add a version-specific
subdirectory for 6.18.58.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/patch/?id=df5e35f1663abc2702cf9f9e7eba024129ac5df1

Fixes home-assistant#5079
@sairon sairon mentioned this pull request Oct 27, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

board/generic-aarch64 Generic aarch64 machine board/generic-x86-64 Generic x86-64 Boards (like Intel NUC) board/green Home Assistant Green board/khadas Khadas VIM Boards board/odroid Hardkernel's ODROID Boards board/ova Open Virtual Appliance (Virtual Machine) cla-signed linux Linux kernel related issue

Projects

None yet

2 participants