OSDN Git Service

rtlwifi: rtl8192cu: Fix value set in descriptor
authorLarry Finger <Larry.Finger@lwfinger.net>
Mon, 12 Aug 2019 19:27:41 +0000 (14:27 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 3 Sep 2019 13:28:13 +0000 (16:28 +0300)
commit01bb31de526265e51e21e3efcdcbbe7e6906b051
treed5ec3937d0d3b9933ff433ea44c0df92a4dd849e
parentb6326fc025aa998daa62672731ecfdcc22f43771
rtlwifi: rtl8192cu: Fix value set in descriptor

In the process of converting the bit manipulation macros were converted
to use GENMASK(), the compiler reported a value too big for the field.
The offending statement was trying to write 0x100 into a 5-bit field.
An accompaning comment says to set bit 3, thus the code is changed
appropriately.

This error has been in the driver since its initial submission.

Fixes: 29d00a3e46bb ("rtlwifi: rtl8192cu: Add routine trx")
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c