diff options
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r-- | net/mac80211/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index e19be27a3def..55e76117da9e 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c | |||
@@ -1745,6 +1745,11 @@ int ieee80211_register_hw(struct ieee80211_hw *hw) | |||
1745 | goto fail_wep; | 1745 | goto fail_wep; |
1746 | } | 1746 | } |
1747 | 1747 | ||
1748 | if (hw->queues > IEEE80211_MAX_QUEUES) | ||
1749 | hw->queues = IEEE80211_MAX_QUEUES; | ||
1750 | if (hw->ampdu_queues > IEEE80211_MAX_AMPDU_QUEUES) | ||
1751 | hw->ampdu_queues = IEEE80211_MAX_AMPDU_QUEUES; | ||
1752 | |||
1748 | ieee80211_install_qdisc(local->mdev); | 1753 | ieee80211_install_qdisc(local->mdev); |
1749 | 1754 | ||
1750 | /* add one default STA interface */ | 1755 | /* add one default STA interface */ |