diff options
-rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/quota.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/quota.c b/drivers/net/wireless/iwlwifi/mvm/quota.c index 3fc986eb0d6c..17e2bc827f9a 100644 --- a/drivers/net/wireless/iwlwifi/mvm/quota.c +++ b/drivers/net/wireless/iwlwifi/mvm/quota.c | |||
@@ -151,7 +151,8 @@ static void iwl_mvm_adjust_quota_for_noa(struct iwl_mvm *mvm, | |||
151 | if (id != phy_id) | 151 | if (id != phy_id) |
152 | continue; | 152 | continue; |
153 | 153 | ||
154 | quota *= (beacon_int - mvm->noa_duration) / beacon_int; | 154 | quota *= (beacon_int - mvm->noa_duration); |
155 | quota /= beacon_int; | ||
155 | 156 | ||
156 | cmd->quotas[i].quota = cpu_to_le32(quota); | 157 | cmd->quotas[i].quota = cpu_to_le32(quota); |
157 | } | 158 | } |