diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-09-09 09:07:09 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-09-11 15:53:39 -0400 |
commit | e50db65c0dad109aae77c353305853b31555b228 (patch) | |
tree | 1c7f765e172092e2d6d0e63a1faa13c004f79c7a /net/mac80211/util.c | |
parent | 759ef3eb1eeba8ff7411771e7b9cf6bfd6bb9cfe (diff) |
mac80211: move frame TX function
The ieee80211_sta_tx function isn't MLME code any more,
it's getting used by a lot of code. Move it to utils and
rename it to ieee80211_tx_skb.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r-- | net/mac80211/util.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c index 55be3ef5c755..c3a22ab2ad2e 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c | |||
@@ -598,3 +598,17 @@ void ieee80211_set_wmm_default(struct ieee80211_sub_if_data *sdata) | |||
598 | for (i = 0; i < local_to_hw(local)->queues; i++) | 598 | for (i = 0; i < local_to_hw(local)->queues; i++) |
599 | local->ops->conf_tx(local_to_hw(local), i, &qparam); | 599 | local->ops->conf_tx(local_to_hw(local), i, &qparam); |
600 | } | 600 | } |
601 | |||
602 | void ieee80211_tx_skb(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb, | ||
603 | int encrypt) | ||
604 | { | ||
605 | skb->dev = sdata->local->mdev; | ||
606 | skb_set_mac_header(skb, 0); | ||
607 | skb_set_network_header(skb, 0); | ||
608 | skb_set_transport_header(skb, 0); | ||
609 | |||
610 | skb->iif = sdata->dev->ifindex; | ||
611 | skb->do_not_encrypt = !encrypt; | ||
612 | |||
613 | dev_queue_xmit(skb); | ||
614 | } | ||