Skip to content

Commit a04e9fd

Browse files
rluboskartben
authored andcommitted
net: mqtt_sn: Make sure multicast functionalities are enabled
UDP transport for the MQTT SN libraries depends on IGMP/MLD APIs unconditionally (via respective setsockopt calls) and without them being enabled transport initialization would fail. Therefore, ensure respective multicast libraries are always enabled if MQTT SN UDP transport is used. Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
1 parent e59fb26 commit a04e9fd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

subsys/net/lib/mqtt_sn/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ config MQTT_SN_KEEPALIVE
6666
config MQTT_SN_TRANSPORT_UDP
6767
bool "UDP transport for MQTT-SN"
6868
select NET_SOCKETS
69+
select NET_IPV4_IGMP if NET_IPV4
70+
select NET_IPV6_MLD if NET_IPV6
6971

7072
config MQTT_SN_LIB_N_RETRY
7173
int "Number of times to retry messages"

0 commit comments

Comments
 (0)