diff options
author | Ilan Peer <ilan.peer@intel.com> | 2013-02-13 05:26:39 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-02-18 14:18:35 -0500 |
commit | 1e849c93ee5bd07b2ce84d1c3cbcd5d06cb9d2a5 (patch) | |
tree | 6b2e06f59e2ab67bd57734e94cf28e7c3ffbadb2 | |
parent | d91b06d214de610807456839d543c1c2e622e9b5 (diff) |
iwlwifi: mvm: Fix resource allocation for P2P Device
The time event data structures are required also for P2P Device
interface.
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>
-rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c b/drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c index c33bec83b807..3f937b27ada2 100644 --- a/drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c +++ b/drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c | |||
@@ -286,6 +286,9 @@ static int iwl_mvm_mac_ctxt_allocate_resources(struct iwl_mvm *mvm, | |||
286 | 286 | ||
287 | mvmvif->color = 0; | 287 | mvmvif->color = 0; |
288 | 288 | ||
289 | INIT_LIST_HEAD(&mvmvif->time_event_data.list); | ||
290 | mvmvif->time_event_data.id = TE_MAX; | ||
291 | |||
289 | /* No need to allocate data queues to P2P Device MAC.*/ | 292 | /* No need to allocate data queues to P2P Device MAC.*/ |
290 | if (vif->type == NL80211_IFTYPE_P2P_DEVICE) { | 293 | if (vif->type == NL80211_IFTYPE_P2P_DEVICE) { |
291 | for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) | 294 | for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) |
@@ -328,9 +331,6 @@ static int iwl_mvm_mac_ctxt_allocate_resources(struct iwl_mvm *mvm, | |||
328 | mvmvif->bcast_sta.sta_id = IWL_MVM_STATION_COUNT; | 331 | mvmvif->bcast_sta.sta_id = IWL_MVM_STATION_COUNT; |
329 | mvmvif->ap_sta_id = IWL_MVM_STATION_COUNT; | 332 | mvmvif->ap_sta_id = IWL_MVM_STATION_COUNT; |
330 | 333 | ||
331 | INIT_LIST_HEAD(&mvmvif->time_event_data.list); | ||
332 | mvmvif->time_event_data.id = TE_MAX; | ||
333 | |||
334 | return 0; | 334 | return 0; |
335 | 335 | ||
336 | exit_fail: | 336 | exit_fail: |