aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRajkumar Manoharan <rmanoharan@atheros.com>2011-04-12 07:59:29 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-04-14 15:35:07 -0400
commit10add41f2b7a7bc1a74ba7bb535a6745cac318a2 (patch)
treeb68d37b6dd1eed4ac797b651fc1b830a3ce3e869 /drivers
parentdfa8fc69d92f8418e1296d762f3b1624df59f0ac (diff)
ath9k: Fix improper beacon slot selection in IBSS
Request a re-configuration of Beacon related timers on the receipt of the first Beacon frame has to be set only for station mode. Setting beacon sync for IBSS is causing wrong beacon slot selection on beacon generation. Signed-off-by: Rajkumar Manoharan <rmanoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/ath/ath9k/beacon.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/beacon.c b/drivers/net/wireless/ath/ath9k/beacon.c
index b56f69e7677b..9193a385ceb2 100644
--- a/drivers/net/wireless/ath/ath9k/beacon.c
+++ b/drivers/net/wireless/ath/ath9k/beacon.c
@@ -744,7 +744,6 @@ void ath_beacon_config(struct ath_softc *sc, struct ieee80211_vif *vif)
744 cur_conf->dtim_period = 1; 744 cur_conf->dtim_period = 1;
745 745
746 ath_set_beacon(sc); 746 ath_set_beacon(sc);
747 sc->ps_flags |= PS_BEACON_SYNC | PS_WAIT_FOR_BEACON;
748} 747}
749 748
750void ath_set_beacon(struct ath_softc *sc) 749void ath_set_beacon(struct ath_softc *sc)
@@ -762,6 +761,12 @@ void ath_set_beacon(struct ath_softc *sc)
762 break; 761 break;
763 case NL80211_IFTYPE_STATION: 762 case NL80211_IFTYPE_STATION:
764 ath_beacon_config_sta(sc, cur_conf); 763 ath_beacon_config_sta(sc, cur_conf);
764 /*
765 * Request a re-configuration of Beacon related timers
766 * on the receipt of the first Beacon frame (i.e.,
767 * after time sync with the AP).
768 */
769 sc->ps_flags |= PS_BEACON_SYNC | PS_WAIT_FOR_BEACON;
765 break; 770 break;
766 default: 771 default:
767 ath_dbg(common, ATH_DBG_CONFIG, 772 ath_dbg(common, ATH_DBG_CONFIG,