Oleksij Rempel 14250640cd ath9k_htc: do ani shortcalibratio if we got -ETIMEDOUT
current code will handle -ETIMEDOUT as success which is probalbly wrong.

According to this comment I assume it is safe to handle -ETIMEDOUT as false:
drivers/net/wireless/ath/ath9k/calib.c
290         /*
291          * We timed out waiting for the noisefloor to load, probably due to an
292          * in-progress rx. Simply return here and allow the load plenty of time
293          * to complete before the next calibration interval.  We need to avoid
294          * trying to load -50 (which happens below) while the previous load is
295          * still in progress as this can cause rx deafness. Instead by returning
296          * here, the baseband nf cal will just be capped by our present
297          * noisefloor until the next calibration timer.
298          */

Since no other error wariants are present, this patch is checking only
for (ret <= 0).

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2015-08-25 15:09:57 +03:00
..
2015-01-15 14:24:57 +02:00
2015-03-20 08:28:11 +02:00
2015-03-20 08:28:11 +02:00
2015-01-15 14:25:03 +02:00
2015-03-20 08:27:17 +02:00
2015-03-03 14:55:24 +02:00
2015-01-15 14:25:03 +02:00
2015-03-13 15:19:36 +02:00
2015-03-30 11:31:32 +03:00
2015-08-06 10:11:06 +03:00
2015-04-07 20:15:01 +03:00
2015-02-26 15:20:38 +02:00
2015-06-15 12:44:34 +03:00
2015-03-20 08:27:17 +02:00
2015-08-18 09:07:24 +03:00
2015-08-06 10:12:22 +03:00
2015-01-15 14:25:03 +02:00
2015-08-06 10:11:14 +03:00
2015-03-03 14:55:24 +02:00
2015-02-03 15:31:04 +02:00
2015-03-03 14:55:27 +02:00
2015-02-26 14:58:43 +02:00
2015-04-07 20:15:01 +03:00
2014-10-27 14:16:14 -04:00