]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: rtw89: regd: 6 GHz power type marks default when inactive
authorZong-Zhe Yang <kevin_yang@realtek.com>
Mon, 29 Dec 2025 03:09:25 +0000 (11:09 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Wed, 31 Dec 2025 08:26:55 +0000 (16:26 +0800)
When inactive, 6 GHz power type has been assigned to the default one,
but missed to mark the local control variable, dflt, true. Then, this
might let some 6 GHz power info of disconnected APs keep being taken
into account under certain cases.

So, mark default when inactive.

Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20251229030926.27004-12-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/regd.c

index 209d84909f8855e50a7aa376c6143596b88564bd..c3425ed44732e2dece026a576bf8a67a5c9f810a 100644 (file)
@@ -1142,6 +1142,7 @@ static int rtw89_reg_6ghz_power_recalc(struct rtw89_dev *rtwdev,
                }
        } else {
                rtwvif_link->reg_6ghz_power = RTW89_REG_6GHZ_POWER_DFLT;
+               dflt = true;
        }
 
        rcu_read_unlock();