AP_Networking: enable receive of multicast packets

This commit is contained in:
Andrew Tridgell 2023-11-25 12:53:00 +11:00 committed by Tom Pittenger
parent 58cf4f65a9
commit 68e2bb1f15
1 changed files with 7 additions and 0 deletions

View File

@ -121,6 +121,13 @@ bool AP_Networking_ChibiOS::init()
lwipInit(lwip_options);
#if LWIP_IGMP
if (ETH != nullptr) {
// enbale "permit multicast" so we can receive multicast packets
ETH->MACPFR |= ETH_MACPFR_PM;
}
#endif
return true;
}