mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-28 04:44:03 +02:00
fe6de57324
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19757 3c298f89-4303-0410-b956-a3cf2f4a3e73
23 lines
680 B
Diff
23 lines
680 B
Diff
--- a/drivers/net/wireless/ath/ath9k/beacon.c
|
|
+++ b/drivers/net/wireless/ath/ath9k/beacon.c
|
|
@@ -526,16 +526,13 @@ static void ath_beacon_config_ap(struct
|
|
{
|
|
u32 nexttbtt, intval;
|
|
|
|
- /* Configure the timers only when the TSF has to be reset */
|
|
-
|
|
- if (!(sc->sc_flags & SC_OP_TSF_RESET))
|
|
- return;
|
|
-
|
|
/* NB: the beacon interval is kept internally in TU's */
|
|
intval = conf->beacon_interval & ATH9K_BEACON_PERIOD;
|
|
intval /= ATH_BCBUF; /* for staggered beacons */
|
|
nexttbtt = intval;
|
|
- intval |= ATH9K_BEACON_RESET_TSF;
|
|
+
|
|
+ if (sc->sc_flags & SC_OP_TSF_RESET)
|
|
+ intval |= ATH9K_BEACON_RESET_TSF;
|
|
|
|
/*
|
|
* In AP mode we enable the beacon timers and SWBA interrupts to
|