summaryrefslogtreecommitdiff
path: root/sys/src/9/pc/etheriwl.c
diff options
context:
space:
mode:
authorftrvxmtrx <ftrvxmtrx@gmail.com>2013-02-16 03:28:21 +0100
committerftrvxmtrx <ftrvxmtrx@gmail.com>2013-02-16 03:28:21 +0100
commita8d97f31f6e58d7f83345c268d5fee6eb480ecf2 (patch)
treec47671520b6fef83fffe376100f02fb96c1cbc46 /sys/src/9/pc/etheriwl.c
parentd676eaf59aff34cb423c78718b156a96077aed96 (diff)
etheriwl: move runtime dc calibration block to proper place
Diffstat (limited to 'sys/src/9/pc/etheriwl.c')
-rw-r--r--sys/src/9/pc/etheriwl.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/src/9/pc/etheriwl.c b/sys/src/9/pc/etheriwl.c
index 38b440ee7..e80014deb 100644
--- a/sys/src/9/pc/etheriwl.c
+++ b/sys/src/9/pc/etheriwl.c
@@ -1230,15 +1230,6 @@ postboot(Ctlr *ctlr)
return err;
}
- if(ctlr->type == Type6005 || ctlr->type == Type6050){
- /* runtime DC calibration */
- memset(c, 0, sizeof(c));
- put32(c + 0*(5*4) + 0, 0xffffffff);
- put32(c + 0*(5*4) + 4, 1<<1);
- if((err = cmd(ctlr, 101, c, (((2*(5*4))+4)*2)+4)) != nil)
- return err;
- }
-
if(ctlr->calib.done == 0){
/* query calibration (init firmware) */
memset(c, 0, sizeof(c));
@@ -1280,6 +1271,15 @@ postboot(Ctlr *ctlr)
return err;
}
+ if(ctlr->type == Type6005 || ctlr->type == Type6050){
+ /* runtime DC calibration */
+ memset(c, 0, sizeof(c));
+ put32(c + 0*(5*4) + 0, 0xffffffff);
+ put32(c + 0*(5*4) + 4, 1<<1);
+ if((err = cmd(ctlr, 101, c, (((2*(5*4))+4)*2)+4)) != nil)
+ return err;
+ }
+
/* set tx antenna config */
put32(c, ctlr->rfcfg.txantmask & 7);
if((err = cmd(ctlr, 152, c, 4)) != nil)