mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
Networking: Fix netdev_dev_lladdrsize. In some configurations, it could return the wrong size for the address of a packet radio.
This commit is contained in:
@@ -124,6 +124,8 @@ static void devif_packet_conversion(FAR struct net_driver_s *dev,
|
||||
{
|
||||
if (dev->d_len > 0)
|
||||
{
|
||||
/* Check if this is a device served by 6LoWPAN */
|
||||
|
||||
if (dev->d_lltype == NET_LL_IEEE802154 ||
|
||||
dev->d_lltype == NET_LL_PKTRADIO)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user