iwlwifi: mvm: add the quota remainder to a data binding
authorIlan Peer <ilan.peer@intel.com>
Sun, 19 Jan 2014 09:46:52 +0000 (11:46 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 3 Feb 2014 20:23:37 +0000 (22:23 +0200)
commit2d675e523740d20fea8b8b76b4163aa18811c288
tree96a6be070170bedc3bb5d645896fc46ede44ef3f
parent2284b951fbad502680a0e1ba35a8efc965d6b6ce
iwlwifi: mvm: add the quota remainder to a data binding

Currently the quota remainder was added to the first binding, although
it is possible that this was not a data binding (only the P2P_DEVICE
interface is part of the binding).

Fix this by adding the remainder to the first binding that was actually
allocated quota.

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