aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/main.c
diff options
context:
space:
mode:
authorRajkumar Manoharan <rmanoharan@atheros.com>2011-02-01 12:35:36 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-02-03 16:45:29 -0500
commit391bd1c443f70447616ce0e152f13daee5ca448f (patch)
tree2a4114826cac77d52988cf088995bfadf79a3596 /drivers/net/wireless/ath/ath9k/main.c
parente9d7732eafe38a717212648b7615399e68abb551 (diff)
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: Rajkumar Manoharan <rmanoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/main.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
index c9925e943bc0..e5c695d73025 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -1419,9 +1419,7 @@ static void ath9k_do_vif_add_setup(struct ieee80211_hw *hw,
1419 * there. 1419 * there.
1420 */ 1420 */
1421 error = ath_beacon_alloc(sc, vif); 1421 error = ath_beacon_alloc(sc, vif);
1422 if (error) 1422 if (!error)
1423 ath9k_reclaim_beacon(sc, vif);
1424 else
1425 ath_beacon_config(sc, vif); 1423 ath_beacon_config(sc, vif);
1426 } 1424 }
1427} 1425}