diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-04-06 12:13:55 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-04-06 12:13:55 +0000 |
commit | 1617cf7da2c4c6441a9eefa1b913dadc53b9098b (patch) | |
tree | ffd3e4daa54f7a444cc2a117e6a8fa8691d2e99c /package/network/services/hostapd/patches/440-dynamic_20_40_mhz.patch | |
parent | 9f34772a476cba359681f9d3327db6636d5624c5 (diff) | |
download | master-187ad058-1617cf7da2c4c6441a9eefa1b913dadc53b9098b.tar.gz master-187ad058-1617cf7da2c4c6441a9eefa1b913dadc53b9098b.tar.bz2 master-187ad058-1617cf7da2c4c6441a9eefa1b913dadc53b9098b.zip |
hostapd: update to version 2014-04-04
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40394 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/services/hostapd/patches/440-dynamic_20_40_mhz.patch')
-rw-r--r-- | package/network/services/hostapd/patches/440-dynamic_20_40_mhz.patch | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/package/network/services/hostapd/patches/440-dynamic_20_40_mhz.patch b/package/network/services/hostapd/patches/440-dynamic_20_40_mhz.patch index 905ec2c1b4..24ab2d52ee 100644 --- a/package/network/services/hostapd/patches/440-dynamic_20_40_mhz.patch +++ b/package/network/services/hostapd/patches/440-dynamic_20_40_mhz.patch @@ -1,19 +1,19 @@ --- a/hostapd/config_file.c +++ b/hostapd/config_file.c -@@ -2422,6 +2422,10 @@ static int hostapd_config_fill(struct ho - "ht_capab", line); - errors++; - } -+ } else if (os_strcmp(buf, "dynamic_ht40") == 0) { -+ conf->dynamic_ht40 = atoi(pos); -+ if (conf->dynamic_ht40 == 1) -+ conf->dynamic_ht40 = 1500; - } else if (os_strcmp(buf, "require_ht") == 0) { - conf->require_ht = atoi(pos); - } else if (os_strcmp(buf, "obss_interval") == 0) { +@@ -2644,6 +2644,10 @@ static int hostapd_config_fill(struct ho + line); + return 1; + } ++ } else if (os_strcmp(buf, "dynamic_ht40") == 0) { ++ conf->dynamic_ht40 = atoi(pos); ++ if (conf->dynamic_ht40 == 1) ++ conf->dynamic_ht40 = 1500; + } else if (os_strcmp(buf, "require_ht") == 0) { + conf->require_ht = atoi(pos); + } else if (os_strcmp(buf, "obss_interval") == 0) { --- a/src/ap/ap_config.h +++ b/src/ap/ap_config.h -@@ -531,6 +531,7 @@ struct hostapd_config { +@@ -580,6 +580,7 @@ struct hostapd_config { int ieee80211n; int secondary_channel; int require_ht; @@ -23,7 +23,7 @@ int ieee80211ac; --- a/src/ap/hostapd.c +++ b/src/ap/hostapd.c -@@ -23,6 +23,7 @@ +@@ -22,6 +22,7 @@ #include "beacon.h" #include "iapp.h" #include "ieee802_1x.h" @@ -31,7 +31,7 @@ #include "ieee802_11_auth.h" #include "vlan_init.h" #include "wpa_auth.h" -@@ -332,6 +333,7 @@ static void hostapd_cleanup(struct hosta +@@ -328,6 +329,7 @@ static void hostapd_cleanup(struct hosta static void hostapd_cleanup_iface_partial(struct hostapd_iface *iface) { wpa_printf(MSG_DEBUG, "%s(%p)", __func__, iface); @@ -41,7 +41,7 @@ os_free(iface->current_rates); --- a/src/ap/hostapd.h +++ b/src/ap/hostapd.h -@@ -326,6 +326,9 @@ struct hostapd_iface { +@@ -330,6 +330,9 @@ struct hostapd_iface { /* Overlapping BSS information */ int olbc_ht; @@ -53,7 +53,7 @@ /* surveying helpers */ --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c -@@ -1538,6 +1538,9 @@ static void handle_beacon(struct hostapd +@@ -1556,6 +1556,9 @@ static void handle_beacon(struct hostapd sizeof(mgmt->u.beacon)), &elems, 0); @@ -65,7 +65,7 @@ --- a/src/ap/ieee802_11.h +++ b/src/ap/ieee802_11.h -@@ -82,4 +82,17 @@ int hostapd_update_time_adv(struct hosta +@@ -83,4 +83,17 @@ int hostapd_update_time_adv(struct hosta void hostapd_client_poll_ok(struct hostapd_data *hapd, const u8 *addr); u8 * hostapd_eid_bss_max_idle_period(struct hostapd_data *hapd, u8 *eid); @@ -85,8 +85,8 @@ #endif /* IEEE802_11_H */ --- a/src/ap/ieee802_11_ht.c +++ b/src/ap/ieee802_11_ht.c -@@ -20,9 +20,11 @@ - #include "drivers/driver.h" +@@ -13,9 +13,11 @@ + #include "common/ieee802_11_defs.h" #include "hostapd.h" #include "ap_config.h" +#include "ap_drv_ops.h" @@ -97,7 +97,7 @@ u8 * hostapd_eid_ht_capabilities(struct hostapd_data *hapd, u8 *eid) -@@ -86,12 +88,15 @@ u8 * hostapd_eid_ht_operation(struct hos +@@ -92,12 +94,15 @@ u8 * hostapd_eid_ht_operation(struct hos oper->control_chan = hapd->iconf->channel; oper->operation_mode = host_to_le16(hapd->iface->ht_op_mode); @@ -119,7 +119,7 @@ pos += sizeof(*oper); -@@ -286,3 +291,84 @@ void hostapd_get_ht_capab(struct hostapd +@@ -291,3 +296,84 @@ void hostapd_get_ht_capab(struct hostapd neg_ht_cap->ht_capabilities_info = host_to_le16(cap); } |