Messages in this thread Patch in this message | | | From | cchoux <> | Subject | [PATCH] net/ncsi: clear Tx enable mode when handling a Config required AEN | Date | Tue, 25 Apr 2023 21:30:14 +0800 |
| |
Clear the channel Tx enable flag before reconfiguring the channel when handling a Configuration Required AEN. To avoid misjudging that the channel Tx has been enabled, which results in the Enable Channel Network Tx command not being sent during channel reconfiguration.
Signed-off-by: cchoux <chou.cosmo@gmail.com> --- net/ncsi/ncsi-aen.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/net/ncsi/ncsi-aen.c b/net/ncsi/ncsi-aen.c index b635c194f0a8..62fb1031763d 100644 --- a/net/ncsi/ncsi-aen.c +++ b/net/ncsi/ncsi-aen.c @@ -165,6 +165,7 @@ static int ncsi_aen_handler_cr(struct ncsi_dev_priv *ndp, nc->state = NCSI_CHANNEL_INACTIVE; list_add_tail_rcu(&nc->link, &ndp->channel_queue); spin_unlock_irqrestore(&ndp->lock, flags); + nc->modes[NCSI_MODE_TX_ENABLE].enable = 0; return ncsi_process_next_channel(ndp); } -- 2.34.1
| |