Search Linux Wireless

Re: [PATCH 1/2] ath5k: dont use external sleep clock in AP mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2010/1/21 Bob Copeland <me@xxxxxxxxxxxxxxx>:
> When using the external sleep clock in AP mode, the
> TSF increments too quickly, causing beacon interval
> to be much lower than it is supposed to be, resulting
> in lots of beacon-not-ready interrupts.
>
> This fixes http://bugzilla.kernel.org/show_bug.cgi?id=14802.
>
> Signed-off-by: Bob Copeland <me@xxxxxxxxxxxxxxx>
> ---
>  drivers/net/wireless/ath/ath5k/reset.c |    5 +++--
>  1 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/wireless/ath/ath5k/reset.c b/drivers/net/wireless/ath/ath5k/reset.c
> index 6690923..a35a7db 100644
> --- a/drivers/net/wireless/ath/ath5k/reset.c
> +++ b/drivers/net/wireless/ath/ath5k/reset.c
> @@ -1374,8 +1374,9 @@ int ath5k_hw_reset(struct ath5k_hw *ah, enum nl80211_iftype op_mode,
>         * Set clocks to 32KHz operation and use an
>         * external 32KHz crystal when sleeping if one
>         * exists */
> -       if (ah->ah_version == AR5K_AR5212)
> -                       ath5k_hw_set_sleep_clock(ah, true);
> +       if (ah->ah_version == AR5K_AR5212 &&
> +           ah->ah_op_mode != NL80211_IFTYPE_AP)
> +               ath5k_hw_set_sleep_clock(ah, true);
>
>        /*
>         * Disable beacons and reset the register

Acked-by: Nick Kossifidis <mickflemm@xxxxxxxxx>



-- 
GPG ID: 0xD21DB2DB
As you read this post global entropy rises. Have Fun ;-)
Nick
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux