]> git.karo-electronics.de Git - linux-beck.git/commitdiff
rtl8xxxu: Do not mask RF registers to 6 bits
authorJes Sorensen <Jes.Sorensen@redhat.com>
Wed, 3 Feb 2016 18:40:00 +0000 (13:40 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 25 Feb 2016 09:55:42 +0000 (11:55 +0200)
Newer chips have RF registers beyond the original 0x3f address.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c

index a6c8dabc87ba50b81c48dde5f8d30b77ce433746..af17ae7e6cdd49a97968266ce57f6c1fe336c6ad 100644 (file)
@@ -2536,8 +2536,6 @@ static int rtl8xxxu_init_rf_regs(struct rtl8xxxu_priv *priv,
                        continue;
                }
 
-               reg &= 0x3f;
-
                ret = rtl8xxxu_write_rfreg(priv, path, reg, val);
                if (ret) {
                        dev_warn(&priv->udev->dev,