aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhu Yi <yi.zhu@intel.com>2006-04-13 05:20:45 -0400
committerJohn W. Linville <linville@tuxdriver.com>2006-04-24 16:15:57 -0400
commite43e3c1e900ec5b6662cf1901b27975c111289bf (patch)
tree7b926393a0fc33d69693705e26f4d62a02559cb3
parent555fd91852880f927f131520889e1fe674ed7e7a (diff)
[PATCH] ipw2200: rename CONFIG_IPW_QOS to CONFIG_IPW2200_QOS
Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/Kconfig2
-rw-r--r--drivers/net/wireless/ipw2200.c42
2 files changed, 22 insertions, 22 deletions
diff --git a/drivers/net/wireless/Kconfig b/drivers/net/wireless/Kconfig
index c04971a8e4a8..19bc09970be6 100644
--- a/drivers/net/wireless/Kconfig
+++ b/drivers/net/wireless/Kconfig
@@ -235,7 +235,7 @@ config IPW2200_MONITOR
235 promiscuous mode via the Wireless Tool's Monitor mode. While in this 235 promiscuous mode via the Wireless Tool's Monitor mode. While in this
236 mode, no packets can be sent. 236 mode, no packets can be sent.
237 237
238config IPW_QOS 238config IPW2200_QOS
239 bool "Enable QoS support" 239 bool "Enable QoS support"
240 depends on IPW2200 && EXPERIMENTAL 240 depends on IPW2200 && EXPERIMENTAL
241 241
diff --git a/drivers/net/wireless/ipw2200.c b/drivers/net/wireless/ipw2200.c
index 33b442fe144e..19d1a9932eea 100644
--- a/drivers/net/wireless/ipw2200.c
+++ b/drivers/net/wireless/ipw2200.c
@@ -107,7 +107,7 @@ static int rtap_iface = 0; /* def: 0 -- do not create rtap interface */
107#endif 107#endif
108 108
109 109
110#ifdef CONFIG_IPW_QOS 110#ifdef CONFIG_IPW2200_QOS
111static int qos_enable = 0; 111static int qos_enable = 0;
112static int qos_burst_enable = 0; 112static int qos_burst_enable = 0;
113static int qos_no_ack_mask = 0; 113static int qos_no_ack_mask = 0;
@@ -171,7 +171,7 @@ static int ipw_send_qos_params_command(struct ipw_priv *priv, struct ieee80211_q
171 *qos_param); 171 *qos_param);
172static int ipw_send_qos_info_command(struct ipw_priv *priv, struct ieee80211_qos_information_element 172static int ipw_send_qos_info_command(struct ipw_priv *priv, struct ieee80211_qos_information_element
173 *qos_param); 173 *qos_param);
174#endif /* CONFIG_IPW_QOS */ 174#endif /* CONFIG_IPW2200_QOS */
175 175
176static struct iw_statistics *ipw_get_wireless_stats(struct net_device *dev); 176static struct iw_statistics *ipw_get_wireless_stats(struct net_device *dev);
177static void ipw_remove_current_network(struct ipw_priv *priv); 177static void ipw_remove_current_network(struct ipw_priv *priv);
@@ -4342,7 +4342,7 @@ static void ipw_rx_notification(struct ipw_priv *priv,
4342 queue_work(priv->workqueue, 4342 queue_work(priv->workqueue,
4343 &priv->system_config); 4343 &priv->system_config);
4344 4344
4345#ifdef CONFIG_IPW_QOS 4345#ifdef CONFIG_IPW2200_QOS
4346#define IPW_GET_PACKET_STYPE(x) WLAN_FC_GET_STYPE( \ 4346#define IPW_GET_PACKET_STYPE(x) WLAN_FC_GET_STYPE( \
4347 le16_to_cpu(((struct ieee80211_hdr *)(x))->frame_ctl)) 4347 le16_to_cpu(((struct ieee80211_hdr *)(x))->frame_ctl))
4348 if ((priv->status & STATUS_AUTH) && 4348 if ((priv->status & STATUS_AUTH) &&
@@ -6680,7 +6680,7 @@ static int ipw_wx_set_mlme(struct net_device *dev,
6680 return 0; 6680 return 0;
6681} 6681}
6682 6682
6683#ifdef CONFIG_IPW_QOS 6683#ifdef CONFIG_IPW2200_QOS
6684 6684
6685/* QoS */ 6685/* QoS */
6686/* 6686/*
@@ -7145,7 +7145,7 @@ static int ipw_send_qos_info_command(struct ipw_priv *priv, struct ieee80211_qos
7145 qos_param); 7145 qos_param);
7146} 7146}
7147 7147
7148#endif /* CONFIG_IPW_QOS */ 7148#endif /* CONFIG_IPW2200_QOS */
7149 7149
7150static int ipw_associate_network(struct ipw_priv *priv, 7150static int ipw_associate_network(struct ipw_priv *priv,
7151 struct ieee80211_network *network, 7151 struct ieee80211_network *network,
@@ -7309,7 +7309,7 @@ static int ipw_associate_network(struct ipw_priv *priv,
7309 7309
7310 priv->assoc_network = network; 7310 priv->assoc_network = network;
7311 7311
7312#ifdef CONFIG_IPW_QOS 7312#ifdef CONFIG_IPW2200_QOS
7313 ipw_qos_association(priv, network); 7313 ipw_qos_association(priv, network);
7314#endif 7314#endif
7315 7315
@@ -8364,10 +8364,10 @@ static int ipw_sw_reset(struct ipw_priv *priv, int option)
8364 IPW_DEBUG_INFO("Bind to static channel %d\n", channel); 8364 IPW_DEBUG_INFO("Bind to static channel %d\n", channel);
8365 /* TODO: Validate that provided channel is in range */ 8365 /* TODO: Validate that provided channel is in range */
8366 } 8366 }
8367#ifdef CONFIG_IPW_QOS 8367#ifdef CONFIG_IPW2200_QOS
8368 ipw_qos_init(priv, qos_enable, qos_burst_enable, 8368 ipw_qos_init(priv, qos_enable, qos_burst_enable,
8369 burst_duration_CCK, burst_duration_OFDM); 8369 burst_duration_CCK, burst_duration_OFDM);
8370#endif /* CONFIG_IPW_QOS */ 8370#endif /* CONFIG_IPW2200_QOS */
8371 8371
8372 switch (mode) { 8372 switch (mode) {
8373 case 1: 8373 case 1:
@@ -10037,7 +10037,7 @@ static int ipw_tx_skb(struct ipw_priv *priv, struct ieee80211_txb *txb,
10037 txb->fragments[0]->data; 10037 txb->fragments[0]->data;
10038 int i = 0; 10038 int i = 0;
10039 struct tfd_frame *tfd; 10039 struct tfd_frame *tfd;
10040#ifdef CONFIG_IPW_QOS 10040#ifdef CONFIG_IPW2200_QOS
10041 int tx_id = ipw_get_tx_queue_number(priv, pri); 10041 int tx_id = ipw_get_tx_queue_number(priv, pri);
10042 struct clx2_tx_queue *txq = &priv->txq[tx_id]; 10042 struct clx2_tx_queue *txq = &priv->txq[tx_id];
10043#else 10043#else
@@ -10144,10 +10144,10 @@ static int ipw_tx_skb(struct ipw_priv *priv, struct ieee80211_txb *txb,
10144 /* No hardware encryption */ 10144 /* No hardware encryption */
10145 tfd->u.data.tx_flags |= DCT_FLAG_NO_WEP; 10145 tfd->u.data.tx_flags |= DCT_FLAG_NO_WEP;
10146 10146
10147#ifdef CONFIG_IPW_QOS 10147#ifdef CONFIG_IPW2200_QOS
10148 if (fc & IEEE80211_STYPE_QOS_DATA) 10148 if (fc & IEEE80211_STYPE_QOS_DATA)
10149 ipw_qos_set_tx_queue_command(priv, pri, &(tfd->u.data)); 10149 ipw_qos_set_tx_queue_command(priv, pri, &(tfd->u.data));
10150#endif /* CONFIG_IPW_QOS */ 10150#endif /* CONFIG_IPW2200_QOS */
10151 10151
10152 /* payload */ 10152 /* payload */
10153 tfd->u.data.num_chunks = cpu_to_le32(min((u8) (NUM_TFD_CHUNKS - 2), 10153 tfd->u.data.num_chunks = cpu_to_le32(min((u8) (NUM_TFD_CHUNKS - 2),
@@ -10227,12 +10227,12 @@ static int ipw_tx_skb(struct ipw_priv *priv, struct ieee80211_txb *txb,
10227static int ipw_net_is_queue_full(struct net_device *dev, int pri) 10227static int ipw_net_is_queue_full(struct net_device *dev, int pri)
10228{ 10228{
10229 struct ipw_priv *priv = ieee80211_priv(dev); 10229 struct ipw_priv *priv = ieee80211_priv(dev);
10230#ifdef CONFIG_IPW_QOS 10230#ifdef CONFIG_IPW2200_QOS
10231 int tx_id = ipw_get_tx_queue_number(priv, pri); 10231 int tx_id = ipw_get_tx_queue_number(priv, pri);
10232 struct clx2_tx_queue *txq = &priv->txq[tx_id]; 10232 struct clx2_tx_queue *txq = &priv->txq[tx_id];
10233#else 10233#else
10234 struct clx2_tx_queue *txq = &priv->txq[0]; 10234 struct clx2_tx_queue *txq = &priv->txq[0];
10235#endif /* CONFIG_IPW_QOS */ 10235#endif /* CONFIG_IPW2200_QOS */
10236 10236
10237 if (ipw_queue_space(&txq->q) < txq->q.high_mark) 10237 if (ipw_queue_space(&txq->q) < txq->q.high_mark)
10238 return 1; 10238 return 1;
@@ -10642,10 +10642,10 @@ static int ipw_setup_deferred_work(struct ipw_priv *priv)
10642 INIT_WORK(&priv->merge_networks, 10642 INIT_WORK(&priv->merge_networks,
10643 (void (*)(void *))ipw_merge_adhoc_network, priv); 10643 (void (*)(void *))ipw_merge_adhoc_network, priv);
10644 10644
10645#ifdef CONFIG_IPW_QOS 10645#ifdef CONFIG_IPW2200_QOS
10646 INIT_WORK(&priv->qos_activate, (void (*)(void *))ipw_bg_qos_activate, 10646 INIT_WORK(&priv->qos_activate, (void (*)(void *))ipw_bg_qos_activate,
10647 priv); 10647 priv);
10648#endif /* CONFIG_IPW_QOS */ 10648#endif /* CONFIG_IPW2200_QOS */
10649 10649
10650 tasklet_init(&priv->irq_tasklet, (void (*)(unsigned long)) 10650 tasklet_init(&priv->irq_tasklet, (void (*)(unsigned long))
10651 ipw_irq_tasklet, (unsigned long)priv); 10651 ipw_irq_tasklet, (unsigned long)priv);
@@ -10817,10 +10817,10 @@ static int ipw_config(struct ipw_priv *priv)
10817 if (ipw_send_rts_threshold(priv, priv->rts_threshold)) 10817 if (ipw_send_rts_threshold(priv, priv->rts_threshold))
10818 goto error; 10818 goto error;
10819 } 10819 }
10820#ifdef CONFIG_IPW_QOS 10820#ifdef CONFIG_IPW2200_QOS
10821 IPW_DEBUG_QOS("QoS: call ipw_qos_activate\n"); 10821 IPW_DEBUG_QOS("QoS: call ipw_qos_activate\n");
10822 ipw_qos_activate(priv, NULL); 10822 ipw_qos_activate(priv, NULL);
10823#endif /* CONFIG_IPW_QOS */ 10823#endif /* CONFIG_IPW2200_QOS */
10824 10824
10825 if (ipw_set_random_seed(priv)) 10825 if (ipw_set_random_seed(priv))
10826 goto error; 10826 goto error;
@@ -11549,12 +11549,12 @@ static int ipw_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
11549 priv->ieee->set_security = shim__set_security; 11549 priv->ieee->set_security = shim__set_security;
11550 priv->ieee->is_queue_full = ipw_net_is_queue_full; 11550 priv->ieee->is_queue_full = ipw_net_is_queue_full;
11551 11551
11552#ifdef CONFIG_IPW_QOS 11552#ifdef CONFIG_IPW2200_QOS
11553 priv->ieee->is_qos_active = ipw_is_qos_active; 11553 priv->ieee->is_qos_active = ipw_is_qos_active;
11554 priv->ieee->handle_probe_response = ipw_handle_beacon; 11554 priv->ieee->handle_probe_response = ipw_handle_beacon;
11555 priv->ieee->handle_beacon = ipw_handle_probe_response; 11555 priv->ieee->handle_beacon = ipw_handle_probe_response;
11556 priv->ieee->handle_assoc_response = ipw_handle_assoc_response; 11556 priv->ieee->handle_assoc_response = ipw_handle_assoc_response;
11557#endif /* CONFIG_IPW_QOS */ 11557#endif /* CONFIG_IPW2200_QOS */
11558 11558
11559 priv->ieee->perfect_rssi = -20; 11559 priv->ieee->perfect_rssi = -20;
11560 priv->ieee->worst_rssi = -85; 11560 priv->ieee->worst_rssi = -85;
@@ -11812,7 +11812,7 @@ module_param(rtap_iface, int, 0444);
11812MODULE_PARM_DESC(rtap_iface, "create the rtap interface (1 - create, default 0)"); 11812MODULE_PARM_DESC(rtap_iface, "create the rtap interface (1 - create, default 0)");
11813#endif 11813#endif
11814 11814
11815#ifdef CONFIG_IPW_QOS 11815#ifdef CONFIG_IPW2200_QOS
11816module_param(qos_enable, int, 0444); 11816module_param(qos_enable, int, 0444);
11817MODULE_PARM_DESC(qos_enable, "enable all QoS functionalitis"); 11817MODULE_PARM_DESC(qos_enable, "enable all QoS functionalitis");
11818 11818
@@ -11827,7 +11827,7 @@ MODULE_PARM_DESC(burst_duration_CCK, "set CCK burst value");
11827 11827
11828module_param(burst_duration_OFDM, int, 0444); 11828module_param(burst_duration_OFDM, int, 0444);
11829MODULE_PARM_DESC(burst_duration_OFDM, "set OFDM burst value"); 11829MODULE_PARM_DESC(burst_duration_OFDM, "set OFDM burst value");
11830#endif /* CONFIG_IPW_QOS */ 11830#endif /* CONFIG_IPW2200_QOS */
11831 11831
11832#ifdef CONFIG_IPW2200_MONITOR 11832#ifdef CONFIG_IPW2200_MONITOR
11833module_param(mode, int, 0444); 11833module_param(mode, int, 0444);