iwlwifi: mvm: don't send zero quota to the firmware
authorJohannes Berg <johannes.berg@intel.com>
Fri, 23 May 2014 14:15:11 +0000 (16:15 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 7 Jul 2014 18:41:14 +0000 (21:41 +0300)
commit63faceb60b8e026d62db228ff04038e8089fa74a
tree15fa9bbf30d65c783312806ee9ae845fed7a1df7
parent63cbe180f8bfcf355516b09849c71fed19e035b3
iwlwifi: mvm: don't send zero quota to the firmware

There are some cases where we can currently send zero quota
for a valid binding, e.g. if we update while an interface is
bound to a channel context but not yet acting as an AP.

Avoid this by reordering the checks.

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