iwlwifi: mvm: Fix quota command settings
authorIlan Peer <ilan.peer@intel.com>
Thu, 30 May 2013 04:31:01 +0000 (07:31 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 4 Jun 2013 11:15:27 +0000 (13:15 +0200)
commit8d683b79487c40d2a74ab9c484bde1929e016579
tree173e604e30cd2d7727447567f75b275d91e9a0bc
parent1094fa2646385a3bdbcdac5f2f270836d998b255
iwlwifi: mvm: Fix quota command settings

According to the FW implementation, the quota command should
have a valid entry for each active binding (where 'active' in
this context means that the binding is known to the FW). In case
the binding should not get any quota, the 'quota' should be set
to zero.

Not setting an 0 quota for an active binding when all the MACs
in the binding are idle, i.e., not associated in case of managed
interface, will result in preventing the FW scheduler from entering
IDLE state and the FW from transitioning to low PS.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/mvm/quota.c