aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/tx.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-11-18 12:42:05 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-11-18 17:09:27 -0500
commit62ae67be31c2346b6d74653a148ddbd1b9a94424 (patch)
tree91f59c821a4e3f91a529887d97989b1969720f65 /net/mac80211/tx.c
parent875405a7793e9c35fab33819e7e5df7a98b6064c (diff)
mac80211: remove encrypt parameter from ieee80211_tx_skb
Since the flags moved into skb->cb, there's no longer a need to have the encrypt bool passed into the function, anyone who requires it set to 0 (false) can just set the flag directly. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r--net/mac80211/tx.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index bd916437e2fb..b3c1faeb5927 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -2281,17 +2281,12 @@ ieee80211_get_buffered_bc(struct ieee80211_hw *hw,
2281} 2281}
2282EXPORT_SYMBOL(ieee80211_get_buffered_bc); 2282EXPORT_SYMBOL(ieee80211_get_buffered_bc);
2283 2283
2284void ieee80211_tx_skb(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb, 2284void ieee80211_tx_skb(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb)
2285 int encrypt)
2286{ 2285{
2287 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
2288 skb_set_mac_header(skb, 0); 2286 skb_set_mac_header(skb, 0);
2289 skb_set_network_header(skb, 0); 2287 skb_set_network_header(skb, 0);
2290 skb_set_transport_header(skb, 0); 2288 skb_set_transport_header(skb, 0);
2291 2289
2292 if (!encrypt)
2293 info->flags |= IEEE80211_TX_INTFL_DONT_ENCRYPT;
2294
2295 /* 2290 /*
2296 * The other path calling ieee80211_xmit is from the tasklet, 2291 * The other path calling ieee80211_xmit is from the tasklet,
2297 * and while we can handle concurrent transmissions locking 2292 * and while we can handle concurrent transmissions locking