iwlwifi: Add power level support
[deliverable/linux.git] / drivers / net / wireless / iwlwifi / iwl-core.c
index d8a226e68ed1645a23cef1c0de7dbe7db7444124..c336b1991f1ab8e4b49cf3570f435126cdf80070 100644 (file)
@@ -37,6 +37,7 @@ struct iwl_priv; /* FIXME: remove */
 #include "iwl-4965.h" /* FIXME: remove */
 #include "iwl-core.h"
 #include "iwl-rfkill.h"
+#include "iwl-power.h"
 
 
 MODULE_DESCRIPTION("iwl core");
@@ -263,8 +264,10 @@ int iwlcore_low_level_notify(struct iwl_priv *priv,
                if (ret)
                        IWL_ERROR("Unable to initialize RFKILL system. "
                                  "Ignoring error: %d\n", ret);
+               iwl_power_initialize(priv);
                break;
        case IWLCORE_START_EVT:
+               iwl_power_update_mode(priv, 1);
                break;
        case IWLCORE_STOP_EVT:
                break;
@@ -277,3 +280,16 @@ int iwlcore_low_level_notify(struct iwl_priv *priv,
 }
 EXPORT_SYMBOL(iwlcore_low_level_notify);
 
+int iwl_send_statistics_request(struct iwl_priv *priv, u8 flags)
+{
+       u32 stat_flags = 0;
+       struct iwl_host_cmd cmd = {
+               .id = REPLY_STATISTICS_CMD,
+               .meta.flags = flags,
+               .len = sizeof(stat_flags),
+               .data = (u8 *) &stat_flags,
+       };
+       return iwl_send_cmd(priv, &cmd);
+}
+EXPORT_SYMBOL(iwl_send_statistics_request);
+
This page took 0.026626 seconds and 5 git commands to generate.