diff options
Diffstat (limited to 'drivers/net/wireless/iwlegacy/common.h')
-rw-r--r-- | drivers/net/wireless/iwlegacy/common.h | 51 |
1 files changed, 6 insertions, 45 deletions
diff --git a/drivers/net/wireless/iwlegacy/common.h b/drivers/net/wireless/iwlegacy/common.h index 873182ec3fbf..b2a6e52f8233 100644 --- a/drivers/net/wireless/iwlegacy/common.h +++ b/drivers/net/wireless/iwlegacy/common.h | |||
@@ -1766,57 +1766,21 @@ int il_alloc_txq_mem(struct il_priv *il); | |||
1766 | void il_txq_mem(struct il_priv *il); | 1766 | void il_txq_mem(struct il_priv *il); |
1767 | 1767 | ||
1768 | #ifdef CONFIG_IWLEGACY_DEBUGFS | 1768 | #ifdef CONFIG_IWLEGACY_DEBUGFS |
1769 | int il_alloc_traffic_mem(struct il_priv *il); | 1769 | extern void il_update_stats(struct il_priv *il, bool is_tx, __le16 fc, u16 len); |
1770 | void il_free_traffic_mem(struct il_priv *il); | ||
1771 | void il_reset_traffic_log(struct il_priv *il); | ||
1772 | void il_dbg_log_tx_data_frame(struct il_priv *il, u16 length, | ||
1773 | struct ieee80211_hdr *header); | ||
1774 | void il_dbg_log_rx_data_frame(struct il_priv *il, u16 length, | ||
1775 | struct ieee80211_hdr *header); | ||
1776 | const char *il_get_mgmt_string(int cmd); | ||
1777 | const char *il_get_ctrl_string(int cmd); | ||
1778 | void il_clear_traffic_stats(struct il_priv *il); | ||
1779 | void il_update_stats(struct il_priv *il, bool is_tx, __le16 fc, u16 len); | ||
1780 | #else | 1770 | #else |
1781 | static inline int | ||
1782 | il_alloc_traffic_mem(struct il_priv *il) | ||
1783 | { | ||
1784 | return 0; | ||
1785 | } | ||
1786 | |||
1787 | static inline void | ||
1788 | il_free_traffic_mem(struct il_priv *il) | ||
1789 | { | ||
1790 | } | ||
1791 | |||
1792 | static inline void | ||
1793 | il_reset_traffic_log(struct il_priv *il) | ||
1794 | { | ||
1795 | } | ||
1796 | |||
1797 | static inline void | ||
1798 | il_dbg_log_tx_data_frame(struct il_priv *il, u16 length, | ||
1799 | struct ieee80211_hdr *header) | ||
1800 | { | ||
1801 | } | ||
1802 | |||
1803 | static inline void | ||
1804 | il_dbg_log_rx_data_frame(struct il_priv *il, u16 length, | ||
1805 | struct ieee80211_hdr *header) | ||
1806 | { | ||
1807 | } | ||
1808 | |||
1809 | static inline void | 1771 | static inline void |
1810 | il_update_stats(struct il_priv *il, bool is_tx, __le16 fc, u16 len) | 1772 | il_update_stats(struct il_priv *il, bool is_tx, __le16 fc, u16 len) |
1811 | { | 1773 | { |
1812 | } | 1774 | } |
1813 | #endif | 1775 | #endif |
1776 | |||
1814 | /***************************************************** | 1777 | /***************************************************** |
1815 | * RX handlers. | 1778 | * Handlers |
1816 | * **************************************************/ | 1779 | ***************************************************/ |
1817 | void il_hdl_pm_sleep(struct il_priv *il, struct il_rx_buf *rxb); | 1780 | void il_hdl_pm_sleep(struct il_priv *il, struct il_rx_buf *rxb); |
1818 | void il_hdl_pm_debug_stats(struct il_priv *il, struct il_rx_buf *rxb); | 1781 | void il_hdl_pm_debug_stats(struct il_priv *il, struct il_rx_buf *rxb); |
1819 | void il_hdl_error(struct il_priv *il, struct il_rx_buf *rxb); | 1782 | void il_hdl_error(struct il_priv *il, struct il_rx_buf *rxb); |
1783 | void il_hdl_csa(struct il_priv *il, struct il_rx_buf *rxb); | ||
1820 | 1784 | ||
1821 | /***************************************************** | 1785 | /***************************************************** |
1822 | * RX | 1786 | * RX |
@@ -1827,13 +1791,10 @@ int il_rx_queue_alloc(struct il_priv *il); | |||
1827 | void il_rx_queue_update_write_ptr(struct il_priv *il, struct il_rx_queue *q); | 1791 | void il_rx_queue_update_write_ptr(struct il_priv *il, struct il_rx_queue *q); |
1828 | int il_rx_queue_space(const struct il_rx_queue *q); | 1792 | int il_rx_queue_space(const struct il_rx_queue *q); |
1829 | void il_tx_cmd_complete(struct il_priv *il, struct il_rx_buf *rxb); | 1793 | void il_tx_cmd_complete(struct il_priv *il, struct il_rx_buf *rxb); |
1830 | /* Handlers */ | 1794 | |
1831 | void il_hdl_spectrum_measurement(struct il_priv *il, struct il_rx_buf *rxb); | 1795 | void il_hdl_spectrum_measurement(struct il_priv *il, struct il_rx_buf *rxb); |
1832 | void il_recover_from_stats(struct il_priv *il, struct il_rx_pkt *pkt); | 1796 | void il_recover_from_stats(struct il_priv *il, struct il_rx_pkt *pkt); |
1833 | void il_chswitch_done(struct il_priv *il, bool is_success); | 1797 | void il_chswitch_done(struct il_priv *il, bool is_success); |
1834 | void il_hdl_csa(struct il_priv *il, struct il_rx_buf *rxb); | ||
1835 | |||
1836 | /* TX helpers */ | ||
1837 | 1798 | ||
1838 | /***************************************************** | 1799 | /***************************************************** |
1839 | * TX | 1800 | * TX |