diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2012-02-09 09:08:15 -0500 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2012-02-27 16:26:53 -0500 |
commit | 7120d9894c363ee31fd529e5dd962452b639ab8e (patch) | |
tree | fd62f51d9580247416f5649fb47578d451cd72e0 /drivers/net/wireless/iwlwifi/iwl-op-mode.h | |
parent | 02e3835884f352ac707dcf14d8bf455c0c0acbc5 (diff) |
iwlwifi: virtualize op_mode's set_hw_rf_kill
Export it as "hw_rf_kill" notification.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-op-mode.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-op-mode.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-op-mode.h b/drivers/net/wireless/iwlwifi/iwl-op-mode.h index c1664e1fd26a..8ce4aac29b0a 100644 --- a/drivers/net/wireless/iwlwifi/iwl-op-mode.h +++ b/drivers/net/wireless/iwlwifi/iwl-op-mode.h | |||
@@ -84,6 +84,8 @@ struct iwl_rx_mem_buffer; | |||
84 | * Must be atomic | 84 | * Must be atomic |
85 | * @queue_not_full: notifies that a HW queue is not full any more. | 85 | * @queue_not_full: notifies that a HW queue is not full any more. |
86 | * Ac is the ac of the queue. Must be atomic | 86 | * Ac is the ac of the queue. Must be atomic |
87 | * @hw_rf_kill:notifies of a change in the HW rf kill switch. True means that | ||
88 | * the radio is killed. Must be atomic. | ||
87 | * @free_skb: allows the transport layer to free skbs that haven't been | 89 | * @free_skb: allows the transport layer to free skbs that haven't been |
88 | * reclaimed by the op_mode. This can happen when the driver is freed and | 90 | * reclaimed by the op_mode. This can happen when the driver is freed and |
89 | * there are Tx packets pending in the transport layer. | 91 | * there are Tx packets pending in the transport layer. |
@@ -96,6 +98,7 @@ struct iwl_op_mode_ops { | |||
96 | struct iwl_device_cmd *cmd); | 98 | struct iwl_device_cmd *cmd); |
97 | void (*queue_full)(struct iwl_op_mode *op_mode, u8 ac); | 99 | void (*queue_full)(struct iwl_op_mode *op_mode, u8 ac); |
98 | void (*queue_not_full)(struct iwl_op_mode *op_mode, u8 ac); | 100 | void (*queue_not_full)(struct iwl_op_mode *op_mode, u8 ac); |
101 | void (*hw_rf_kill)(struct iwl_op_mode *op_mode, bool state); | ||
99 | void (*free_skb)(struct iwl_op_mode *op_mode, struct sk_buff *skb); | 102 | void (*free_skb)(struct iwl_op_mode *op_mode, struct sk_buff *skb); |
100 | }; | 103 | }; |
101 | 104 | ||
@@ -136,6 +139,12 @@ static inline void iwl_op_mode_queue_not_full(struct iwl_op_mode *op_mode, | |||
136 | op_mode->ops->queue_not_full(op_mode, ac); | 139 | op_mode->ops->queue_not_full(op_mode, ac); |
137 | } | 140 | } |
138 | 141 | ||
142 | static inline void iwl_op_mode_hw_rf_kill(struct iwl_op_mode *op_mode, | ||
143 | bool state) | ||
144 | { | ||
145 | op_mode->ops->hw_rf_kill(op_mode, state); | ||
146 | } | ||
147 | |||
139 | static inline void iwl_op_mode_free_skb(struct iwl_op_mode *op_mode, | 148 | static inline void iwl_op_mode_free_skb(struct iwl_op_mode *op_mode, |
140 | struct sk_buff *skb) | 149 | struct sk_buff *skb) |
141 | { | 150 | { |