aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/hostap/hostap_80211_tx.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2009-08-31 15:50:57 -0400
committerDavid S. Miller <davem@davemloft.net>2009-09-01 04:14:04 -0400
commitd0cf9c0dadcdc89a755bcb301cfc9c796eb28ccf (patch)
treec201ed345e104100288d57c8b3ae46d486b56118 /drivers/net/wireless/hostap/hostap_80211_tx.c
parent0fc480987e69f22b9212f087545b4d1ca6950807 (diff)
wireless: convert drivers to netdev_tx_t
Mostly just simple conversions: * ray_cs had bogus return of NET_TX_LOCKED but driver was not using NETIF_F_LLTX * hostap and ipw2x00 had some code that returned value from a called function that also had to change to return netdev_tx_t Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/hostap/hostap_80211_tx.c')
-rw-r--r--drivers/net/wireless/hostap/hostap_80211_tx.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/net/wireless/hostap/hostap_80211_tx.c b/drivers/net/wireless/hostap/hostap_80211_tx.c
index 1fe1bbabb907..90108b698f11 100644
--- a/drivers/net/wireless/hostap/hostap_80211_tx.c
+++ b/drivers/net/wireless/hostap/hostap_80211_tx.c
@@ -53,7 +53,8 @@ void hostap_dump_tx_80211(const char *name, struct sk_buff *skb)
53/* hard_start_xmit function for data interfaces (wlan#, wlan#wds#, wlan#sta) 53/* hard_start_xmit function for data interfaces (wlan#, wlan#wds#, wlan#sta)
54 * Convert Ethernet header into a suitable IEEE 802.11 header depending on 54 * Convert Ethernet header into a suitable IEEE 802.11 header depending on
55 * device configuration. */ 55 * device configuration. */
56int hostap_data_start_xmit(struct sk_buff *skb, struct net_device *dev) 56netdev_tx_t hostap_data_start_xmit(struct sk_buff *skb,
57 struct net_device *dev)
57{ 58{
58 struct hostap_interface *iface; 59 struct hostap_interface *iface;
59 local_info_t *local; 60 local_info_t *local;
@@ -261,7 +262,8 @@ int hostap_data_start_xmit(struct sk_buff *skb, struct net_device *dev)
261 262
262 263
263/* hard_start_xmit function for hostapd wlan#ap interfaces */ 264/* hard_start_xmit function for hostapd wlan#ap interfaces */
264int hostap_mgmt_start_xmit(struct sk_buff *skb, struct net_device *dev) 265netdev_tx_t hostap_mgmt_start_xmit(struct sk_buff *skb,
266 struct net_device *dev)
265{ 267{
266 struct hostap_interface *iface; 268 struct hostap_interface *iface;
267 local_info_t *local; 269 local_info_t *local;
@@ -373,11 +375,12 @@ static struct sk_buff * hostap_tx_encrypt(struct sk_buff *skb,
373/* hard_start_xmit function for master radio interface wifi#. 375/* hard_start_xmit function for master radio interface wifi#.
374 * AP processing (TX rate control, power save buffering, etc.). 376 * AP processing (TX rate control, power save buffering, etc.).
375 * Use hardware TX function to send the frame. */ 377 * Use hardware TX function to send the frame. */
376int hostap_master_start_xmit(struct sk_buff *skb, struct net_device *dev) 378netdev_tx_t hostap_master_start_xmit(struct sk_buff *skb,
379 struct net_device *dev)
377{ 380{
378 struct hostap_interface *iface; 381 struct hostap_interface *iface;
379 local_info_t *local; 382 local_info_t *local;
380 int ret = NETDEV_TX_BUSY; 383 netdev_tx_t ret = NETDEV_TX_BUSY;
381 u16 fc; 384 u16 fc;
382 struct hostap_tx_data tx; 385 struct hostap_tx_data tx;
383 ap_tx_ret tx_ret; 386 ap_tx_ret tx_ret;