aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-trans.h
diff options
context:
space:
mode:
authorMeenakshi Venkataraman <meenakshi.venkataraman@intel.com>2012-03-07 12:52:35 -0500
committerJohn W. Linville <linville@tuxdriver.com>2012-03-08 13:59:55 -0500
commit92d743ae105314a865b3fca9128da11525d22203 (patch)
tree6298acf9da2fab5531449e15182ee01acdb120ba /drivers/net/wireless/iwlwifi/iwl-trans.h
parent3251715dc51a8cbd2cd030ff94fe36f37b4b9e74 (diff)
iwlwifi: configure transport layer from dvm op mode
Introduce the iwl_trans_config struct which contains state variables that only the op mode can determine, but which the transport layer needs to know. Signed-off-by: Meenakshi Venkataraman <meenakshi.venkataraman@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-trans.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-trans.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-trans.h b/drivers/net/wireless/iwlwifi/iwl-trans.h
index ed6ab449e439..b6fd42779624 100644
--- a/drivers/net/wireless/iwlwifi/iwl-trans.h
+++ b/drivers/net/wireless/iwlwifi/iwl-trans.h
@@ -275,6 +275,16 @@ static inline struct page *rxb_steal_page(struct iwl_rx_cmd_buffer *r)
275} 275}
276 276
277/** 277/**
278 * struct iwl_trans_config - transport configuration
279 *
280 * @op_mode: pointer to the upper layer.
281 * Must be set before any other call.
282 */
283struct iwl_trans_config {
284 struct iwl_op_mode *op_mode;
285};
286
287/**
278 * struct iwl_trans_ops - transport specific operations 288 * struct iwl_trans_ops - transport specific operations
279 * 289 *
280 * All the handlers MUST be implemented 290 * All the handlers MUST be implemented
@@ -408,13 +418,13 @@ struct iwl_trans {
408}; 418};
409 419
410static inline void iwl_trans_configure(struct iwl_trans *trans, 420static inline void iwl_trans_configure(struct iwl_trans *trans,
411 struct iwl_op_mode *op_mode) 421 const struct iwl_trans_config *trans_cfg)
412{ 422{
413 /* 423 /*
414 * only set the op_mode for the moment. Later on, this function will do 424 * only set the op_mode for the moment. Later on, this function will do
415 * more 425 * more
416 */ 426 */
417 trans->op_mode = op_mode; 427 trans->op_mode = trans_cfg->op_mode;
418} 428}
419 429
420static inline int iwl_trans_start_hw(struct iwl_trans *trans) 430static inline int iwl_trans_start_hw(struct iwl_trans *trans)