trxcon: trx_if_cmd_poweron(): send CMD POWERON unconditionally

This works-around a race condition happening when the upper layers
are sending L1CTL RESET.req immediately followed by L1CTL FBSB.req.
The problem is that the TRXC logic is considering the transceiver
powered on until a response to CMD POWEROFF is received.

Change-Id: I967ce047eb198f1eaf8446bb4c1f87a98d3de264
Related: OS#5500
This commit is contained in:
Vadim Yanitskiy 2023-07-04 03:55:24 +07:00 committed by Pau Espin Pedrol
parent 5462ad040c
commit e9bfff30ac
1 changed files with 2 additions and 0 deletions

View File

@ -261,8 +261,10 @@ static int trx_if_cmd_poweroff(struct trx_instance *trx)
static int trx_if_cmd_poweron(struct trx_instance *trx)
{
#if 0
if (trx->powered_up)
return -EAGAIN;
#endif
return trx_ctrl_cmd(trx, 1, "POWERON", "");
}