trxcon: trx_if_cmd_poweroff(): do not complain if trx->powered_up
With the introduction of the abstract PHYIF, the trxcon_fsm has lost access to the internal state of the PHY, so now it may be sending the PHYIF_CMDT_POWERON even if the PHY is already powered on. Change-Id: Ib500c746430c9082a5fda342257cee7293f46ba0 Related: OS#5599
This commit is contained in:
parent
c6324f8952
commit
1c75c0012b
|
@ -259,11 +259,6 @@ static int trx_if_cmd_poweroff(struct trx_instance *trx)
|
|||
|
||||
static int trx_if_cmd_poweron(struct trx_instance *trx)
|
||||
{
|
||||
if (trx->powered_up) {
|
||||
/* FIXME: this should be handled by the FSM, not here! */
|
||||
LOGPFSML(trx->fi, LOGL_ERROR, "Suppressing POWERON as we're already powered up\n");
|
||||
return -EAGAIN;
|
||||
}
|
||||
return trx_ctrl_cmd(trx, 1, "POWERON", "");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue