iwlwifi: virtualize the op_mode
[deliverable/linux.git] / drivers / net / wireless / iwlwifi / iwl-dev.h
index 494c696dc1779468504acd3f4a7675c60c008751..479d3281a9723591914798f9cdf44b6eb7afeb9e 100644 (file)
@@ -50,6 +50,7 @@
 #include "iwl-bus.h"
 #include "iwl-trans.h"
 #include "iwl-shared.h"
+#include "iwl-op-mode.h"
 
 struct iwl_tx_queue;
 
@@ -710,6 +711,13 @@ struct iwl_wipan_noa_data {
        u8 data[];
 };
 
+#define IWL_OP_MODE_GET_DVM(_iwl_op_mode) \
+       ((struct iwl_priv *) ((_iwl_op_mode)->op_mode_specific))
+
+#define IWL_MAC80211_GET_DVM(_hw) \
+       ((struct iwl_priv *) ((struct iwl_op_mode *) \
+       (_hw)->priv)->op_mode_specific)
+
 struct iwl_priv {
 
        /*data shared among all the driver's layers */
This page took 0.024568 seconds and 5 git commands to generate.