diff options
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r-- | net/mac80211/main.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index 795f8c4a9fa0..e9181981adcd 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c | |||
@@ -705,7 +705,7 @@ struct ieee80211_hw *ieee80211_alloc_hw(size_t priv_data_len, | |||
705 | const struct ieee80211_ops *ops) | 705 | const struct ieee80211_ops *ops) |
706 | { | 706 | { |
707 | struct ieee80211_local *local; | 707 | struct ieee80211_local *local; |
708 | int priv_size; | 708 | int priv_size, i; |
709 | struct wiphy *wiphy; | 709 | struct wiphy *wiphy; |
710 | 710 | ||
711 | /* Ensure 32-byte alignment of our private data and hw private data. | 711 | /* Ensure 32-byte alignment of our private data and hw private data. |
@@ -779,6 +779,11 @@ struct ieee80211_hw *ieee80211_alloc_hw(size_t priv_data_len, | |||
779 | setup_timer(&local->dynamic_ps_timer, | 779 | setup_timer(&local->dynamic_ps_timer, |
780 | ieee80211_dynamic_ps_timer, (unsigned long) local); | 780 | ieee80211_dynamic_ps_timer, (unsigned long) local); |
781 | 781 | ||
782 | for (i = 0; i < IEEE80211_MAX_AMPDU_QUEUES; i++) | ||
783 | local->ampdu_ac_queue[i] = -1; | ||
784 | /* using an s8 won't work with more than that */ | ||
785 | BUILD_BUG_ON(IEEE80211_MAX_AMPDU_QUEUES > 127); | ||
786 | |||
782 | sta_info_init(local); | 787 | sta_info_init(local); |
783 | 788 | ||
784 | tasklet_init(&local->tx_pending_tasklet, ieee80211_tx_pending, | 789 | tasklet_init(&local->tx_pending_tasklet, ieee80211_tx_pending, |
@@ -872,7 +877,7 @@ int ieee80211_register_hw(struct ieee80211_hw *hw) | |||
872 | 877 | ||
873 | mdev = alloc_netdev_mq(sizeof(struct ieee80211_master_priv), | 878 | mdev = alloc_netdev_mq(sizeof(struct ieee80211_master_priv), |
874 | "wmaster%d", ieee80211_master_setup, | 879 | "wmaster%d", ieee80211_master_setup, |
875 | ieee80211_num_queues(hw)); | 880 | hw->queues); |
876 | if (!mdev) | 881 | if (!mdev) |
877 | goto fail_mdev_alloc; | 882 | goto fail_mdev_alloc; |
878 | 883 | ||