wifi: rtlwifi: rtl8821ae: phy: restore removed code to fix infinite loop
authorColin Ian King <colin.i.king@gmail.com>
Wed, 6 Nov 2024 15:46:42 +0000 (15:46 +0000)
committerPing-Ke Shih <pkshih@realtek.com>
Mon, 18 Nov 2024 01:46:45 +0000 (09:46 +0800)
commit5e5903a442bb889a62a0f5d89ac33e53ab08592c
tree99623ffe09a19b0e99de78e696f4a4a3fd48129b
parentd4c4903508f9e1b2bfec88f777718484e27343fb
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>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20241106154642.1627886-1-colin.i.king@gmail.com
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c