ref: c139458797bcba53023c3e2f6bfd82eb10c3b92c
parent: 6a66ca0ffda005ddf8fd858f7ed9abcf6af2cc60
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Oct 18 06:50:07 EDT 2020
etheriwl: delay before crystal calibration On my 6235 card, if we calibrate the crystal immediately after disabling wimax, the the firmware gets unhappy. A short nap before sending the command prevents the command from timing out.
--- a/sys/src/9/pc/etheriwl.c
+++ b/sys/src/9/pc/etheriwl.c
@@ -2892,6 +2892,8 @@
if((err = cmd(ctlr, 90, c, 4+4*16)) != nil)
return err;
+ /* 6235 times out if we calibrate the crystal immediately */
+ tsleep(&up->sleep, return0, nil, 10);
if(ctlr->type != Type5150){/* calibrate crystal */
memset(c, 0, sizeof(c));
--
⑨