iwlwifi: mvm: don't update quota in firmware too often
authorJohannes Berg <johannes.berg@intel.com>
Mon, 8 Sep 2014 14:42:54 +0000 (16:42 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 14 Sep 2014 09:56:40 +0000 (12:56 +0300)
commitb2b7875bfb6c69bb708b61c5f745491d240161a1
tree96a4defff20dfee2724407355493b9705f7a5667
parentbbab758279a14556e6ccb17b1f98935634eeb8d5
iwlwifi: mvm: don't update quota in firmware too often

When updating quota in the firmware, it has to reset quite a bit
of internal state, which apparently can have an adverse impact on
its operation.

Avoid that by only updating the quota command when there are any
signification changes, i.e. added/removed bindings or changes in
quota that are bigger than 8 TU within a binding.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/constants.h
drivers/net/wireless/iwlwifi/mvm/fw.c
drivers/net/wireless/iwlwifi/mvm/mvm.h
drivers/net/wireless/iwlwifi/mvm/quota.c