mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-19 19:27:27 +00:00
36f6d6ddcd
Backport support for RTL8812AU/RTL8821AU USB adapters Manually backported patch: 045-v6.13-wifi-rtw88-Enable-the-new-RTL8821AU-RTL8812AU-driver Patches from 046 to 051 are pending. Signed-off-by: Marty Jones <mj8263788@gmail.com> Link: https://github.com/openwrt/openwrt/pull/17079 [Move BPAUTO_WANT_DEV_COREDUMP to original patch] Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
From 927dcd0ab53f39ee00a2d1f204b5aac77e28fcf9 Mon Sep 17 00:00:00 2001
|
|
From: Colin Ian King <colin.i.king@gmail.com>
|
|
Date: Wed, 6 Nov 2024 15:46:42 +0000
|
|
Subject: [PATCH 5/6] wifi: rtlwifi: rtl8821ae: phy: restore removed code to
|
|
fix infinite loop
|
|
|
|
A previous clean-up fix removed the assignment of v2 inside a while loop
|
|
that turned it into an infinite loop. Fix this by restoring the assignment
|
|
of v2 from array[] so that v2 is updated inside the loop.
|
|
|
|
Fixes: cda37445718d ("wifi: rtlwifi: rtl8821ae: phy: remove some useless code")
|
|
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
|
|
Tested-by: Ping-Ke Shih <pkshih@realtek.com>
|
|
Reviewed-by: Su Hui <suhui@nfschina.com>
|
|
---
|
|
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
--- a/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
|
|
+++ b/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
|
|
@@ -2033,8 +2033,10 @@ static bool _rtl8821ae_phy_config_bb_wit
|
|
if (!_rtl8821ae_check_condition(hw, v1)) {
|
|
i += 2; /* skip the pair of expression*/
|
|
v2 = array[i+1];
|
|
- while (v2 != 0xDEAD)
|
|
+ while (v2 != 0xDEAD) {
|
|
i += 3;
|
|
+ v2 = array[i + 1];
|
|
+ }
|
|
}
|
|
}
|
|
}
|