diff options
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/rtl818x/rtl8180_rtl8225.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/rtl818x/rtl8180_rtl8225.c b/drivers/net/wireless/rtl818x/rtl8180_rtl8225.c index 4d2be0d9672b..69e4d4745dae 100644 --- a/drivers/net/wireless/rtl818x/rtl8180_rtl8225.c +++ b/drivers/net/wireless/rtl818x/rtl8180_rtl8225.c | |||
@@ -50,7 +50,10 @@ static void rtl8225_write(struct ieee80211_hw *dev, u8 addr, u16 data) | |||
50 | udelay(10); | 50 | udelay(10); |
51 | 51 | ||
52 | for (i = 15; i >= 0; i--) { | 52 | for (i = 15; i >= 0; i--) { |
53 | u16 reg = reg80 | !!(bangdata & (1 << i)); | 53 | u16 reg = reg80; |
54 | |||
55 | if (bangdata & (1 << i)) | ||
56 | reg |= 1; | ||
54 | 57 | ||
55 | if (i & 1) | 58 | if (i & 1) |
56 | rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg); | 59 | rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg); |