aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-op-mode.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-op-mode.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-op-mode.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-op-mode.h b/drivers/net/wireless/iwlwifi/iwl-op-mode.h
index b1fd251e88d5..ca947aebb727 100644
--- a/drivers/net/wireless/iwlwifi/iwl-op-mode.h
+++ b/drivers/net/wireless/iwlwifi/iwl-op-mode.h
@@ -125,6 +125,7 @@ struct iwl_fw;
125 * @cmd_queue_full: Called when the command queue gets full. Must be atomic. 125 * @cmd_queue_full: Called when the command queue gets full. Must be atomic.
126 * @nic_config: configure NIC, called before firmware is started. 126 * @nic_config: configure NIC, called before firmware is started.
127 * May sleep 127 * May sleep
128 * @wimax_active: invoked when WiMax becomes active. Must be atomic.
128 */ 129 */
129struct iwl_op_mode_ops { 130struct iwl_op_mode_ops {
130 struct iwl_op_mode *(*start)(struct iwl_trans *trans, 131 struct iwl_op_mode *(*start)(struct iwl_trans *trans,
@@ -139,6 +140,7 @@ struct iwl_op_mode_ops {
139 void (*nic_error)(struct iwl_op_mode *op_mode); 140 void (*nic_error)(struct iwl_op_mode *op_mode);
140 void (*cmd_queue_full)(struct iwl_op_mode *op_mode); 141 void (*cmd_queue_full)(struct iwl_op_mode *op_mode);
141 void (*nic_config)(struct iwl_op_mode *op_mode); 142 void (*nic_config)(struct iwl_op_mode *op_mode);
143 void (*wimax_active)(struct iwl_op_mode *op_mode);
142}; 144};
143 145
144/** 146/**
@@ -209,6 +211,11 @@ static inline void iwl_op_mode_nic_config(struct iwl_op_mode *op_mode)
209 op_mode->ops->nic_config(op_mode); 211 op_mode->ops->nic_config(op_mode);
210} 212}
211 213
214static inline void iwl_op_mode_wimax_active(struct iwl_op_mode *op_mode)
215{
216 op_mode->ops->wimax_active(op_mode);
217}
218
212/***************************************************** 219/*****************************************************
213* Op mode layers implementations 220* Op mode layers implementations
214******************************************************/ 221******************************************************/