Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[realtek-ambz] Fix crash after WiFi scan #258

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

hn
Copy link
Contributor

@hn hn commented Feb 26, 2024

[C][wifi:038]: Setting up WiFi...
[C][wifi:051]: Starting WiFi...
[C][wifi:052]:   Local MAC: 80:A0:36:A7:F7:1F
interface 0 is initialized
                          interface 1 is initialized

Initializing WIFI ...
WIFI initialized
                [D][wifi:459]: Starting scan...
RTL8195A[HAL]: Hard Fault Error!!!!
RTL8195A[HAL]: R0 = 0x1b9

As explained by @kuba2k2: "It seems that scanAlloc() returns the amount of allocated items, then the Realtek code tries to assign to the last item. The index in [] is wrong though, it tries to assign to one item past the last one."

Fixes #257

@kuba2k2 kuba2k2 merged commit a1f8516 into libretiny-eu:master Feb 26, 2024
2 checks passed
@kuba2k2
Copy link
Member

kuba2k2 commented Feb 26, 2024

Perfect 🙂

@kuba2k2 kuba2k2 added bug Something isn't working RTL8710B Realtek RTL87xxB family labels Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working RTL8710B Realtek RTL87xxB family
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LT 1.5.0 crashes with "RTL8195A Hard Fault Error" after WiFi scan
2 participants