diff options
author | Jouni Malinen <jkmaline@cc.hut.fi> | 2006-03-25 00:24:54 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2006-03-27 11:40:32 -0500 |
commit | 79058acaf5b6d4bcc3056382619de3ca9cebc62f (patch) | |
tree | 694484ef56c756f59ff18000c028f1995d1a2868 /drivers/net | |
parent | 0073602544954002e35699477dc59cdd5e9112e3 (diff) |
[PATCH] hostap: Make hostap_tx_encrypt() static
hostap_tx_encrypt() is used only inside hostap_80211_tx.c and there
are no plans to use it elsewhere in the future either, so let's make
it static. As a bonus, this should silence Coverity scanner from
complaining about bogus FORWARD_NULL case (CID: 274).
Signed-off-by: Jouni Malinen <jkmaline@cc.hut.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_80211.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/hostap/hostap_80211_tx.c | 7 |
2 files changed, 3 insertions, 6 deletions
diff --git a/drivers/net/wireless/hostap/hostap_80211.h b/drivers/net/wireless/hostap/hostap_80211.h index 1fc72fe511e9..cc1ee7f4f5f8 100644 --- a/drivers/net/wireless/hostap/hostap_80211.h +++ b/drivers/net/wireless/hostap/hostap_80211.h | |||
@@ -92,8 +92,6 @@ void hostap_dump_rx_80211(const char *name, struct sk_buff *skb, | |||
92 | void hostap_dump_tx_80211(const char *name, struct sk_buff *skb); | 92 | void hostap_dump_tx_80211(const char *name, struct sk_buff *skb); |
93 | int hostap_data_start_xmit(struct sk_buff *skb, struct net_device *dev); | 93 | int hostap_data_start_xmit(struct sk_buff *skb, struct net_device *dev); |
94 | int hostap_mgmt_start_xmit(struct sk_buff *skb, struct net_device *dev); | 94 | int hostap_mgmt_start_xmit(struct sk_buff *skb, struct net_device *dev); |
95 | struct sk_buff * hostap_tx_encrypt(struct sk_buff *skb, | ||
96 | struct ieee80211_crypt_data *crypt); | ||
97 | int hostap_master_start_xmit(struct sk_buff *skb, struct net_device *dev); | 95 | int hostap_master_start_xmit(struct sk_buff *skb, struct net_device *dev); |
98 | 96 | ||
99 | #endif /* HOSTAP_80211_H */ | 97 | #endif /* HOSTAP_80211_H */ |
diff --git a/drivers/net/wireless/hostap/hostap_80211_tx.c b/drivers/net/wireless/hostap/hostap_80211_tx.c index 4a85e63906f1..a881212e1fae 100644 --- a/drivers/net/wireless/hostap/hostap_80211_tx.c +++ b/drivers/net/wireless/hostap/hostap_80211_tx.c | |||
@@ -299,8 +299,8 @@ int hostap_mgmt_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
299 | 299 | ||
300 | 300 | ||
301 | /* Called only from software IRQ */ | 301 | /* Called only from software IRQ */ |
302 | struct sk_buff * hostap_tx_encrypt(struct sk_buff *skb, | 302 | static struct sk_buff * hostap_tx_encrypt(struct sk_buff *skb, |
303 | struct ieee80211_crypt_data *crypt) | 303 | struct ieee80211_crypt_data *crypt) |
304 | { | 304 | { |
305 | struct hostap_interface *iface; | 305 | struct hostap_interface *iface; |
306 | local_info_t *local; | 306 | local_info_t *local; |
@@ -317,7 +317,7 @@ struct sk_buff * hostap_tx_encrypt(struct sk_buff *skb, | |||
317 | } | 317 | } |
318 | 318 | ||
319 | if (local->tkip_countermeasures && | 319 | if (local->tkip_countermeasures && |
320 | crypt && crypt->ops && strcmp(crypt->ops->name, "TKIP") == 0) { | 320 | strcmp(crypt->ops->name, "TKIP") == 0) { |
321 | hdr = (struct ieee80211_hdr_4addr *) skb->data; | 321 | hdr = (struct ieee80211_hdr_4addr *) skb->data; |
322 | if (net_ratelimit()) { | 322 | if (net_ratelimit()) { |
323 | printk(KERN_DEBUG "%s: TKIP countermeasures: dropped " | 323 | printk(KERN_DEBUG "%s: TKIP countermeasures: dropped " |
@@ -535,5 +535,4 @@ int hostap_master_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
535 | 535 | ||
536 | 536 | ||
537 | EXPORT_SYMBOL(hostap_dump_tx_80211); | 537 | EXPORT_SYMBOL(hostap_dump_tx_80211); |
538 | EXPORT_SYMBOL(hostap_tx_encrypt); | ||
539 | EXPORT_SYMBOL(hostap_master_start_xmit); | 538 | EXPORT_SYMBOL(hostap_master_start_xmit); |