diff options
author | Ilan Peer <ilan.peer@intel.com> | 2013-03-13 08:52:04 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-03-20 09:17:08 -0400 |
commit | 1e1391ca43994b697b0145384797a078ce1e0ce7 (patch) | |
tree | 8c7450d19df51b1adba5c164f1cc3c1144a097b6 /drivers/net/wireless/iwlwifi/mvm/mvm.h | |
parent | 5649ce429e81b77919c0029a02edf44df3be7797 (diff) |
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>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/mvm.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/mvm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/mvm.h b/drivers/net/wireless/iwlwifi/mvm/mvm.h index 43a1d297ec1e..53d58968e30a 100644 --- a/drivers/net/wireless/iwlwifi/mvm/mvm.h +++ b/drivers/net/wireless/iwlwifi/mvm/mvm.h | |||
@@ -157,6 +157,8 @@ enum iwl_power_scheme { | |||
157 | * @uploaded: indicates the MAC context has been added to the device | 157 | * @uploaded: indicates the MAC context has been added to the device |
158 | * @ap_active: indicates that ap context is configured, and that the interface | 158 | * @ap_active: indicates that ap context is configured, and that the interface |
159 | * should get quota etc. | 159 | * should get quota etc. |
160 | * @monitor_active: indicates that monitor context is configured, and that the | ||
161 | * interface should get quota etc. | ||
160 | * @queue_params: QoS params for this MAC | 162 | * @queue_params: QoS params for this MAC |
161 | * @bcast_sta: station used for broadcast packets. Used by the following | 163 | * @bcast_sta: station used for broadcast packets. Used by the following |
162 | * vifs: P2P_DEVICE, GO and AP. | 164 | * vifs: P2P_DEVICE, GO and AP. |
@@ -169,6 +171,7 @@ struct iwl_mvm_vif { | |||
169 | 171 | ||
170 | bool uploaded; | 172 | bool uploaded; |
171 | bool ap_active; | 173 | bool ap_active; |
174 | bool monitor_active; | ||
172 | 175 | ||
173 | u32 ap_beacon_time; | 176 | u32 ap_beacon_time; |
174 | 177 | ||