aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/staging/rtl8187se/r8185b_init.c35
1 files changed, 2 insertions, 33 deletions
diff --git a/drivers/staging/rtl8187se/r8185b_init.c b/drivers/staging/rtl8187se/r8185b_init.c
index 5495d1e8f9b3..4aca954283dc 100644
--- a/drivers/staging/rtl8187se/r8185b_init.c
+++ b/drivers/staging/rtl8187se/r8185b_init.c
@@ -869,8 +869,6 @@ void ActUpdateChannelAccessSetting(struct net_device *dev,
869 struct r8180_priv *priv = ieee80211_priv(dev); 869 struct r8180_priv *priv = ieee80211_priv(dev);
870 struct ieee80211_device *ieee = priv->ieee80211; 870 struct ieee80211_device *ieee = priv->ieee80211;
871 AC_CODING eACI; 871 AC_CODING eACI;
872 AC_PARAM AcParam;
873 u8 bFollowLegacySetting = 0;
874 u8 u1bAIFS; 872 u8 u1bAIFS;
875 873
876 /* 874 /*
@@ -899,37 +897,8 @@ void ActUpdateChannelAccessSetting(struct net_device *dev,
899 897
900 write_nic_byte(dev, AckTimeOutReg, 0x5B); /* <RJ_EXPR_QOS> Suggested by wcchu, it is the default value of EIFS register, 2005.12.08. */ 898 write_nic_byte(dev, AckTimeOutReg, 0x5B); /* <RJ_EXPR_QOS> Suggested by wcchu, it is the default value of EIFS register, 2005.12.08. */
901 899
902 { /* Legacy 802.11. */ 900 for (eACI = 0; eACI < AC_MAX; eACI++) {
903 bFollowLegacySetting = 1; 901 write_nic_byte(dev, ACM_CONTROL, 0);
904
905 }
906
907 /* this setting is copied from rtl8187B. xiong-2006-11-13 */
908 if (bFollowLegacySetting) {
909
910 /*
911 * Follow 802.11 seeting to AC parameter, all AC shall use the same parameter.
912 * 2005.12.01, by rcnjko.
913 */
914 AcParam.longData = 0;
915 AcParam.f.AciAifsn.f.AIFSN = 2; /* Follow 802.11 DIFS. */
916 AcParam.f.AciAifsn.f.ACM = 0;
917 AcParam.f.Ecw.f.ECWmin = ChnlAccessSetting->CWminIndex; /* Follow 802.11 CWmin. */
918 AcParam.f.Ecw.f.ECWmax = ChnlAccessSetting->CWmaxIndex; /* Follow 802.11 CWmax. */
919 AcParam.f.TXOPLimit = 0;
920
921 /* lzm reserved 080826 */
922 /* For turbo mode setting. port from 87B by Isaiah 2008-08-01 */
923 if (ieee->current_network.Turbo_Enable == 1)
924 AcParam.f.TXOPLimit = 0x01FF;
925 /* For 87SE with Intel 4965 Ad-Hoc mode have poor throughput (19MB) */
926 if (ieee->iw_mode == IW_MODE_ADHOC)
927 AcParam.f.TXOPLimit = 0x0020;
928
929 for (eACI = 0; eACI < AC_MAX; eACI++) {
930 AcParam.f.AciAifsn.f.ACI = (u8)eACI;
931 write_nic_byte(dev, ACM_CONTROL, 0);
932 }
933 } 902 }
934} 903}
935 904