diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2007-11-15 18:05:47 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:04:46 -0500 |
commit | 1007832103d016d1563fab71d4cf2b057a0bcceb (patch) | |
tree | 3b5080b01bee6e1f98cc9489382c534e963ac748 /drivers/net/wireless/libertas/tx.c | |
parent | 9a62f73b1a3bbd35a6f84fcd6636e672b09981ec (diff) |
libertas: move to uniform lbs_/LBS_ namespace
This patch unifies the namespace of variables, functions defines
and structures. It does:
- rename libertas_XXX to lbs_XXX
- rename LIBERTAS_XXX to lbs_XXX
- rename wlan_XXX to lbs_XXX
- rename WLAN_XXX to LBS_XXX (but only those that were
defined in libertas-local *.h files, e.g. not defines
from net/ieee80211.h)
While passing, I fixed some checkpatch.pl errors too.
Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/tx.c')
-rw-r--r-- | drivers/net/wireless/libertas/tx.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/drivers/net/wireless/libertas/tx.c b/drivers/net/wireless/libertas/tx.c index fbec06c10dd7..93725ce55b10 100644 --- a/drivers/net/wireless/libertas/tx.c +++ b/drivers/net/wireless/libertas/tx.c | |||
@@ -52,11 +52,11 @@ static u32 convert_radiotap_rate_to_mv(u8 rate) | |||
52 | * @brief This function processes a single packet and sends | 52 | * @brief This function processes a single packet and sends |
53 | * to IF layer | 53 | * to IF layer |
54 | * | 54 | * |
55 | * @param priv A pointer to wlan_private structure | 55 | * @param priv A pointer to lbs_private structure |
56 | * @param skb A pointer to skb which includes TX packet | 56 | * @param skb A pointer to skb which includes TX packet |
57 | * @return 0 or -1 | 57 | * @return 0 or -1 |
58 | */ | 58 | */ |
59 | static int SendSinglePacket(wlan_private * priv, struct sk_buff *skb) | 59 | static int SendSinglePacket(lbs_private *priv, struct sk_buff *skb) |
60 | { | 60 | { |
61 | int ret = 0; | 61 | int ret = 0; |
62 | struct txpd localtxpd; | 62 | struct txpd localtxpd; |
@@ -86,7 +86,7 @@ static int SendSinglePacket(wlan_private * priv, struct sk_buff *skb) | |||
86 | plocaltxpd->tx_packet_location = cpu_to_le32(sizeof(struct txpd)); | 86 | plocaltxpd->tx_packet_location = cpu_to_le32(sizeof(struct txpd)); |
87 | 87 | ||
88 | p802x_hdr = skb->data; | 88 | p802x_hdr = skb->data; |
89 | if (priv->adapter->monitormode != WLAN_MONITOR_OFF) { | 89 | if (priv->adapter->monitormode != LBS_MONITOR_OFF) { |
90 | 90 | ||
91 | /* locate radiotap header */ | 91 | /* locate radiotap header */ |
92 | pradiotap_hdr = (struct tx_radiotap_hdr *)skb->data; | 92 | pradiotap_hdr = (struct tx_radiotap_hdr *)skb->data; |
@@ -106,7 +106,7 @@ static int SendSinglePacket(wlan_private * priv, struct sk_buff *skb) | |||
106 | 106 | ||
107 | } | 107 | } |
108 | /* copy destination address from 802.3 or 802.11 header */ | 108 | /* copy destination address from 802.3 or 802.11 header */ |
109 | if (priv->adapter->monitormode != WLAN_MONITOR_OFF) | 109 | if (priv->adapter->monitormode != LBS_MONITOR_OFF) |
110 | memcpy(plocaltxpd->tx_dest_addr_high, p802x_hdr + 4, ETH_ALEN); | 110 | memcpy(plocaltxpd->tx_dest_addr_high, p802x_hdr + 4, ETH_ALEN); |
111 | else | 111 | else |
112 | memcpy(plocaltxpd->tx_dest_addr_high, p802x_hdr, ETH_ALEN); | 112 | memcpy(plocaltxpd->tx_dest_addr_high, p802x_hdr, ETH_ALEN); |
@@ -144,7 +144,7 @@ done: | |||
144 | priv->stats.tx_errors++; | 144 | priv->stats.tx_errors++; |
145 | } | 145 | } |
146 | 146 | ||
147 | if (!ret && priv->adapter->monitormode != WLAN_MONITOR_OFF) { | 147 | if (!ret && priv->adapter->monitormode != LBS_MONITOR_OFF) { |
148 | /* Keep the skb to echo it back once Tx feedback is | 148 | /* Keep the skb to echo it back once Tx feedback is |
149 | received from FW */ | 149 | received from FW */ |
150 | skb_orphan(skb); | 150 | skb_orphan(skb); |
@@ -164,9 +164,9 @@ done: | |||
164 | } | 164 | } |
165 | 165 | ||
166 | 166 | ||
167 | void libertas_tx_runqueue(wlan_private *priv) | 167 | void lbs_tx_runqueue(lbs_private *priv) |
168 | { | 168 | { |
169 | wlan_adapter *adapter = priv->adapter; | 169 | lbs_adapter *adapter = priv->adapter; |
170 | int i; | 170 | int i; |
171 | 171 | ||
172 | spin_lock(&adapter->txqueue_lock); | 172 | spin_lock(&adapter->txqueue_lock); |
@@ -180,9 +180,9 @@ void libertas_tx_runqueue(wlan_private *priv) | |||
180 | spin_unlock(&adapter->txqueue_lock); | 180 | spin_unlock(&adapter->txqueue_lock); |
181 | } | 181 | } |
182 | 182 | ||
183 | static void wlan_tx_queue(wlan_private *priv, struct sk_buff *skb) | 183 | static void lbs_tx_queue(lbs_private *priv, struct sk_buff *skb) |
184 | { | 184 | { |
185 | wlan_adapter *adapter = priv->adapter; | 185 | lbs_adapter *adapter = priv->adapter; |
186 | 186 | ||
187 | spin_lock(&adapter->txqueue_lock); | 187 | spin_lock(&adapter->txqueue_lock); |
188 | 188 | ||
@@ -205,10 +205,10 @@ static void wlan_tx_queue(wlan_private *priv, struct sk_buff *skb) | |||
205 | * @brief This function checks the conditions and sends packet to IF | 205 | * @brief This function checks the conditions and sends packet to IF |
206 | * layer if everything is ok. | 206 | * layer if everything is ok. |
207 | * | 207 | * |
208 | * @param priv A pointer to wlan_private structure | 208 | * @param priv A pointer to lbs_private structure |
209 | * @return n/a | 209 | * @return n/a |
210 | */ | 210 | */ |
211 | int libertas_process_tx(wlan_private * priv, struct sk_buff *skb) | 211 | int lbs_process_tx(lbs_private *priv, struct sk_buff *skb) |
212 | { | 212 | { |
213 | int ret = -1; | 213 | int ret = -1; |
214 | 214 | ||
@@ -223,7 +223,7 @@ int libertas_process_tx(wlan_private * priv, struct sk_buff *skb) | |||
223 | 223 | ||
224 | if ((priv->adapter->psstate == PS_STATE_SLEEP) || | 224 | if ((priv->adapter->psstate == PS_STATE_SLEEP) || |
225 | (priv->adapter->psstate == PS_STATE_PRE_SLEEP)) { | 225 | (priv->adapter->psstate == PS_STATE_PRE_SLEEP)) { |
226 | wlan_tx_queue(priv, skb); | 226 | lbs_tx_queue(priv, skb); |
227 | return ret; | 227 | return ret; |
228 | } | 228 | } |
229 | 229 | ||
@@ -239,20 +239,20 @@ done: | |||
239 | * @brief This function sends to the host the last transmitted packet, | 239 | * @brief This function sends to the host the last transmitted packet, |
240 | * filling the radiotap headers with transmission information. | 240 | * filling the radiotap headers with transmission information. |
241 | * | 241 | * |
242 | * @param priv A pointer to wlan_private structure | 242 | * @param priv A pointer to lbs_private structure |
243 | * @param status A 32 bit value containing transmission status. | 243 | * @param status A 32 bit value containing transmission status. |
244 | * | 244 | * |
245 | * @returns void | 245 | * @returns void |
246 | */ | 246 | */ |
247 | void libertas_send_tx_feedback(wlan_private * priv) | 247 | void lbs_send_tx_feedback(lbs_private *priv) |
248 | { | 248 | { |
249 | wlan_adapter *adapter = priv->adapter; | 249 | lbs_adapter *adapter = priv->adapter; |
250 | struct tx_radiotap_hdr *radiotap_hdr; | 250 | struct tx_radiotap_hdr *radiotap_hdr; |
251 | u32 status = adapter->eventcause; | 251 | u32 status = adapter->eventcause; |
252 | int txfail; | 252 | int txfail; |
253 | int try_count; | 253 | int try_count; |
254 | 254 | ||
255 | if (adapter->monitormode == WLAN_MONITOR_OFF || | 255 | if (adapter->monitormode == LBS_MONITOR_OFF || |
256 | adapter->currenttxskb == NULL) | 256 | adapter->currenttxskb == NULL) |
257 | return; | 257 | return; |
258 | 258 | ||
@@ -270,13 +270,13 @@ void libertas_send_tx_feedback(wlan_private * priv) | |||
270 | try_count = (status >> 16) & 0xff; | 270 | try_count = (status >> 16) & 0xff; |
271 | radiotap_hdr->data_retries = (try_count) ? | 271 | radiotap_hdr->data_retries = (try_count) ? |
272 | (1 + adapter->txretrycount - try_count) : 0; | 272 | (1 + adapter->txretrycount - try_count) : 0; |
273 | libertas_upload_rx_packet(priv, adapter->currenttxskb); | 273 | lbs_upload_rx_packet(priv, adapter->currenttxskb); |
274 | adapter->currenttxskb = NULL; | 274 | adapter->currenttxskb = NULL; |
275 | priv->adapter->TxLockFlag = 0; | 275 | priv->adapter->TxLockFlag = 0; |
276 | if (priv->adapter->connect_status == LIBERTAS_CONNECTED) { | 276 | if (priv->adapter->connect_status == LBS_CONNECTED) { |
277 | netif_wake_queue(priv->dev); | 277 | netif_wake_queue(priv->dev); |
278 | if (priv->mesh_dev) | 278 | if (priv->mesh_dev) |
279 | netif_wake_queue(priv->mesh_dev); | 279 | netif_wake_queue(priv->mesh_dev); |
280 | } | 280 | } |
281 | } | 281 | } |
282 | EXPORT_SYMBOL_GPL(libertas_send_tx_feedback); | 282 | EXPORT_SYMBOL_GPL(lbs_send_tx_feedback); |