aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorWinkler, Tomas <tomas.winkler@intel.com>2008-12-09 14:29:01 -0500
committerJohn W. Linville <linville@tuxdriver.com>2008-12-12 14:01:53 -0500
commit30dab79ed40f6c0f8a24e25fd9be7bd873eeeb8b (patch)
treecd4547593d56ffe202e548d84059aca880944091 /drivers/net
parent6d1ef1a3e6b4915d4cde897971ce283bdf0d9fbc (diff)
iwlwifi: remove qos module parameter
The ability of disabling qos from module params is not required anymore. Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.c4
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-5000.c3
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c8
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-core.c30
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-core.h1
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-dev.h1
6 files changed, 14 insertions, 33 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c
index 3afecf8aac42..a7e6e32bd489 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.c
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.c
@@ -63,7 +63,6 @@ static int iwl4965_hw_get_temperature(const struct iwl_priv *priv);
63static struct iwl_mod_params iwl4965_mod_params = { 63static struct iwl_mod_params iwl4965_mod_params = {
64 .num_of_queues = IWL49_NUM_QUEUES, 64 .num_of_queues = IWL49_NUM_QUEUES,
65 .num_of_ampdu_queues = IWL49_NUM_AMPDU_QUEUES, 65 .num_of_ampdu_queues = IWL49_NUM_AMPDU_QUEUES,
66 .enable_qos = 1,
67 .amsdu_size_8K = 1, 66 .amsdu_size_8K = 1,
68 .restart_fw = 1, 67 .restart_fw = 1,
69 /* the rest are 0 by default */ 68 /* the rest are 0 by default */
@@ -2363,9 +2362,6 @@ MODULE_PARM_DESC(disable_hw_scan, "disable hardware scanning (default 0)");
2363 2362
2364module_param_named(queues_num, iwl4965_mod_params.num_of_queues, int, 0444); 2363module_param_named(queues_num, iwl4965_mod_params.num_of_queues, int, 0444);
2365MODULE_PARM_DESC(queues_num, "number of hw queues."); 2364MODULE_PARM_DESC(queues_num, "number of hw queues.");
2366/* QoS */
2367module_param_named(qos_enable, iwl4965_mod_params.enable_qos, int, 0444);
2368MODULE_PARM_DESC(qos_enable, "enable all QoS functionality");
2369/* 11n */ 2365/* 11n */
2370module_param_named(11n_disable, iwl4965_mod_params.disable_11n, int, 0444); 2366module_param_named(11n_disable, iwl4965_mod_params.disable_11n, int, 0444);
2371MODULE_PARM_DESC(11n_disable, "disable 11n functionality"); 2367MODULE_PARM_DESC(11n_disable, "disable 11n functionality");
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c
index 1b82742ea333..2344de945974 100644
--- a/drivers/net/wireless/iwlwifi/iwl-5000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-5000.c
@@ -1530,7 +1530,6 @@ static struct iwl_ops iwl5000_ops = {
1530static struct iwl_mod_params iwl50_mod_params = { 1530static struct iwl_mod_params iwl50_mod_params = {
1531 .num_of_queues = IWL50_NUM_QUEUES, 1531 .num_of_queues = IWL50_NUM_QUEUES,
1532 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES, 1532 .num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
1533 .enable_qos = 1,
1534 .amsdu_size_8K = 1, 1533 .amsdu_size_8K = 1,
1535 .restart_fw = 1, 1534 .restart_fw = 1,
1536 /* the rest are 0 by default */ 1535 /* the rest are 0 by default */
@@ -1628,8 +1627,6 @@ module_param_named(debug50, iwl50_mod_params.debug, int, 0444);
1628MODULE_PARM_DESC(debug50, "50XX debug output mask"); 1627MODULE_PARM_DESC(debug50, "50XX debug output mask");
1629module_param_named(queues_num50, iwl50_mod_params.num_of_queues, int, 0444); 1628module_param_named(queues_num50, iwl50_mod_params.num_of_queues, int, 0444);
1630MODULE_PARM_DESC(queues_num50, "number of hw queues in 50xx series"); 1629MODULE_PARM_DESC(queues_num50, "number of hw queues in 50xx series");
1631module_param_named(qos_enable50, iwl50_mod_params.enable_qos, int, 0444);
1632MODULE_PARM_DESC(qos_enable50, "enable all 50XX QoS functionality");
1633module_param_named(11n_disable50, iwl50_mod_params.disable_11n, int, 0444); 1630module_param_named(11n_disable50, iwl50_mod_params.disable_11n, int, 0444);
1634MODULE_PARM_DESC(11n_disable50, "disable 50XX 11n functionality"); 1631MODULE_PARM_DESC(11n_disable50, "disable 50XX 11n functionality");
1635module_param_named(amsdu_size_8K50, iwl50_mod_params.amsdu_size_8K, int, 0444); 1632module_param_named(amsdu_size_8K50, iwl50_mod_params.amsdu_size_8K, int, 0444);
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index 344225a3eb54..3f425f68b2ca 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -546,9 +546,6 @@ static void iwl_activate_qos(struct iwl_priv *priv, u8 force)
546 if (test_bit(STATUS_EXIT_PENDING, &priv->status)) 546 if (test_bit(STATUS_EXIT_PENDING, &priv->status))
547 return; 547 return;
548 548
549 if (!priv->qos_data.qos_enable)
550 return;
551
552 priv->qos_data.def_qos_parm.qos_flags = 0; 549 priv->qos_data.def_qos_parm.qos_flags = 0;
553 550
554 if (priv->qos_data.qos_cap.q_AP.queue_request && 551 if (priv->qos_data.qos_cap.q_AP.queue_request &&
@@ -3112,11 +3109,6 @@ static int iwl_mac_conf_tx(struct ieee80211_hw *hw, u16 queue,
3112 return 0; 3109 return 0;
3113 } 3110 }
3114 3111
3115 if (!priv->qos_data.qos_enable) {
3116 priv->qos_data.qos_active = 0;
3117 IWL_DEBUG_MAC80211("leave - qos not enabled\n");
3118 return 0;
3119 }
3120 q = AC_NUM - 1 - queue; 3112 q = AC_NUM - 1 - queue;
3121 3113
3122 spin_lock_irqsave(&priv->lock, flags); 3114 spin_lock_irqsave(&priv->lock, flags);
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c
index cb9491a18d88..6fc395092dfe 100644
--- a/drivers/net/wireless/iwlwifi/iwl-core.c
+++ b/drivers/net/wireless/iwlwifi/iwl-core.c
@@ -243,24 +243,25 @@ void iwl_reset_qos(struct iwl_priv *priv)
243 u16 cw_min = 15; 243 u16 cw_min = 15;
244 u16 cw_max = 1023; 244 u16 cw_max = 1023;
245 u8 aifs = 2; 245 u8 aifs = 2;
246 u8 is_legacy = 0; 246 bool is_legacy = false;
247 unsigned long flags; 247 unsigned long flags;
248 int i; 248 int i;
249 249
250 spin_lock_irqsave(&priv->lock, flags); 250 spin_lock_irqsave(&priv->lock, flags);
251 priv->qos_data.qos_active = 0; 251 /* QoS always active in AP and ADHOC mode
252 * In STA mode wait for association
253 */
254 if (priv->iw_mode == NL80211_IFTYPE_ADHOC ||
255 priv->iw_mode == NL80211_IFTYPE_AP)
256 priv->qos_data.qos_active = 1;
257 else
258 priv->qos_data.qos_active = 0;
252 259
253 if (priv->iw_mode == NL80211_IFTYPE_ADHOC) { 260 /* check for legacy mode */
254 if (priv->qos_data.qos_enable) 261 if ((priv->iw_mode == NL80211_IFTYPE_ADHOC &&
255 priv->qos_data.qos_active = 1; 262 (priv->active_rate & IWL_OFDM_RATES_MASK) == 0) ||
256 if (!(priv->active_rate & 0xfff0)) { 263 (priv->iw_mode == NL80211_IFTYPE_STATION &&
257 cw_min = 31; 264 (priv->staging_rxon.flags & RXON_FLG_SHORT_SLOT_MSK) == 0)) {
258 is_legacy = 1;
259 }
260 } else if (priv->iw_mode == NL80211_IFTYPE_AP) {
261 if (priv->qos_data.qos_enable)
262 priv->qos_data.qos_active = 1;
263 } else if (!(priv->staging_rxon.flags & RXON_FLG_SHORT_SLOT_MSK)) {
264 cw_min = 31; 265 cw_min = 31;
265 is_legacy = 1; 266 is_legacy = 1;
266 } 267 }
@@ -890,9 +891,6 @@ int iwl_init_drv(struct iwl_priv *priv)
890 iwl_set_rxon_chain(priv); 891 iwl_set_rxon_chain(priv);
891 iwl_init_scan_params(priv); 892 iwl_init_scan_params(priv);
892 893
893 if (priv->cfg->mod_params->enable_qos)
894 priv->qos_data.qos_enable = 1;
895
896 iwl_reset_qos(priv); 894 iwl_reset_qos(priv);
897 895
898 priv->qos_data.qos_active = 0; 896 priv->qos_data.qos_active = 0;
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h
index 983042be7a19..72f82ec62104 100644
--- a/drivers/net/wireless/iwlwifi/iwl-core.h
+++ b/drivers/net/wireless/iwlwifi/iwl-core.h
@@ -157,7 +157,6 @@ struct iwl_mod_params {
157 int disable_hw_scan; /* def: 0 = use h/w scan */ 157 int disable_hw_scan; /* def: 0 = use h/w scan */
158 int num_of_queues; /* def: HW dependent */ 158 int num_of_queues; /* def: HW dependent */
159 int num_of_ampdu_queues;/* def: HW dependent */ 159 int num_of_ampdu_queues;/* def: HW dependent */
160 int enable_qos; /* def: 1 = use quality of service */
161 int disable_11n; /* def: 0 = disable 11n capabilities */ 160 int disable_11n; /* def: 0 = disable 11n capabilities */
162 int amsdu_size_8K; /* def: 1 = enable 8K amsdu size */ 161 int amsdu_size_8K; /* def: 1 = enable 8K amsdu size */
163 int antenna; /* def: 0 = both antennas (use diversity) */ 162 int antenna; /* def: 0 = both antennas (use diversity) */
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h
index c32012e502dc..fc859f72c07d 100644
--- a/drivers/net/wireless/iwlwifi/iwl-dev.h
+++ b/drivers/net/wireless/iwlwifi/iwl-dev.h
@@ -436,7 +436,6 @@ union iwl_qos_capabity {
436 436
437/* QoS structures */ 437/* QoS structures */
438struct iwl_qos_info { 438struct iwl_qos_info {
439 int qos_enable;
440 int qos_active; 439 int qos_active;
441 union iwl_qos_capabity qos_cap; 440 union iwl_qos_capabity qos_cap;
442 struct iwl_qosparam_cmd def_qos_parm; 441 struct iwl_qosparam_cmd def_qos_parm;