Nick, thanks for taking the time to explain this.

Nick Kossifidis wrote:

> below a predefined threshold you get a "noise floor calibration
> failed" message. You don't get a noise floor timeout message but a
> fail message and that's because of the failed gain offset calibration
> (noise floor calibration runs after gain calibration) so that's where
> you should look into (it gets enabled on ath5k_hw_reset - reset.c).

Yes, I see. I was just wondering what happens if the following loop:

  for (i = 20; i > 0; i--) {
                 mdelay(1);
                 noise_floor = ath5k_hw_reg_read(ah, AR5K_PHY_NF);
                 noise_floor = AR5K_PHY_NF_RVAL(noise_floor);
                 if (noise_floor & AR5K_PHY_NF_ACTIVE) {
                         noise_floor = AR5K_PHY_NF_AVAL(noise_floor);

                         if (noise_floor <= AR5K_TUNE_NOISE_FLOOR)
                                 break;
                 }
         }

falls thru. It means that we can exit from here with the AR5K_PHY_NF_ACTIVE bit 
off, and maybe this could be the reason why the following gain caliration made 
by reset() in hw.c fails...

> Do you only get these errors while resuming from suspend or randomly ?
> 

It happened only after resuming till now. But as I said, nost of the time all 
is 
working ok.

        Romano


-- 
Sorry for the disclaimer --- ¡I cannot stop it!


--
La presente comunicación tiene carácter confidencial y es para el exclusivo uso 
del destinatario indicado en la misma. Si Ud. no es el destinatario indicado, 
le informamos que cualquier forma de distribución, reproducción o uso de esta 
comunicación y/o de la información contenida en la misma están estrictamente 
prohibidos por la ley. Si Ud. ha recibido esta comunicación por error, por 
favor, notifíquelo inmediatamente al remitente contestando a este mensaje y 
proceda a continuación a destruirlo. Gracias por su colaboración.

This communication contains confidential information. It is for the exclusive 
use of the intended addressee. If you are not the intended addressee, please 
note that any form of distribution, copying or use of this communication or the 
information in it is strictly prohibited by law. If you have received this 
communication in error, please immediately notify the sender by reply e-mail 
and destroy this message. Thank you for your cooperation. 
_______________________________________________
ath5k-devel mailing list
ath5k-devel@lists.ath5k.org
https://lists.ath5k.org/mailman/listinfo/ath5k-devel

Reply via email to