diff --git a/net/wsdd2/Makefile b/net/wsdd2/Makefile index a10a68cac7d93..3da9591ebef61 100644 --- a/net/wsdd2/Makefile +++ b/net/wsdd2/Makefile @@ -1,7 +1,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=wsdd2 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/Netgear/wsdd2.git diff --git a/net/wsdd2/patches/010-wsdd-upstream-pr46.patch b/net/wsdd2/patches/010-wsdd-upstream-pr46.patch new file mode 100644 index 0000000000000..0c59246cd197c --- /dev/null +++ b/net/wsdd2/patches/010-wsdd-upstream-pr46.patch @@ -0,0 +1,21 @@ +Index: wsdd2-2022-04-25-e37443ac/wsdd2.c +From 50f97a909d2c0d8e2c20d87c055531151223600b Mon Sep 17 00:00:00 2001 +From: Lev +Date: Sun, 12 Mar 2023 08:53:52 +0300 +Subject: [PATCH] Fix interface selection + +Fix selection of new/modified interface when running in single interface mode with -i key + +Backport from Netgear/wsdd2#46 +=================================================================== +--- wsdd2-2022-04-25-e37443ac.orig/wsdd2.c ++++ wsdd2-2022-04-25-e37443ac/wsdd2.c +@@ -520,7 +520,7 @@ static bool is_new_addr(struct nlmsghdr + + if (ifindex && ifam->ifa_index != ifindex) { + char buf[IFNAMSIZ]; +- if (!if_indextoname(ifindex, buf) || strcmp(buf, ifname) != 0) ++ if (!if_indextoname(ifam->ifa_index, buf) || strcmp(buf, ifname) != 0) + return false; + ifindex = ifam->ifa_index; + }