From: Emmanuel Grumbach Date: Mon, 27 Jan 2014 14:57:33 +0000 (+0200) Subject: iwlwifi: mvm: refactor power code X-Git-Tag: v3.15-rc1~113^2~289^2^2~102^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5e7aa8e2561;p=pandora-kernel.git iwlwifi: mvm: refactor power code The main complexity of the power code is that it needs to take into account the firmware limitations. These limitations state that we need to have a global picture of the vifs present in the system to be able to decide if we can enable power management on a specific vif. Even device power save (as opposed to vif power management) must be disabled in certain circumstances (monitor vif). Refactor the current code to make this clearer by defining a function that explicitely computes these constraints. Signed-off-by: Emmanuel Grumbach --- Reading git-diff-tree failed