iwlwifi: mvm: stop using DEVICE_POWER_FLAGS_CAM_MSK
authorJohannes Berg <johannes.berg@intel.com>
Fri, 4 Sep 2015 09:27:25 +0000 (11:27 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Mon, 5 Oct 2015 11:33:28 +0000 (14:33 +0300)
commitceef91c89480dd18bb3ac51e91280a233d0ca41f
tree74686590f19d6d905efd1098459358c42751ee73
parent5c1156efebc6b76b4a7daec844c19d2ce1d7bb03
iwlwifi: mvm: stop using DEVICE_POWER_FLAGS_CAM_MSK

The firmware has always treated these two bits to mean that
powersave is enabled when POWER_SAVE_ENA is set and CAM is
clear; it doesn't use them in any non-combined way.

Therefore, it's pointless to send it two bits, and the API
should be cleaned up. Prepare the driver by removing the CAM
bit and using only POWER_SAVE_ENA to indicate whether PS is
enabled or not.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/iwlwifi/mvm/fw-api-power.h
drivers/net/wireless/iwlwifi/mvm/power.c