提交 391bd1c4 编写于 作者: R Rajkumar Manoharan 提交者: John W. Linville

ath9k: reserve a beacon slot on beaconing vif addition

The beaconing vif addition is based on max beacon slot
available. So it is better to reserve a beacon slot
on interface addition and let it be configured properly
on bss_info change.
Signed-off-by: NRajkumar Manoharan <rmanoharan@atheros.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 e9d7732e
...@@ -1419,9 +1419,7 @@ static void ath9k_do_vif_add_setup(struct ieee80211_hw *hw, ...@@ -1419,9 +1419,7 @@ static void ath9k_do_vif_add_setup(struct ieee80211_hw *hw,
* there. * there.
*/ */
error = ath_beacon_alloc(sc, vif); error = ath_beacon_alloc(sc, vif);
if (error) if (!error)
ath9k_reclaim_beacon(sc, vif);
else
ath_beacon_config(sc, vif); ath_beacon_config(sc, vif);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册