diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2800usb.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800usb.c | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800usb.c b/drivers/net/wireless/rt2x00/rt2800usb.c index aae7aa72bf06..142ad34fdc49 100644 --- a/drivers/net/wireless/rt2x00/rt2800usb.c +++ b/drivers/net/wireless/rt2x00/rt2800usb.c | |||
@@ -616,6 +616,11 @@ static void rt2800usb_config_erp(struct rt2x00_dev *rt2x00dev, | |||
616 | rt2x00_set_field32(®, XIFS_TIME_CFG_EIFS, erp->eifs); | 616 | rt2x00_set_field32(®, XIFS_TIME_CFG_EIFS, erp->eifs); |
617 | rt2x00_set_field32(®, XIFS_TIME_CFG_BB_RXEND_ENABLE, 1); | 617 | rt2x00_set_field32(®, XIFS_TIME_CFG_BB_RXEND_ENABLE, 1); |
618 | rt2x00usb_register_write(rt2x00dev, XIFS_TIME_CFG, reg); | 618 | rt2x00usb_register_write(rt2x00dev, XIFS_TIME_CFG, reg); |
619 | |||
620 | rt2x00usb_register_read(rt2x00dev, BCN_TIME_CFG, ®); | ||
621 | rt2x00_set_field32(®, BCN_TIME_CFG_BEACON_INTERVAL, | ||
622 | erp->beacon_int * 16); | ||
623 | rt2x00usb_register_write(rt2x00dev, BCN_TIME_CFG, reg); | ||
619 | } | 624 | } |
620 | 625 | ||
621 | static void rt2800usb_config_ant(struct rt2x00_dev *rt2x00dev, | 626 | static void rt2800usb_config_ant(struct rt2x00_dev *rt2x00dev, |
@@ -955,17 +960,6 @@ static void rt2800usb_config_retry_limit(struct rt2x00_dev *rt2x00dev, | |||
955 | rt2x00usb_register_write(rt2x00dev, TX_RTY_CFG, reg); | 960 | rt2x00usb_register_write(rt2x00dev, TX_RTY_CFG, reg); |
956 | } | 961 | } |
957 | 962 | ||
958 | static void rt2800usb_config_duration(struct rt2x00_dev *rt2x00dev, | ||
959 | struct rt2x00lib_conf *libconf) | ||
960 | { | ||
961 | u32 reg; | ||
962 | |||
963 | rt2x00usb_register_read(rt2x00dev, BCN_TIME_CFG, ®); | ||
964 | rt2x00_set_field32(®, BCN_TIME_CFG_BEACON_INTERVAL, | ||
965 | libconf->conf->beacon_int * 16); | ||
966 | rt2x00usb_register_write(rt2x00dev, BCN_TIME_CFG, reg); | ||
967 | } | ||
968 | |||
969 | static void rt2800usb_config_ps(struct rt2x00_dev *rt2x00dev, | 963 | static void rt2800usb_config_ps(struct rt2x00_dev *rt2x00dev, |
970 | struct rt2x00lib_conf *libconf) | 964 | struct rt2x00lib_conf *libconf) |
971 | { | 965 | { |
@@ -1010,8 +1004,6 @@ static void rt2800usb_config(struct rt2x00_dev *rt2x00dev, | |||
1010 | rt2800usb_config_txpower(rt2x00dev, libconf->conf->power_level); | 1004 | rt2800usb_config_txpower(rt2x00dev, libconf->conf->power_level); |
1011 | if (flags & IEEE80211_CONF_CHANGE_RETRY_LIMITS) | 1005 | if (flags & IEEE80211_CONF_CHANGE_RETRY_LIMITS) |
1012 | rt2800usb_config_retry_limit(rt2x00dev, libconf); | 1006 | rt2800usb_config_retry_limit(rt2x00dev, libconf); |
1013 | if (flags & IEEE80211_CONF_CHANGE_BEACON_INTERVAL) | ||
1014 | rt2800usb_config_duration(rt2x00dev, libconf); | ||
1015 | if (flags & IEEE80211_CONF_CHANGE_PS) | 1007 | if (flags & IEEE80211_CONF_CHANGE_PS) |
1016 | rt2800usb_config_ps(rt2x00dev, libconf); | 1008 | rt2800usb_config_ps(rt2x00dev, libconf); |
1017 | } | 1009 | } |