hostapd: bump to 2024-03-09
[openwrt/openwrt.git] / package / network / services / hostapd / patches / 711-wds_bridge_force.patch
index 169807c61ef888014e5ba141b93a27715c17b9f5..32f4eb5b021de0550948691630faf8e87b7963ff 100644 (file)
@@ -1,17 +1,17 @@
 --- a/hostapd/config_file.c
 +++ b/hostapd/config_file.c
-@@ -2316,6 +2316,8 @@ static int hostapd_config_fill(struct ho
+@@ -2447,6 +2447,8 @@ static int hostapd_config_fill(struct ho
                           sizeof(conf->bss[0]->iface));
        } else if (os_strcmp(buf, "bridge") == 0) {
                os_strlcpy(bss->bridge, pos, sizeof(bss->bridge));
 +              if (!bss->wds_bridge[0])
 +                      os_strlcpy(bss->wds_bridge, pos, sizeof(bss->wds_bridge));
+       } else if (os_strcmp(buf, "bridge_hairpin") == 0) {
+               bss->bridge_hairpin = atoi(pos);
        } else if (os_strcmp(buf, "vlan_bridge") == 0) {
-               os_strlcpy(bss->vlan_bridge, pos, sizeof(bss->vlan_bridge));
-       } else if (os_strcmp(buf, "wds_bridge") == 0) {
 --- a/src/ap/ap_drv_ops.c
 +++ b/src/ap/ap_drv_ops.c
-@@ -340,8 +340,6 @@ int hostapd_set_wds_sta(struct hostapd_d
+@@ -387,8 +387,6 @@ int hostapd_set_wds_sta(struct hostapd_d
                return -1;
        if (hapd->conf->wds_bridge[0])
                bridge = hapd->conf->wds_bridge;