Fix the way ANI is being handled for ar9100 and ar9340
Get series with b4
b4 am [email protected]Versions newest first
- v2 Latest0 of 4 patches 0 repliesNew
Patches in v2 No applies recorded yet
None of the 4 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [ath9k-devel] [PATCH v2 0/4] Fix the way ANI is being handled for ar9100 and ar9340
Quoted 17 lines · Nikolay Martynov
Currently in ath9k code there is an attempt which is meant to
disable ANI for ar9100 and ar9340. But it doesn't really achieve this. All it does is disable ANI init and setup (i.e. calls toath9k_hw_ani_setupandath9k_hw_ani_init). Sinceath9k_hw_ani_setupis not calledah->config.ani_poll_intervalis never initialized (i.e. it is always zero) andath_ani_calibratealways executes ANI procedures (over uninitialized ANI parameters).
Moreover,ath_ani_calibrateis being called each 1ms becausecommon->ani.timeris set to zero interval because ah->config.ani_poll_interval==0 (and thus smallest value of all intervals). Normally it should not be called this often.
This patch changes the code so config.enable_ani is used to check if
ANI should be performed.
Also, this pacthset enables ANI for ar9100 - ANI was always performed
for this chip, but this patch fixes the fact that it was performed over uninitialized data.
Quoted 8 lines
All comments and suggestions are appreciated.
Thanks.Nikolay Martynov (4):
ath9k: trivial: cosmetic fix in calibration debug log
ath9k: change calibration debug log to output all calibration types
ath9k: use config.enable_ani to check if ani should be performed
ath9k: enable ANI for ar9100 chips
More than one of the patches in this series either adds indentation with only spaces or even changes existing indentation with tabs to spaces. Please don't do this.
I'm dropping this series for the above reason. Please feel free to fix your editor if necessary and to revise the patches to avoid needless and/or inappropriate whitespace changes or additions.
John
Signature · 2 lines
John W. Linville Someday the world will need a hero, and you linville at tuxdriver.com might be all we have. Be ready.