iwlwifi: mvm: Fix quota handling for monitor interface
authorIlan Peer <ilan.peer@intel.com>
Wed, 13 Mar 2013 12:52:04 +0000 (14:52 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 20 Mar 2013 13:17:08 +0000 (14:17 +0100)
commit1e1391ca43994b697b0145384797a078ce1e0ce7
tree8c7450d19df51b1adba5c164f1cc3c1144a097b6
parent5649ce429e81b77919c0029a02edf44df3be7797
iwlwifi: mvm: Fix quota handling for monitor interface

1. Quota for the monitor interface should be added only if there is
   a channel context assigned to the interface.
2. In the unassign channel context flow, need to remove the quota
   for the monitor interface binding, before unbinding.

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