aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rtl818x/rtl8180/dev.c
diff options
context:
space:
mode:
authorAndrea Merello <andrea.merello@gmail.com>2014-03-26 15:59:25 -0400
committerJohn W. Linville <linville@tuxdriver.com>2014-03-27 14:20:07 -0400
commitd209f3b473e0135ee7d800b5fde50955dbdfc246 (patch)
tree2ba1aadce5438ac752b8328f9761c1bcb23d9ca4 /drivers/net/wireless/rtl818x/rtl8180/dev.c
parentac546bfb30a867fc449028bcd33543e01a8ce605 (diff)
rtl8180: add basic rate configuration support for rtl8187se
Basic rate configuration is a bit different for rtl8187se. Adding this also fixes the gcc warning introduced in last patch about unhandled case in switch. Signed-off-by: Andrea Merello <andrea.merello@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rtl818x/rtl8180/dev.c')
-rw-r--r--drivers/net/wireless/rtl818x/rtl8180/dev.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/rtl818x/rtl8180/dev.c b/drivers/net/wireless/rtl818x/rtl8180/dev.c
index 767e1048f336..6b237ed15eed 100644
--- a/drivers/net/wireless/rtl818x/rtl8180/dev.c
+++ b/drivers/net/wireless/rtl818x/rtl8180/dev.c
@@ -412,7 +412,6 @@ static void rtl8180_conf_basic_rates(struct ieee80211_hw *dev,
412 reg &= ~3; 412 reg &= ~3;
413 reg |= max; 413 reg |= max;
414 rtl818x_iowrite16(priv, &priv->map->BRSR, reg); 414 rtl818x_iowrite16(priv, &priv->map->BRSR, reg);
415
416 break; 415 break;
417 416
418 case RTL818X_CHIP_FAMILY_RTL8185: 417 case RTL818X_CHIP_FAMILY_RTL8185:
@@ -420,6 +419,11 @@ static void rtl8180_conf_basic_rates(struct ieee80211_hw *dev,
420 rtl818x_iowrite16(priv, &priv->map->BRSR, rates_mask); 419 rtl818x_iowrite16(priv, &priv->map->BRSR, rates_mask);
421 rtl818x_iowrite8(priv, &priv->map->RESP_RATE, (max << 4) | min); 420 rtl818x_iowrite8(priv, &priv->map->RESP_RATE, (max << 4) | min);
422 break; 421 break;
422
423 case RTL818X_CHIP_FAMILY_RTL8187SE:
424 /* in 8187se this is a BITMAP */
425 rtl818x_iowrite16(priv, &priv->map->BRSR_8187SE, rates_mask);
426 break;
423 } 427 }
424} 428}
425 429