]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: fix quota update avoidance
authorJohannes Berg <johannes.berg@intel.com>
Thu, 11 Sep 2014 12:12:06 +0000 (14:12 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 14 Sep 2014 19:02:23 +0000 (22:02 +0300)
commitd8b93c543db98bdaa7c5d8af51ecbdeef56a5643
tree221a5c0682ac9110ff2d8e4b8158ce674df263b3
parent283cc42583ffd5948fafffebf5aa677284ab1f23
iwlwifi: mvm: fix quota update avoidance

When not updating the quota, the new command shouldn't be stored
as otherwise slowly drifting quota would never update the firmware.
Fix this by storing the command only when it was also sent.

Since the error message also only makes sense when attempting to
send the command, just short-circuit the function when there's no
need to send the command.

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