-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed upstream: - 022-hostapd-fix-use-of-uninitialized-stack-variables.patch - 180-driver_nl80211-fix-setting-QoS-map-on-secondary-BSSs.patch - 993-2023-10-28-ACS-Fix-typo-in-bw_40-frequency-array.patch Upstream commit c74739250a ("AP MLD: Use a helper function to check if a STA is a non-AP MLD") forced some header changes, including new patch 461-Move-definition-of-WLAN_SUPP_RATES_MAX-to-defs.h.patch, and the the change to package/network/services/hostapd/src/src/ap/ubus.h. Signed-off-by: Eneas U de Queiroz <[email protected]>
- Loading branch information
1 parent
6f83a70
commit ffc997a
Showing
54 changed files
with
447 additions
and
501 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,13 @@ | |
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=hostapd | ||
PKG_RELEASE:=6 | ||
PKG_RELEASE:=1 | ||
|
||
PKG_SOURCE_URL:=http://w1.fi/hostap.git | ||
PKG_SOURCE_PROTO:=git | ||
PKG_SOURCE_DATE:=2023-09-08 | ||
PKG_SOURCE_VERSION:=e5ccbfc69ecf297590341ae8b461edba9d8e964c | ||
PKG_MIRROR_HASH:=fcc6550f46c7f8bbdbf71e63f8f699b9a0878565ad1b90a17855f5ec21283b8f | ||
PKG_SOURCE_DATE:=2024-02-03 | ||
PKG_SOURCE_VERSION:=8270afcdeeccd7a5ce904bacf45801a5b3cf4f0e | ||
PKG_MIRROR_HASH:=3c223f519970f7f9b03dbfd859d307043c4d20e160292e709c3cce8c8107cce8 | ||
|
||
PKG_MAINTAINER:=Felix Fietkau <[email protected]> | ||
PKG_LICENSE:=BSD-3-Clause | ||
|
43 changes: 0 additions & 43 deletions
43
package/network/services/hostapd/patches/001-wolfssl-init-RNG-with-ECC-key.patch
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,12 +9,12 @@ Note: DFS is assumed to be usable if a country code has been set | |
Signed-off-by: Benjamin Berg <[email protected]> | ||
Signed-off-by: Peter Oh <[email protected]> | ||
--- | ||
wpa_supplicant/wpa_supplicant.c | 25 +++++++++++++++++++------ | ||
1 file changed, 19 insertions(+), 6 deletions(-) | ||
wpa_supplicant/wpa_supplicant.c | 38 ++++++++++++++++++++++----------- | ||
1 file changed, 25 insertions(+), 13 deletions(-) | ||
|
||
--- a/wpa_supplicant/wpa_supplicant.c | ||
+++ b/wpa_supplicant/wpa_supplicant.c | ||
@@ -2638,7 +2638,7 @@ static int drv_supports_vht(struct wpa_s | ||
@@ -2690,7 +2690,7 @@ static int drv_supports_vht(struct wpa_s | ||
} | ||
|
||
|
||
|
@@ -23,7 +23,7 @@ Signed-off-by: Peter Oh <[email protected]> | |
{ | ||
int i; | ||
|
||
@@ -2647,7 +2647,10 @@ static bool ibss_mesh_is_80mhz_avail(int | ||
@@ -2699,7 +2699,10 @@ static bool ibss_mesh_is_80mhz_avail(int | ||
|
||
chan = hw_get_channel_chan(mode, i, NULL); | ||
if (!chan || | ||
|
@@ -35,7 +35,7 @@ Signed-off-by: Peter Oh <[email protected]> | |
return false; | ||
} | ||
|
||
@@ -2774,7 +2777,7 @@ static void ibss_mesh_select_40mhz(struc | ||
@@ -2826,7 +2829,7 @@ static void ibss_mesh_select_40mhz(struc | ||
const struct wpa_ssid *ssid, | ||
struct hostapd_hw_modes *mode, | ||
struct hostapd_freq_params *freq, | ||
|
@@ -44,7 +44,7 @@ Signed-off-by: Peter Oh <[email protected]> | |
int chan_idx; | ||
struct hostapd_channel_data *pri_chan = NULL, *sec_chan = NULL; | ||
int i, res; | ||
@@ -2798,8 +2801,11 @@ static void ibss_mesh_select_40mhz(struc | ||
@@ -2850,8 +2853,11 @@ static void ibss_mesh_select_40mhz(struc | ||
return; | ||
|
||
/* Check primary channel flags */ | ||
|
@@ -57,7 +57,7 @@ Signed-off-by: Peter Oh <[email protected]> | |
|
||
#ifdef CONFIG_HT_OVERRIDES | ||
if (ssid->disable_ht40) | ||
@@ -2825,8 +2831,11 @@ static void ibss_mesh_select_40mhz(struc | ||
@@ -2877,8 +2883,11 @@ static void ibss_mesh_select_40mhz(struc | ||
return; | ||
|
||
/* Check secondary channel flags */ | ||
|
@@ -70,7 +70,7 @@ Signed-off-by: Peter Oh <[email protected]> | |
|
||
if (ht40 == -1) { | ||
if (!(pri_chan->flag & HOSTAPD_CHAN_HT40MINUS)) | ||
@@ -2880,7 +2889,7 @@ static bool ibss_mesh_select_80_160mhz(s | ||
@@ -2932,7 +2941,7 @@ static bool ibss_mesh_select_80_160mhz(s | ||
const struct wpa_ssid *ssid, | ||
struct hostapd_hw_modes *mode, | ||
struct hostapd_freq_params *freq, | ||
|
@@ -79,7 +79,7 @@ Signed-off-by: Peter Oh <[email protected]> | |
static const int bw80[] = { | ||
5180, 5260, 5500, 5580, 5660, 5745, 5825, | ||
5955, 6035, 6115, 6195, 6275, 6355, 6435, | ||
@@ -2925,7 +2934,7 @@ static bool ibss_mesh_select_80_160mhz(s | ||
@@ -2977,7 +2986,7 @@ static bool ibss_mesh_select_80_160mhz(s | ||
goto skip_80mhz; | ||
|
||
/* Use 40 MHz if channel not usable */ | ||
|
@@ -88,7 +88,7 @@ Signed-off-by: Peter Oh <[email protected]> | |
goto skip_80mhz; | ||
|
||
chwidth = CONF_OPER_CHWIDTH_80MHZ; | ||
@@ -2939,7 +2948,7 @@ static bool ibss_mesh_select_80_160mhz(s | ||
@@ -2991,7 +3000,7 @@ static bool ibss_mesh_select_80_160mhz(s | ||
if ((mode->he_capab[ieee80211_mode].phy_cap[ | ||
HE_PHYCAP_CHANNEL_WIDTH_SET_IDX] & | ||
HE_PHYCAP_CHANNEL_WIDTH_SET_160MHZ_IN_5G) && is_6ghz && | ||
|
@@ -97,7 +97,7 @@ Signed-off-by: Peter Oh <[email protected]> | |
for (j = 0; j < ARRAY_SIZE(bw160); j++) { | ||
if (freq->freq == bw160[j]) { | ||
chwidth = CONF_OPER_CHWIDTH_160MHZ; | ||
@@ -2967,10 +2976,12 @@ static bool ibss_mesh_select_80_160mhz(s | ||
@@ -3019,10 +3028,12 @@ static bool ibss_mesh_select_80_160mhz(s | ||
if (!chan) | ||
continue; | ||
|
||
|
@@ -113,15 +113,15 @@ Signed-off-by: Peter Oh <[email protected]> | |
|
||
/* Found a suitable second segment for 80+80 */ | ||
chwidth = CONF_OPER_CHWIDTH_80P80MHZ; | ||
@@ -3025,6 +3036,7 @@ void ibss_mesh_setup_freq(struct wpa_sup | ||
@@ -3077,6 +3088,7 @@ void ibss_mesh_setup_freq(struct wpa_sup | ||
int i, obss_scan = 1; | ||
u8 channel; | ||
bool is_6ghz; | ||
bool is_6ghz, is_24ghz; | ||
+ bool dfs_enabled = wpa_s->conf->country[0] && (wpa_s->drv_flags & WPA_DRIVER_FLAGS_RADAR); | ||
|
||
freq->freq = ssid->frequency; | ||
|
||
@@ -3070,9 +3082,9 @@ void ibss_mesh_setup_freq(struct wpa_sup | ||
@@ -3125,9 +3137,9 @@ void ibss_mesh_setup_freq(struct wpa_sup | ||
freq->channel = channel; | ||
/* Setup higher BW only for 5 GHz */ | ||
if (mode->mode == HOSTAPD_MODE_IEEE80211A) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,11 +64,11 @@ Signed-off-by: Markus Theil <[email protected]> | |
return NULL; | ||
+ | ||
chan_idx = _rand % num_available_chandefs; | ||
dfs_find_channel(iface, &chan, chan_idx, type); | ||
if (!chan) { | ||
wpa_printf(MSG_DEBUG, "DFS: Picked random entry from the list: %d/%d", | ||
chan_idx, num_available_chandefs); | ||
--- a/src/drivers/driver_nl80211.c | ||
+++ b/src/drivers/driver_nl80211.c | ||
@@ -11017,6 +11017,10 @@ static int nl80211_switch_channel(void * | ||
@@ -11254,6 +11254,10 @@ static int nl80211_switch_channel(void * | ||
if (ret) | ||
goto error; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
...twork/services/hostapd/patches/022-hostapd-fix-use-of-uninitialized-stack-variables.patch
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,17 +10,17 @@ Signed-off-by: Felix Fietkau <[email protected]> | |
|
||
--- a/src/drivers/driver_nl80211.c | ||
+++ b/src/drivers/driver_nl80211.c | ||
@@ -16,9 +16,6 @@ | ||
#include <net/if.h> | ||
@@ -18,9 +18,6 @@ | ||
#include <netlink/genl/genl.h> | ||
#include <netlink/genl/ctrl.h> | ||
#include <netlink/genl/family.h> | ||
-#ifdef CONFIG_LIBNL3_ROUTE | ||
-#include <netlink/route/neighbour.h> | ||
-#endif /* CONFIG_LIBNL3_ROUTE */ | ||
#include <linux/rtnetlink.h> | ||
#include <netpacket/packet.h> | ||
#include <linux/errqueue.h> | ||
@@ -5783,26 +5780,29 @@ fail: | ||
@@ -5883,26 +5880,29 @@ fail: | ||
|
||
static void rtnl_neigh_delete_fdb_entry(struct i802_bss *bss, const u8 *addr) | ||
{ | ||
|
@@ -64,7 +64,7 @@ Signed-off-by: Felix Fietkau <[email protected]> | |
if (err < 0) { | ||
wpa_printf(MSG_DEBUG, "nl80211: bridge FDB entry delete for " | ||
MACSTR " ifindex=%d failed: %s", MAC2STR(addr), | ||
@@ -5812,9 +5812,8 @@ static void rtnl_neigh_delete_fdb_entry( | ||
@@ -5912,9 +5912,8 @@ static void rtnl_neigh_delete_fdb_entry( | ||
MACSTR, MAC2STR(addr)); | ||
} | ||
|
||
|
@@ -76,23 +76,23 @@ Signed-off-by: Felix Fietkau <[email protected]> | |
} | ||
|
||
|
||
@@ -8492,7 +8491,6 @@ static void *i802_init(struct hostapd_da | ||
@@ -8667,7 +8666,6 @@ static void *i802_init(struct hostapd_da | ||
(params->num_bridge == 0 || !params->bridge[0])) | ||
add_ifidx(drv, br_ifindex, drv->ifindex); | ||
|
||
-#ifdef CONFIG_LIBNL3_ROUTE | ||
if (bss->added_if_into_bridge || bss->already_in_bridge) { | ||
int err; | ||
|
||
@@ -8509,7 +8507,6 @@ static void *i802_init(struct hostapd_da | ||
@@ -8684,7 +8682,6 @@ static void *i802_init(struct hostapd_da | ||
goto failed; | ||
} | ||
} | ||
-#endif /* CONFIG_LIBNL3_ROUTE */ | ||
|
||
if (drv->capa.flags2 & WPA_DRIVER_FLAGS2_CONTROL_PORT_RX) { | ||
wpa_printf(MSG_DEBUG, | ||
@@ -11883,13 +11880,14 @@ static int wpa_driver_br_add_ip_neigh(vo | ||
@@ -12130,13 +12127,14 @@ static int wpa_driver_br_add_ip_neigh(vo | ||
const u8 *ipaddr, int prefixlen, | ||
const u8 *addr) | ||
{ | ||
|
@@ -112,7 +112,7 @@ Signed-off-by: Felix Fietkau <[email protected]> | |
int res; | ||
|
||
if (!ipaddr || prefixlen == 0 || !addr) | ||
@@ -11908,85 +11906,66 @@ static int wpa_driver_br_add_ip_neigh(vo | ||
@@ -12155,85 +12153,66 @@ static int wpa_driver_br_add_ip_neigh(vo | ||
} | ||
|
||
if (version == 4) { | ||
|
@@ -220,7 +220,7 @@ Signed-off-by: Felix Fietkau <[email protected]> | |
addrsize = 16; | ||
} else { | ||
return -EINVAL; | ||
@@ -12004,41 +11983,30 @@ static int wpa_driver_br_delete_ip_neigh | ||
@@ -12251,41 +12230,30 @@ static int wpa_driver_br_delete_ip_neigh | ||
return -1; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ Signed-off-by: Felix Fietkau <[email protected]> | |
|
||
--- a/src/ap/ieee802_11.c | ||
+++ b/src/ap/ieee802_11.c | ||
@@ -3020,15 +3020,6 @@ static void handle_auth(struct hostapd_d | ||
@@ -3031,15 +3031,6 @@ static void handle_auth(struct hostapd_d | ||
seq_ctrl); | ||
return; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.