diff options
Diffstat (limited to 'drivers/net/wireless/rtl818x/rtl8180_rtl8225.c')
-rw-r--r-- | drivers/net/wireless/rtl818x/rtl8180_rtl8225.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/drivers/net/wireless/rtl818x/rtl8180_rtl8225.c b/drivers/net/wireless/rtl818x/rtl8180_rtl8225.c index cd22781728a..4d2be0d9672 100644 --- a/drivers/net/wireless/rtl818x/rtl8180_rtl8225.c +++ b/drivers/net/wireless/rtl818x/rtl8180_rtl8225.c | |||
@@ -725,8 +725,14 @@ static void rtl8225_rf_set_channel(struct ieee80211_hw *dev, | |||
725 | 725 | ||
726 | rtl8225_write(dev, 0x7, rtl8225_chan[chan - 1]); | 726 | rtl8225_write(dev, 0x7, rtl8225_chan[chan - 1]); |
727 | msleep(10); | 727 | msleep(10); |
728 | } | ||
729 | |||
730 | static void rtl8225_rf_conf_erp(struct ieee80211_hw *dev, | ||
731 | struct ieee80211_bss_conf *info) | ||
732 | { | ||
733 | struct rtl8180_priv *priv = dev->priv; | ||
728 | 734 | ||
729 | if (conf->flags & IEEE80211_CONF_SHORT_SLOT_TIME) { | 735 | if (info->use_short_slot) { |
730 | rtl818x_iowrite8(priv, &priv->map->SLOT, 0x9); | 736 | rtl818x_iowrite8(priv, &priv->map->SLOT, 0x9); |
731 | rtl818x_iowrite8(priv, &priv->map->SIFS, 0x22); | 737 | rtl818x_iowrite8(priv, &priv->map->SIFS, 0x22); |
732 | rtl818x_iowrite8(priv, &priv->map->DIFS, 0x14); | 738 | rtl818x_iowrite8(priv, &priv->map->DIFS, 0x14); |
@@ -745,14 +751,16 @@ static const struct rtl818x_rf_ops rtl8225_ops = { | |||
745 | .name = "rtl8225", | 751 | .name = "rtl8225", |
746 | .init = rtl8225_rf_init, | 752 | .init = rtl8225_rf_init, |
747 | .stop = rtl8225_rf_stop, | 753 | .stop = rtl8225_rf_stop, |
748 | .set_chan = rtl8225_rf_set_channel | 754 | .set_chan = rtl8225_rf_set_channel, |
755 | .conf_erp = rtl8225_rf_conf_erp, | ||
749 | }; | 756 | }; |
750 | 757 | ||
751 | static const struct rtl818x_rf_ops rtl8225z2_ops = { | 758 | static const struct rtl818x_rf_ops rtl8225z2_ops = { |
752 | .name = "rtl8225z2", | 759 | .name = "rtl8225z2", |
753 | .init = rtl8225z2_rf_init, | 760 | .init = rtl8225z2_rf_init, |
754 | .stop = rtl8225_rf_stop, | 761 | .stop = rtl8225_rf_stop, |
755 | .set_chan = rtl8225_rf_set_channel | 762 | .set_chan = rtl8225_rf_set_channel, |
763 | .conf_erp = rtl8225_rf_conf_erp, | ||
756 | }; | 764 | }; |
757 | 765 | ||
758 | const struct rtl818x_rf_ops * rtl8180_detect_rf(struct ieee80211_hw *dev) | 766 | const struct rtl818x_rf_ops * rtl8180_detect_rf(struct ieee80211_hw *dev) |