iwlwifi: mvm: reflect TDLS pm state in mvmvif->pm_enabled
authorArik Nemtsov <arik@wizery.com>
Sun, 22 Feb 2015 17:15:04 +0000 (19:15 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 12 Mar 2015 07:57:39 +0000 (09:57 +0200)
commitfcf23352e0ff500676ac4923c68c20a1fe55fb5e
tree8e9c14aa7af523bed18c1e0855ff5a8b16dc38c8
parent9beda940594f6646f97b7927e202ae9504654f9d
iwlwifi: mvm: reflect TDLS pm state in mvmvif->pm_enabled

When entering D0i3, the MVM mutex cannot be grabbed. This interferes
with the calculation of the number of connected TDLS stations during
the setup of the power cmd.
The goal is to disable power saving for all vifs while any TDLS station
is connected. For this purpose it is enough to keep the pm_enabled
member of all mvmvifs as false. An update of the power state already
occurs when a TDLS station is added/removed, so the values are correctly
updated.

Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/power.c