X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=package%2Fhostapd%2Fpatches%2F540-dynamic_20_40_mhz.patch;fp=package%2Fhostapd%2Fpatches%2F540-dynamic_20_40_mhz.patch;h=d58358c083d5c1b1eb34133e7ad575179901469a;hp=420fcc6bf6cce2e58ca81bb06fe37332f3c62139;hb=16ed0ca7b4b505a3930edf93f28cbeee6c37f86c;hpb=1d37907499d822b301a174551698d0d027f76a83 diff --git a/package/hostapd/patches/540-dynamic_20_40_mhz.patch b/package/hostapd/patches/540-dynamic_20_40_mhz.patch index 420fcc6bf6..d58358c083 100644 --- a/package/hostapd/patches/540-dynamic_20_40_mhz.patch +++ b/package/hostapd/patches/540-dynamic_20_40_mhz.patch @@ -1,6 +1,6 @@ --- a/hostapd/config_file.c +++ b/hostapd/config_file.c -@@ -1957,6 +1957,10 @@ static int hostapd_config_fill(struct ho +@@ -2495,6 +2495,10 @@ static int hostapd_config_fill(struct ho "ht_capab", line); errors++; } @@ -13,17 +13,17 @@ #endif /* CONFIG_IEEE80211N */ --- a/src/ap/ap_config.h +++ b/src/ap/ap_config.h -@@ -434,6 +434,7 @@ struct hostapd_config { +@@ -501,6 +501,7 @@ struct hostapd_config { int ieee80211n; int secondary_channel; int require_ht; + int dynamic_ht40; - }; - - + u32 vht_capab; + int ieee80211ac; + int require_vht; --- a/src/ap/hostapd.c +++ b/src/ap/hostapd.c -@@ -21,6 +21,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" -@@ -317,6 +318,7 @@ static void hostapd_cleanup_iface_pre(st +@@ -323,6 +324,7 @@ static void hostapd_cleanup_iface_pre(st static void hostapd_cleanup_iface_partial(struct hostapd_iface *iface) { @@ -41,7 +41,7 @@ os_free(iface->current_rates); --- a/src/ap/hostapd.h +++ b/src/ap/hostapd.h -@@ -238,6 +238,9 @@ struct hostapd_iface { +@@ -251,6 +251,9 @@ struct hostapd_iface { /* Overlapping BSS information */ int olbc_ht; @@ -50,10 +50,10 @@ + u16 ht_op_mode; void (*scan_cb)(struct hostapd_iface *iface); - + }; --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c -@@ -1205,6 +1205,9 @@ static void handle_beacon(struct hostapd +@@ -1220,6 +1220,9 @@ static void handle_beacon(struct hostapd sizeof(mgmt->u.beacon)), &elems, 0); @@ -65,9 +65,9 @@ --- a/src/ap/ieee802_11.h +++ b/src/ap/ieee802_11.h -@@ -73,4 +73,17 @@ u8 * hostapd_eid_time_zone(struct hostap - int hostapd_update_time_adv(struct hostapd_data *hapd); +@@ -78,4 +78,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); +#ifdef CONFIG_IEEE80211N +void hostapd_trigger_20mhz(struct hostapd_iface *iface);