projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d91b06d
)
iwlwifi: mvm: Fix resource allocation for P2P Device
author
Ilan Peer
<
[email protected]
>
Wed, 13 Feb 2013 10:26:39 +0000
(12:26 +0200)
committer
Johannes Berg
<
[email protected]
>
Mon, 18 Feb 2013 19:18:35 +0000
(20:18 +0100)
The time event data structures are required also for P2P Device
interface.
Signed-off-by: Ilan Peer <
[email protected]
>
Reviewed-by: Emmanuel Grumbach <
[email protected]
>
Signed-off-by: Johannes Berg <
[email protected]
>
drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c
b/drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c
index c33bec83b8070b6a85cbe868fcee9f1fb2be9ec0..3f937b27ada298bda66bd04535a1b810287ab42b 100644
(file)
--- 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,
mvmvif->color = 0;
+ INIT_LIST_HEAD(&mvmvif->time_event_data.list);
+ mvmvif->time_event_data.id = TE_MAX;
+
/* No need to allocate data queues to P2P Device MAC.*/
if (vif->type == NL80211_IFTYPE_P2P_DEVICE) {
for (ac = 0; ac < IEEE80211_NUM_ACS; ac++)
@@
-328,9
+331,6
@@
static int iwl_mvm_mac_ctxt_allocate_resources(struct iwl_mvm *mvm,
mvmvif->bcast_sta.sta_id = IWL_MVM_STATION_COUNT;
mvmvif->ap_sta_id = IWL_MVM_STATION_COUNT;
- INIT_LIST_HEAD(&mvmvif->time_event_data.list);
- mvmvif->time_event_data.id = TE_MAX;
-
return 0;
exit_fail: