* [ath9k-devel] ath9k in kernel 3.3.2
[not found] <mailman.198.1334443676.6208.ath9k-devel@lists.ath9k.org>
@ 2012-04-15 1:32 ` Sam Handel
0 siblings, 0 replies; only message in thread
From: Sam Handel @ 2012-04-15 1:32 UTC (permalink / raw)
To: ath9k-devel
A user question if you please. I am using kernel 3.2.13 after backing
out 3.3.1 for ath9k hangs and degradation. ath9k is key to my
environment, I am using it with hostapd.
I would like to try 3.3.2, do you folks recommend it? I plan on doing
this as soon as I send this email anyway, I can let you know how it goes
if you like. I am using it with the DLink DWA-552 and DWA-556.
Also, if I'm asking in the wrong place let me know, I certainly don't
seek to interrupt the primary purpose of this list. Thanks to everyone
for the great work.
On 04/14/12 18:47, ath9k-devel-request at lists.ath9k.org wrote:
> Send ath9k-devel mailing list submissions to
> ath9k-devel at lists.ath9k.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.ath9k.org/mailman/listinfo/ath9k-devel
> or, via email, send a message with subject or body 'help' to
> ath9k-devel-request at lists.ath9k.org
>
> You can reach the person managing the list at
> ath9k-devel-owner at lists.ath9k.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ath9k-devel digest..."
>
>
> Today's Topics:
>
> 1. [PATCH 3/3] ath9k: simplify ath9k_hw_get_scaled_power
> function (Gabor Juhos)
> 2. Re: 3.4-rc ath9k regression (Re: 3.3.1 ath9k regression)
> (Felipe Contreras)
> 3. Re: [ 00/78] 3.3.2-stable review (Stefan Richter)
> 4. Re: [ 00/78] 3.3.2-stable review (Felipe Contreras)
> 5. Re: [PATCH 1/3] ath9k: use consistent value for
> REDUCE_SCALED_POWER_BY_THREE_CHAIN (Daniel Halperin)
> 6. Re: [ 00/78] 3.3.2-stable review (Stefan Richter)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 14 Apr 2012 22:01:59 +0200
> From: Gabor Juhos<juhosg@openwrt.org>
> Subject: [ath9k-devel] [PATCH 3/3] ath9k: simplify
> ath9k_hw_get_scaled_power function
> To: "John W. Linville"<linville@tuxdriver.com>
> Cc: "ath9k-devel at lists.ath9k.org"<ath9k-devel@venema.h4ckr.net>,
> linux-wireless at vger.kernel.org
> Message-ID:<1334433719-1144-3-git-send-email-juhosg@openwrt.org>
>
> Signed-off-by: Gabor Juhos<juhosg@openwrt.org>
> ---
> drivers/net/wireless/ath/ath9k/eeprom.c | 21 ++++++++-------------
> 1 files changed, 8 insertions(+), 13 deletions(-)
>
> diff --git a/drivers/net/wireless/ath/ath9k/eeprom.c b/drivers/net/wireless/ath/ath9k/eeprom.c
> index 61bad99..6a64dec 100644
> --- a/drivers/net/wireless/ath/ath9k/eeprom.c
> +++ b/drivers/net/wireless/ath/ath9k/eeprom.c
> @@ -293,9 +293,7 @@ u16 ath9k_hw_get_max_edge_power(u16 freq, struct cal_ctl_edges *pRdEdgesPower,
> u16 ath9k_hw_get_scaled_power(struct ath_hw *ah, u16 power_limit,
> u8 antenna_reduction)
> {
> - u16 scaled_power;
> -
> - scaled_power = power_limit - antenna_reduction;
> + u16 reduction = antenna_reduction;
>
> /*
> * Reduce scaled Power by number of chains active
> @@ -305,22 +303,19 @@ u16 ath9k_hw_get_scaled_power(struct ath_hw *ah, u16 power_limit,
> case 1:
> break;
> case 2:
> - if (scaled_power> REDUCE_SCALED_POWER_BY_TWO_CHAIN)
> - scaled_power -= REDUCE_SCALED_POWER_BY_TWO_CHAIN;
> - else
> - scaled_power = 0;
> + reduction += REDUCE_SCALED_POWER_BY_TWO_CHAIN;
> break;
> case 3:
> - if (scaled_power> REDUCE_SCALED_POWER_BY_THREE_CHAIN)
> - scaled_power -= REDUCE_SCALED_POWER_BY_THREE_CHAIN;
> - else
> - scaled_power = 0;
> + reduction += REDUCE_SCALED_POWER_BY_THREE_CHAIN;
> break;
> }
>
> - scaled_power = max((u16)0, scaled_power);
> + if (power_limit> reduction)
> + power_limit -= reduction;
> + else
> + power_limit = 0;
>
> - return scaled_power;
> + return power_limit;
> }
>
> void ath9k_hw_update_regulatory_maxpower(struct ath_hw *ah)
^ permalink raw reply [flat|nested] only message in thread