ath5k: fix mesh beaconing

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Thursday, June 18, 2009 - 3:02 pm

Gitweb:     http://git.kernel.org/linus/35edf8aae8f903b154d658b9a7eed0d5c1a4a814
Commit:     35edf8aae8f903b154d658b9a7eed0d5c1a4a814
Parent:     8a9b99267cb3b51d4e59693c03e1204d86b42445
Author:     Nick Kossifidis <mickflemm@gmail.com>
AuthorDate: Fri Jun 12 16:09:53 2009 -0700
Committer:  John W. Linville <linville@tuxdriver.com>
CommitDate: Mon Jun 15 15:05:53 2009 -0400

    ath5k: fix mesh beaconing
    
    This patch is from Nick Kossifidis but he forgot to send it.  It ensures
    that the beacon queue gets started in mesh mode as well, otherwise ath5k
    will not beacon in mesh point mode.
    
    At this time, we still need to issue a scan before mesh beaconing will
    work but that appears to be a separate problem.
    
    Signed-off-by: Andrey Yurovsky <andrey@cozybit.com>
    Signed-off-by: Nick Kossifidis <mickflemm@gmail.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
---
 drivers/net/wireless/ath/ath5k/pcu.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/ath/ath5k/pcu.c b/drivers/net/wireless/ath/ath5k/pcu.c
index ec35503..2942f13 100644
--- a/drivers/net/wireless/ath/ath5k/pcu.c
+++ b/drivers/net/wireless/ath/ath5k/pcu.c
@@ -733,8 +733,9 @@ void ath5k_hw_init_beacon(struct ath5k_hw *ah, u32 next_beacon, u32 interval)
 	/*
 	 * Set the beacon register and enable all timers.
 	 */
-	/* When in AP mode zero timer0 to start TSF */
-	if (ah->ah_op_mode == NL80211_IFTYPE_AP)
+	/* When in AP or Mesh Point mode zero timer0 to start TSF */
+	if (ah->ah_op_mode == NL80211_IFTYPE_AP ||
+	    ah->ah_op_mode == NL80211_IFTYPE_MESH_POINT)
 		ath5k_hw_reg_write(ah, 0, AR5K_TIMER0);
 
 	ath5k_hw_reg_write(ah, next_beacon, AR5K_TIMER0);
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ath5k: fix mesh beaconing, Linux Kernel Mailing ..., (Thu Jun 18, 3:02 pm)