Bitterblue Smith <rtl8821cerfe2@xxxxxxxxx> wrote: > rtl8xxxu_set_basic_rates() sets the wrong initial RTS rate. It sets the > next higher rate than the one it should set, e.g. 36M instead of 24M. > > The while loop was supposed to find the index of the most significant > bit which is 1, but it was copied incorrectly from the vendor driver. > Use __fls() instead. > > Signed-off-by: Bitterblue Smith <rtl8821cerfe2@xxxxxxxxx> > Reviewed-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx> Patch applied to wireless-next.git, thanks. 80850ca041f2 wifi: rtl8xxxu: Fix off by one initial RTS rate -- https://patchwork.kernel.org/project/linux-wireless/patch/761e6836-6cd6-4930-91b6-0446834655c5@xxxxxxxxx/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches