diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00lib.h')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00lib.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00lib.h b/drivers/net/wireless/rt2x00/rt2x00lib.h index c5fb3a72cf37..7bbc16b1b6c6 100644 --- a/drivers/net/wireless/rt2x00/rt2x00lib.h +++ b/drivers/net/wireless/rt2x00/rt2x00lib.h | |||
@@ -181,6 +181,8 @@ void rt2x00debug_register(struct rt2x00_dev *rt2x00dev); | |||
181 | void rt2x00debug_deregister(struct rt2x00_dev *rt2x00dev); | 181 | void rt2x00debug_deregister(struct rt2x00_dev *rt2x00dev); |
182 | void rt2x00debug_dump_frame(struct rt2x00_dev *rt2x00dev, | 182 | void rt2x00debug_dump_frame(struct rt2x00_dev *rt2x00dev, |
183 | enum rt2x00_dump_type type, struct sk_buff *skb); | 183 | enum rt2x00_dump_type type, struct sk_buff *skb); |
184 | void rt2x00debug_update_crypto(struct rt2x00_dev *rt2x00dev, | ||
185 | enum cipher cipher, enum rx_crypto status); | ||
184 | #else | 186 | #else |
185 | static inline void rt2x00debug_register(struct rt2x00_dev *rt2x00dev) | 187 | static inline void rt2x00debug_register(struct rt2x00_dev *rt2x00dev) |
186 | { | 188 | { |
@@ -195,9 +197,54 @@ static inline void rt2x00debug_dump_frame(struct rt2x00_dev *rt2x00dev, | |||
195 | struct sk_buff *skb) | 197 | struct sk_buff *skb) |
196 | { | 198 | { |
197 | } | 199 | } |
200 | |||
201 | static inline void rt2x00debug_update_crypto(struct rt2x00_dev *rt2x00dev, | ||
202 | enum cipher cipher, | ||
203 | enum rx_crypto status) | ||
204 | { | ||
205 | } | ||
198 | #endif /* CONFIG_RT2X00_LIB_DEBUGFS */ | 206 | #endif /* CONFIG_RT2X00_LIB_DEBUGFS */ |
199 | 207 | ||
200 | /* | 208 | /* |
209 | * Crypto handlers. | ||
210 | */ | ||
211 | #ifdef CONFIG_RT2X00_LIB_CRYPTO | ||
212 | enum cipher rt2x00crypto_key_to_cipher(struct ieee80211_key_conf *key); | ||
213 | unsigned int rt2x00crypto_tx_overhead(struct ieee80211_tx_info *tx_info); | ||
214 | void rt2x00crypto_tx_remove_iv(struct sk_buff *skb, unsigned int iv_len); | ||
215 | void rt2x00crypto_tx_insert_iv(struct sk_buff *skb); | ||
216 | void rt2x00crypto_rx_insert_iv(struct sk_buff *skb, unsigned int align, | ||
217 | unsigned int header_length, | ||
218 | struct rxdone_entry_desc *rxdesc); | ||
219 | #else | ||
220 | static inline enum cipher rt2x00crypto_key_to_cipher(struct ieee80211_key_conf *key) | ||
221 | { | ||
222 | return CIPHER_NONE; | ||
223 | } | ||
224 | |||
225 | static inline unsigned int rt2x00crypto_tx_overhead(struct ieee80211_tx_info *tx_info) | ||
226 | { | ||
227 | return 0; | ||
228 | } | ||
229 | |||
230 | static inline void rt2x00crypto_tx_remove_iv(struct sk_buff *skb, | ||
231 | unsigned int iv_len) | ||
232 | { | ||
233 | } | ||
234 | |||
235 | static inline void rt2x00crypto_tx_insert_iv(struct sk_buff *skb) | ||
236 | { | ||
237 | } | ||
238 | |||
239 | static inline void rt2x00crypto_rx_insert_iv(struct sk_buff *skb, | ||
240 | unsigned int align, | ||
241 | unsigned int header_length, | ||
242 | struct rxdone_entry_desc *rxdesc) | ||
243 | { | ||
244 | } | ||
245 | #endif | ||
246 | |||
247 | /* | ||
201 | * RFkill handlers. | 248 | * RFkill handlers. |
202 | */ | 249 | */ |
203 | #ifdef CONFIG_RT2X00_LIB_RFKILL | 250 | #ifdef CONFIG_RT2X00_LIB_RFKILL |