Add support for HS20 and fix disable_dgaf bug in hostapd
authorBrian Demsky <bdemsky@uci.edu>
Fri, 9 Jun 2017 05:52:05 +0000 (22:52 -0700)
committerBrian Demsky <bdemsky@uci.edu>
Fri, 9 Jun 2017 05:52:05 +0000 (22:52 -0700)
package/network/services/hostapd/files/800-hostapd_disable_dgaf_multicast_fix.patch [new file with mode: 0644]
package/network/services/hostapd/files/hostapd-full.config
package/network/services/hostapd/files/wpa_supplicant-full.config

diff --git a/package/network/services/hostapd/files/800-hostapd_disable_dgaf_multicast_fix.patch b/package/network/services/hostapd/files/800-hostapd_disable_dgaf_multicast_fix.patch
new file mode 100644 (file)
index 0000000..9528f6d
--- /dev/null
@@ -0,0 +1,34 @@
+--- a/src/ap/dhcp_snoop.c
++++ b/src/ap/dhcp_snoop.c
+@@ -110,6 +110,15 @@ static void handle_dhcp(void *ctx, const u8 *src_addr, const u8 *buf,
+               }
+       }
++      if (hapd->conf->disable_dgaf && is_broadcast_ether_addr(buf)) {
++              for (sta = hapd->sta_list; sta; sta = sta->next) {
++                      if (!(sta->flags & WLAN_STA_AUTHORIZED))
++                              continue;
++                      x_snoop_mcast_to_ucast_convert_send(hapd, sta,
++                                                          (u8 *) buf, len);
++              }
++      }
++
+       if (msgtype == DHCPACK) {
+               if (b->your_ip == 0)
+                       return;
+@@ -146,15 +155,6 @@ static void handle_dhcp(void *ctx, const u8 *src_addr, const u8 *buf,
+               }
+               sta->ipaddr = b->your_ip;
+       }
+-
+-      if (hapd->conf->disable_dgaf && is_broadcast_ether_addr(buf)) {
+-              for (sta = hapd->sta_list; sta; sta = sta->next) {
+-                      if (!(sta->flags & WLAN_STA_AUTHORIZED))
+-                              continue;
+-                      x_snoop_mcast_to_ucast_convert_send(hapd, sta,
+-                                                          (u8 *) buf, len);
+-              }
+-      }
+ }
index 4a2e87c2ebeecbf8d29aa006ca30fa09aa7f9296..1f509cee8e3a9720eb636631981c25a8dec03a32 100644 (file)
@@ -15,6 +15,9 @@
 # Driver interface for wired authenticator
 CONFIG_DRIVER_WIRED=y
 
+# Turn on HS20 support
+CONFIG_HS20=y
+
 # Driver interface for Prism54 driver
 #CONFIG_DRIVER_PRISM54=y
 
index 18c3f9a5c142b2eda67ec3136c73114555c4d131..4113cad63ccb08797c7697f2caf330c8ce54094c 100644 (file)
@@ -15,6 +15,9 @@
 #CFLAGS += -I/usr/local/openssl/include
 #LIBS += -L/usr/local/openssl/lib
 
+# Turn on HS20 support
+CONFIG_HS20=y
+
 # Some Red Hat versions seem to include kerberos header files from OpenSSL, but
 # the kerberos files are not in the default include path. Following line can be
 # used to fix build issues on such systems (krb5.h not found).