diff options
Diffstat (limited to 'drivers/net/wireless/ath/carl9170/carl9170.h')
-rw-r--r-- | drivers/net/wireless/ath/carl9170/carl9170.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/carl9170/carl9170.h b/drivers/net/wireless/ath/carl9170/carl9170.h index 74350d63f686..6cfbb419e2f6 100644 --- a/drivers/net/wireless/ath/carl9170/carl9170.h +++ b/drivers/net/wireless/ath/carl9170/carl9170.h | |||
@@ -43,6 +43,7 @@ | |||
43 | #include <linux/firmware.h> | 43 | #include <linux/firmware.h> |
44 | #include <linux/completion.h> | 44 | #include <linux/completion.h> |
45 | #include <linux/spinlock.h> | 45 | #include <linux/spinlock.h> |
46 | #include <linux/hw_random.h> | ||
46 | #include <net/cfg80211.h> | 47 | #include <net/cfg80211.h> |
47 | #include <net/mac80211.h> | 48 | #include <net/mac80211.h> |
48 | #include <linux/usb.h> | 49 | #include <linux/usb.h> |
@@ -449,6 +450,17 @@ struct ar9170 { | |||
449 | unsigned int off_override; | 450 | unsigned int off_override; |
450 | bool state; | 451 | bool state; |
451 | } ps; | 452 | } ps; |
453 | |||
454 | #ifdef CONFIG_CARL9170_HWRNG | ||
455 | # define CARL9170_HWRNG_CACHE_SIZE CARL9170_MAX_CMD_PAYLOAD_LEN | ||
456 | struct { | ||
457 | struct hwrng rng; | ||
458 | bool initialized; | ||
459 | char name[30 + 1]; | ||
460 | u16 cache[CARL9170_HWRNG_CACHE_SIZE / sizeof(u16)]; | ||
461 | unsigned int cache_idx; | ||
462 | } rng; | ||
463 | #endif /* CONFIG_CARL9170_HWRNG */ | ||
452 | }; | 464 | }; |
453 | 465 | ||
454 | enum carl9170_ps_off_override_reasons { | 466 | enum carl9170_ps_off_override_reasons { |