hs20: patch hostapd to make use of updated dm_ddf
authorDaniel Golle <daniel@makrotopia.org>
Sun, 20 Dec 2020 21:43:53 +0000 (21:43 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 20 Dec 2020 21:44:21 +0000 (21:44 +0000)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
net/hs20/Makefile
net/hs20/patches/050-use-dm_ddf-v1_3_dtd.patch [new file with mode: 0644]

index b5748708766ac203ad0f02c99f9c7a31a88deba4..1d4da7dc3a33091d5e22cced9b42d1d5c26c195a 100644 (file)
@@ -1,7 +1,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=hs20
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE_URL:=http://w1.fi/hostap.git
 PKG_SOURCE_PROTO:=git
diff --git a/net/hs20/patches/050-use-dm_ddf-v1_3_dtd.patch b/net/hs20/patches/050-use-dm_ddf-v1_3_dtd.patch
new file mode 100644 (file)
index 0000000..5aef983
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/hs20/server/spp_server.c
++++ b/hs20/server/spp_server.c
+@@ -1329,7 +1329,7 @@ static xml_node_t * spp_get_mo(struct hs
+               return NULL;
+       }
+-      snprintf(fname, sizeof(fname), "%s/spp/dm_ddf-v1_2.dtd", ctx->root_dir);
++      snprintf(fname, sizeof(fname), "%s/spp/dm_ddf-v1_3.dtd", ctx->root_dir);
+       if (xml_validate_dtd(ctx->xml, tnds, fname, ret_err) == 0)
+               *valid = 1;
+       else if (ret_err && *ret_err &&