> -----Original Message----- > From: Bitterblue Smith <rtl8821cerfe2@xxxxxxxxx> > Sent: Tuesday, March 12, 2024 8:17 PM > To: linux-wireless@xxxxxxxxxxxxxxx > Cc: Ping-Ke Shih <pkshih@xxxxxxxxxxx>; Larry Finger <Larry.Finger@xxxxxxxxxxxx> > Subject: [PATCH] wifi: rtlwifi: rtl8192de: Fix 5 GHz TX power > > Different channels have different TX power settings. rtl8192de is using > the TX power setting from the wrong channel in the 5 GHz band because > _rtl92c_phy_get_rightchnlplace expects an array which includes 2.4 GHz > and 5 GHz channel numbers, but it's using an array which includes only > the 5 GHz channel numbers. > > Use the array channel_all (defined in rtl8192de/phy.c) instead of > the incorrect channel5g (defined in core.c). > > Tested only with rtl8192du, which will use the same TX power code. > Signed-off-by: Bitterblue Smith <rtl8821cerfe2@xxxxxxxxx> Acked-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx>