Skip to content

Commit

Permalink
drivers/usbdev/cdcecm.c: fix cdcecm netdev can not enter running state
Browse files Browse the repository at this point in the history
If the network adapter is not in the running state, packets cannot be sent

Signed-off-by: zhanghongyu <[email protected]>
  • Loading branch information
zhhyu7 authored and xiaoxiang781216 committed Feb 25, 2025
1 parent e447c6a commit 0394138
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/usbdev/cdcecm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1047,6 +1047,7 @@ static int cdcecm_setconfig(FAR struct cdcecm_driver_s *self, uint8_t config)
static int cdcecm_setinterface(FAR struct cdcecm_driver_s *self,
uint16_t interface, uint16_t altsetting)
{
netdev_carrier_on(&self->dev);
uinfo("interface: %hu, altsetting: %hu\n", interface, altsetting);
return OK;
}
Expand Down

0 comments on commit 0394138

Please sign in to comment.