etheriwl: move runtime dc calibration block to proper place
This commit is contained in:
parent
d676eaf59a
commit
a8d97f31f6
1 changed files with 9 additions and 9 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue