Skip to content

Commit 30dab79

Browse files
Winkler, Tomaslinvjw
authored andcommitted
iwlwifi: remove qos module parameter
The ability of disabling qos from module params is not required anymore. Signed-off-by: Tomas Winkler <[email protected]> Signed-off-by: Reinette Chatre <[email protected]> Signed-off-by: John W. Linville <[email protected]>
1 parent 6d1ef1a commit 30dab79

File tree

6 files changed

+14
-33
lines changed

6 files changed

+14
-33
lines changed

drivers/net/wireless/iwlwifi/iwl-4965.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ static int iwl4965_hw_get_temperature(const struct iwl_priv *priv);
6363
static struct iwl_mod_params iwl4965_mod_params = {
6464
.num_of_queues = IWL49_NUM_QUEUES,
6565
.num_of_ampdu_queues = IWL49_NUM_AMPDU_QUEUES,
66-
.enable_qos = 1,
6766
.amsdu_size_8K = 1,
6867
.restart_fw = 1,
6968
/* the rest are 0 by default */
@@ -2363,9 +2362,6 @@ MODULE_PARM_DESC(disable_hw_scan, "disable hardware scanning (default 0)");
23632362

23642363
module_param_named(queues_num, iwl4965_mod_params.num_of_queues, int, 0444);
23652364
MODULE_PARM_DESC(queues_num, "number of hw queues.");
2366-
/* QoS */
2367-
module_param_named(qos_enable, iwl4965_mod_params.enable_qos, int, 0444);
2368-
MODULE_PARM_DESC(qos_enable, "enable all QoS functionality");
23692365
/* 11n */
23702366
module_param_named(11n_disable, iwl4965_mod_params.disable_11n, int, 0444);
23712367
MODULE_PARM_DESC(11n_disable, "disable 11n functionality");

drivers/net/wireless/iwlwifi/iwl-5000.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1530,7 +1530,6 @@ static struct iwl_ops iwl5000_ops = {
15301530
static struct iwl_mod_params iwl50_mod_params = {
15311531
.num_of_queues = IWL50_NUM_QUEUES,
15321532
.num_of_ampdu_queues = IWL50_NUM_AMPDU_QUEUES,
1533-
.enable_qos = 1,
15341533
.amsdu_size_8K = 1,
15351534
.restart_fw = 1,
15361535
/* the rest are 0 by default */
@@ -1628,8 +1627,6 @@ module_param_named(debug50, iwl50_mod_params.debug, int, 0444);
16281627
MODULE_PARM_DESC(debug50, "50XX debug output mask");
16291628
module_param_named(queues_num50, iwl50_mod_params.num_of_queues, int, 0444);
16301629
MODULE_PARM_DESC(queues_num50, "number of hw queues in 50xx series");
1631-
module_param_named(qos_enable50, iwl50_mod_params.enable_qos, int, 0444);
1632-
MODULE_PARM_DESC(qos_enable50, "enable all 50XX QoS functionality");
16331630
module_param_named(11n_disable50, iwl50_mod_params.disable_11n, int, 0444);
16341631
MODULE_PARM_DESC(11n_disable50, "disable 50XX 11n functionality");
16351632
module_param_named(amsdu_size_8K50, iwl50_mod_params.amsdu_size_8K, int, 0444);

drivers/net/wireless/iwlwifi/iwl-agn.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -546,9 +546,6 @@ static void iwl_activate_qos(struct iwl_priv *priv, u8 force)
546546
if (test_bit(STATUS_EXIT_PENDING, &priv->status))
547547
return;
548548

549-
if (!priv->qos_data.qos_enable)
550-
return;
551-
552549
priv->qos_data.def_qos_parm.qos_flags = 0;
553550

554551
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,
31123109
return 0;
31133110
}
31143111

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-
}
31203112
q = AC_NUM - 1 - queue;
31213113

31223114
spin_lock_irqsave(&priv->lock, flags);

drivers/net/wireless/iwlwifi/iwl-core.c

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -243,24 +243,25 @@ void iwl_reset_qos(struct iwl_priv *priv)
243243
u16 cw_min = 15;
244244
u16 cw_max = 1023;
245245
u8 aifs = 2;
246-
u8 is_legacy = 0;
246+
bool is_legacy = false;
247247
unsigned long flags;
248248
int i;
249249

250250
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;
252259

253-
if (priv->iw_mode == NL80211_IFTYPE_ADHOC) {
254-
if (priv->qos_data.qos_enable)
255-
priv->qos_data.qos_active = 1;
256-
if (!(priv->active_rate & 0xfff0)) {
257-
cw_min = 31;
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)) {
260+
/* check for legacy mode */
261+
if ((priv->iw_mode == NL80211_IFTYPE_ADHOC &&
262+
(priv->active_rate & IWL_OFDM_RATES_MASK) == 0) ||
263+
(priv->iw_mode == NL80211_IFTYPE_STATION &&
264+
(priv->staging_rxon.flags & RXON_FLG_SHORT_SLOT_MSK) == 0)) {
264265
cw_min = 31;
265266
is_legacy = 1;
266267
}
@@ -890,9 +891,6 @@ int iwl_init_drv(struct iwl_priv *priv)
890891
iwl_set_rxon_chain(priv);
891892
iwl_init_scan_params(priv);
892893

893-
if (priv->cfg->mod_params->enable_qos)
894-
priv->qos_data.qos_enable = 1;
895-
896894
iwl_reset_qos(priv);
897895

898896
priv->qos_data.qos_active = 0;

drivers/net/wireless/iwlwifi/iwl-core.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ struct iwl_mod_params {
157157
int disable_hw_scan; /* def: 0 = use h/w scan */
158158
int num_of_queues; /* def: HW dependent */
159159
int num_of_ampdu_queues;/* def: HW dependent */
160-
int enable_qos; /* def: 1 = use quality of service */
161160
int disable_11n; /* def: 0 = disable 11n capabilities */
162161
int amsdu_size_8K; /* def: 1 = enable 8K amsdu size */
163162
int antenna; /* def: 0 = both antennas (use diversity) */

drivers/net/wireless/iwlwifi/iwl-dev.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,6 @@ union iwl_qos_capabity {
436436

437437
/* QoS structures */
438438
struct iwl_qos_info {
439-
int qos_enable;
440439
int qos_active;
441440
union iwl_qos_capabity qos_cap;
442441
struct iwl_qosparam_cmd def_qos_parm;

0 commit comments

Comments
 (0)