Skip to content

Commit 95c8b38

Browse files
committed
hostapd: update to Git HEAD (2025-08-26)
33fb6c738bc4 P2P2: Enable some testing parameters without CONFIG_TESTING_OPTIONS 56616c4183a6 P2P2: Update device name with USD device found 1d791939dcdf Cancel pending connect radio work when network is removed 8235e21d7fe3 P2P: Fix preferred frequency list size handling in p2p_check_pref_chan() 4bc754d9c727 Add QCA vendor interface to enable/disable TX power limit d65f5705df98 Add QCA vendor attribute to disable A-MSDU address check validation 74881765b7fb nl80211: Use i802_bss in qca_set_allowed_ap_freqs() to use correct ifindex ca8303135cbb P2P2: Set P2P mode to the driver on P2P GO device 063ae7af68dc ACS: Fix incorrect index calculation for primary channel 4aa3a58377c1 ACS: Validate all channels in a segment before selection 02c9d3376224 ACS: Extend support to exclude 6 GHz non-PSC in non-offloaded ACS 307365eb57bb tests: Add test for ACS exclude 6 GHz non-PSC 0721e4886316 Add QCA vendor attribute to configure EHT RTWT support 76b39db44c77 QCA vendor attribute to configure BTM MLD Recommendation For Multiple APs support 2faeffdeca22 AP MLD: Properly deinit sm of non-ML STA connected to ML AP e4f4e5a872a5 AP MLD: Fix STA's flag wrongly updated in SME-in-driver cases ec6cade42c0f Increase buffer size to handle long freq_list entries in config 0522585da7b0 Write freq_list as per-network item in wpa_supplicant.conf 5e527704b912 Use SCS reconfiguration logic under CONFIG_NO_ROBUST_AV 5d6214a724c1 PASN: Clear driver/firwmare ranging context if PASN Auth 1 fails 14dc782d50db DPP: Avoid generating DPP shared secret(z) for non-association links 40326b60b17a RSNO: Allow OWE to be configured in RSN overrides in AP processing acadef1b04d5 hostapd_cli: Open a new hostapd connection on ping failure when using -a ac0d9bd80ec5 Add QCA vendor attributes to configure global TX chain mask f5b8ef6c966a Add QCA vendor attributes for MSDU TX statistics 6c11fcefe4fc hostapd: Prevent blocking sends on control interface monitor socket 0bbb8a66f64c AP MLD: Remove redundant outer loop in hostapd_notif_disassoc_mld() 52fb5ccd91f3 AP MLD: Avoid using mld_id to identify partners 7bb930d50b5f wpa_supplicant: Add option to disable 80+80 MHz opclass advertisement 9001059bd6ad tests: Make dbus_connect_oom more robust 663fb1940231 AP MLD: Fix hostapd_is_mld_ap() check 590f3bdb4c61 AP MLD: Rename hostapd_is_mld_ap() to hostapd_is_multiple_link_mld() b13b69a235f7 Add VLANID in the AP-STA-CONNECTED events c1e8b1c6462b SAE: Assign VLAN when using PMKSA caching 9bc29dcdfdee SAE: Default password binding through control interface 9de127c31c40 tests: More testing coverage for SAE with multiple passwords 5ce1d4180386 nl80211: Fix crash by cancelling scan timeout before a BSS is removed ca266cc24d87 nl80211: Fix crash by setting the drv->ctx properly Signed-off-by: Felix Fietkau <nbd@nbd.name>
1 parent 21059cb commit 95c8b38

25 files changed

Lines changed: 122 additions & 120 deletions

package/network/services/hostapd/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ PKG_RELEASE:=1
99

1010
PKG_SOURCE_URL:=https://w1.fi/hostap.git
1111
PKG_SOURCE_PROTO:=git
12-
PKG_SOURCE_DATE:=2025-06-27
13-
PKG_SOURCE_VERSION:=ea08700a762f13c415e319993720bed83ad9aa2c
14-
PKG_MIRROR_HASH:=8bfd23188058611a7efb3b0064a7601f8073ceedbf1538a99f93abc743608d46
12+
PKG_SOURCE_DATE:=2025-08-26
13+
PKG_SOURCE_VERSION:=ca266cc24d8705eb1a2a0857ad326e48b1408b20
14+
PKG_MIRROR_HASH:=59ac677093f524ff98588abd9f33805a336a6e929d6814222f0d784c854f2343
1515

1616
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
1717
PKG_LICENSE:=BSD-3-Clause

package/network/services/hostapd/patches/010-mesh-Allow-DFS-channels-to-be-selected-if-dfs-is-ena.patch

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Signed-off-by: Peter Oh <peter.oh@bowerswilkins.com>
1414

1515
--- a/wpa_supplicant/wpa_supplicant.c
1616
+++ b/wpa_supplicant/wpa_supplicant.c
17-
@@ -2974,7 +2974,7 @@ static int drv_supports_vht(struct wpa_s
17+
@@ -2976,7 +2976,7 @@ static int drv_supports_vht(struct wpa_s
1818
}
1919

2020

@@ -23,7 +23,7 @@ Signed-off-by: Peter Oh <peter.oh@bowerswilkins.com>
2323
{
2424
int i;
2525

26-
@@ -2983,7 +2983,10 @@ static bool ibss_mesh_is_80mhz_avail(int
26+
@@ -2985,7 +2985,10 @@ static bool ibss_mesh_is_80mhz_avail(int
2727

2828
chan = hw_get_channel_chan(mode, i, NULL);
2929
if (!chan ||
@@ -35,7 +35,7 @@ Signed-off-by: Peter Oh <peter.oh@bowerswilkins.com>
3535
return false;
3636
}
3737

38-
@@ -3110,7 +3113,7 @@ static void ibss_mesh_select_40mhz(struc
38+
@@ -3112,7 +3115,7 @@ static void ibss_mesh_select_40mhz(struc
3939
const struct wpa_ssid *ssid,
4040
struct hostapd_hw_modes *mode,
4141
struct hostapd_freq_params *freq,
@@ -44,7 +44,7 @@ Signed-off-by: Peter Oh <peter.oh@bowerswilkins.com>
4444
{
4545
int chan_idx;
4646
struct hostapd_channel_data *pri_chan = NULL, *sec_chan = NULL;
47-
@@ -3141,8 +3144,11 @@ static void ibss_mesh_select_40mhz(struc
47+
@@ -3143,8 +3146,11 @@ static void ibss_mesh_select_40mhz(struc
4848
return;
4949

5050
/* Check primary channel flags */
@@ -58,7 +58,7 @@ Signed-off-by: Peter Oh <peter.oh@bowerswilkins.com>
5858

5959
#ifdef CONFIG_HT_OVERRIDES
6060
if (ssid->disable_ht40)
61-
@@ -3177,8 +3183,11 @@ static void ibss_mesh_select_40mhz(struc
61+
@@ -3179,8 +3185,11 @@ static void ibss_mesh_select_40mhz(struc
6262
return;
6363

6464
/* Check secondary channel flags */
@@ -72,7 +72,7 @@ Signed-off-by: Peter Oh <peter.oh@bowerswilkins.com>
7272

7373
if (freq->ht_enabled) {
7474
if (ht40 == -1) {
75-
@@ -3256,7 +3265,7 @@ static bool ibss_mesh_select_80_160mhz(s
75+
@@ -3258,7 +3267,7 @@ static bool ibss_mesh_select_80_160mhz(s
7676
const struct wpa_ssid *ssid,
7777
struct hostapd_hw_modes *mode,
7878
struct hostapd_freq_params *freq,
@@ -81,7 +81,7 @@ Signed-off-by: Peter Oh <peter.oh@bowerswilkins.com>
8181
static const int bw80[] = {
8282
5180, 5260, 5500, 5580, 5660, 5745, 5825,
8383
5955, 6035, 6115, 6195, 6275, 6355, 6435,
84-
@@ -3309,7 +3318,7 @@ static bool ibss_mesh_select_80_160mhz(s
84+
@@ -3311,7 +3320,7 @@ static bool ibss_mesh_select_80_160mhz(s
8585
goto skip_80mhz;
8686

8787
/* Use 40 MHz if channel not usable */
@@ -90,7 +90,7 @@ Signed-off-by: Peter Oh <peter.oh@bowerswilkins.com>
9090
goto skip_80mhz;
9191

9292
chwidth = CONF_OPER_CHWIDTH_80MHZ;
93-
@@ -3351,7 +3360,7 @@ static bool ibss_mesh_select_80_160mhz(s
93+
@@ -3353,7 +3362,7 @@ static bool ibss_mesh_select_80_160mhz(s
9494
HE_PHYCAP_CHANNEL_WIDTH_SET_160MHZ_IN_5G) &&
9595
(ssid->max_oper_chwidth == CONF_OPER_CHWIDTH_160MHZ ||
9696
ssid->max_oper_chwidth == CONF_OPER_CHWIDTH_320MHZ) &&
@@ -99,7 +99,7 @@ Signed-off-by: Peter Oh <peter.oh@bowerswilkins.com>
9999
for (j = 0; j < ARRAY_SIZE(bw160); j++) {
100100
u8 start_chan;
101101

102-
@@ -3374,11 +3383,11 @@ static bool ibss_mesh_select_80_160mhz(s
102+
@@ -3376,11 +3385,11 @@ static bool ibss_mesh_select_80_160mhz(s
103103
EHT_PHYCAP_320MHZ_IN_6GHZ_SUPPORT_MASK) && is_6ghz &&
104104
ssid->max_oper_chwidth == CONF_OPER_CHWIDTH_320MHZ &&
105105
ibss_mesh_is_80mhz_avail(channel + 16 -
@@ -114,7 +114,7 @@ Signed-off-by: Peter Oh <peter.oh@bowerswilkins.com>
114114
for (j = 0; j < ARRAY_SIZE(bw320); j += 2) {
115115
if (freq->freq >= bw320[j] &&
116116
freq->freq <= bw320[j + 1]) {
117-
@@ -3407,10 +3416,12 @@ static bool ibss_mesh_select_80_160mhz(s
117+
@@ -3409,10 +3418,12 @@ static bool ibss_mesh_select_80_160mhz(s
118118
if (!chan)
119119
continue;
120120

@@ -131,15 +131,15 @@ Signed-off-by: Peter Oh <peter.oh@bowerswilkins.com>
131131

132132
/* Found a suitable second segment for 80+80 */
133133
chwidth = CONF_OPER_CHWIDTH_80P80MHZ;
134-
@@ -3465,6 +3476,7 @@ void ibss_mesh_setup_freq(struct wpa_sup
134+
@@ -3467,6 +3478,7 @@ void ibss_mesh_setup_freq(struct wpa_sup
135135
int obss_scan = 1;
136136
u8 channel;
137137
bool is_6ghz, is_24ghz;
138138
+ bool dfs_enabled = wpa_s->conf->country[0] && (wpa_s->drv_flags & WPA_DRIVER_FLAGS_RADAR);
139139

140140
freq->freq = ssid->frequency;
141141

142-
@@ -3508,9 +3520,9 @@ void ibss_mesh_setup_freq(struct wpa_sup
142+
@@ -3510,9 +3522,9 @@ void ibss_mesh_setup_freq(struct wpa_sup
143143
/* Setup higher BW only for 5 and 6 GHz */
144144
if (mode->mode == HOSTAPD_MODE_IEEE80211A) {
145145
ibss_mesh_select_40mhz(wpa_s, ssid, mode, freq, obss_scan,

package/network/services/hostapd/patches/011-mesh-use-deterministic-channel-on-channel-switch.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de>
6868
chan_idx, num_available_chandefs);
6969
--- a/src/drivers/driver_nl80211.c
7070
+++ b/src/drivers/driver_nl80211.c
71-
@@ -11658,6 +11658,10 @@ static int nl80211_switch_channel(void *
71+
@@ -11668,6 +11668,10 @@ static int nl80211_switch_channel(void *
7272
if (ret)
7373
goto error;
7474

package/network/services/hostapd/patches/021-fix-sta-add-after-previous-connection.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Subject: [PATCH] fix adding back stations after a missed deauth/disassoc
44

55
--- a/src/ap/ieee802_11.c
66
+++ b/src/ap/ieee802_11.c
7-
@@ -5076,6 +5076,13 @@ static int add_associated_sta(struct hos
7+
@@ -5136,6 +5136,13 @@ static int add_associated_sta(struct hos
88
* drivers to accept the STA parameter configuration. Since this is
99
* after a new FT-over-DS exchange, a new TK has been derived, so key
1010
* reinstallation is not a concern for this case.
@@ -18,7 +18,7 @@ Subject: [PATCH] fix adding back stations after a missed deauth/disassoc
1818
*/
1919
wpa_printf(MSG_DEBUG, "Add associated STA " MACSTR
2020
" (added_unassoc=%d auth_alg=%u ft_over_ds=%u reassoc=%d authorized=%d ft_tk=%d fils_tk=%d)",
21-
@@ -5089,7 +5096,8 @@ static int add_associated_sta(struct hos
21+
@@ -5149,7 +5156,8 @@ static int add_associated_sta(struct hos
2222
(!(sta->flags & WLAN_STA_AUTHORIZED) ||
2323
(reassoc && sta->ft_over_ds && sta->auth_alg == WLAN_AUTH_FT) ||
2424
(!wpa_auth_sta_ft_tk_already_set(sta->wpa_sm) &&

package/network/services/hostapd/patches/030-Revert-nl80211-Accept-a-global-nl80211-event-to-a-br.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ This reverts commit 1c994da117ad795766270cf04bc923971e27412f.
3737
return drv;
3838
}
3939
return NULL;
40-
@@ -8583,7 +8585,7 @@ static void add_ifidx(struct wpa_driver_
40+
@@ -8586,7 +8588,7 @@ static void add_ifidx(struct wpa_driver_
4141
wpa_printf(MSG_DEBUG,
4242
"nl80211: Add own interface ifindex %d (ifidx_reason %d)",
4343
ifidx, ifidx_reason);
@@ -46,7 +46,7 @@ This reverts commit 1c994da117ad795766270cf04bc923971e27412f.
4646
wpa_printf(MSG_DEBUG, "nl80211: ifindex %d already in the list",
4747
ifidx);
4848
return;
49-
@@ -8643,7 +8645,7 @@ static void del_ifidx(struct wpa_driver_
49+
@@ -8646,7 +8648,7 @@ static void del_ifidx(struct wpa_driver_
5050
}
5151

5252

@@ -55,7 +55,7 @@ This reverts commit 1c994da117ad795766270cf04bc923971e27412f.
5555
int ifidx_reason)
5656
{
5757
int i;
58-
@@ -8750,7 +8752,7 @@ static void handle_eapol(int sock, void
58+
@@ -8753,7 +8755,7 @@ static void handle_eapol(int sock, void
5959
return;
6060
}
6161

package/network/services/hostapd/patches/051-nl80211-add-extra-ies-only-if-allowed-by-driver.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Signed-off-by: David Bauer <mail@david-bauer.net>
2626

2727
--- a/src/drivers/driver.h
2828
+++ b/src/drivers/driver.h
29-
@@ -2442,6 +2442,9 @@ struct wpa_driver_capa {
29+
@@ -2447,6 +2447,9 @@ struct wpa_driver_capa {
3030
/** Maximum number of iterations in a single scan plan */
3131
u32 max_sched_scan_plan_iterations;
3232

package/network/services/hostapd/patches/140-tests-Makefile-make-run-tests-with-CONFIG_TLS.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,7 @@ Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
11241124
heavy_groups = [14, 15, 16]
11251125
suitable_groups = [15, 16, 17, 18, 19, 20, 21]
11261126
groups = [str(g) for g in sae_groups]
1127-
@@ -2285,6 +2290,8 @@ def run_sae_pwe_group(dev, apdev, group)
1127+
@@ -2387,6 +2392,8 @@ def run_sae_pwe_group(dev, apdev, group)
11281128
logger.info("Add Brainpool EC groups since OpenSSL is new enough")
11291129
elif tls.startswith("wolfSSL"):
11301130
logger.info("Make sure Brainpool EC groups were enabled when compiling wolfSSL")

package/network/services/hostapd/patches/200-multicall.patch

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ This allows building both hostapd and wpa_supplicant as a single binary
9494
if (c < 0)
9595
--- a/src/ap/drv_callbacks.c
9696
+++ b/src/ap/drv_callbacks.c
97-
@@ -2566,8 +2566,8 @@ static void hostapd_mld_iface_disable(st
97+
@@ -2561,8 +2561,8 @@ static void hostapd_mld_iface_disable(st
9898
#endif /* CONFIG_IEEE80211BE */
9999

100100

@@ -105,7 +105,7 @@ This allows building both hostapd and wpa_supplicant as a single binary
105105
{
106106
struct hostapd_data *hapd = ctx;
107107
struct sta_info *sta;
108-
@@ -2925,7 +2925,7 @@ void wpa_supplicant_event(void *ctx, enu
108+
@@ -2920,7 +2920,7 @@ void wpa_supplicant_event(void *ctx, enu
109109
}
110110

111111

@@ -116,7 +116,7 @@ This allows building both hostapd and wpa_supplicant as a single binary
116116
struct hapd_interfaces *interfaces = ctx;
117117
--- a/src/drivers/driver.h
118118
+++ b/src/drivers/driver.h
119-
@@ -7161,8 +7161,8 @@ union wpa_event_data {
119+
@@ -7166,8 +7166,8 @@ union wpa_event_data {
120120
* Driver wrapper code should call this function whenever an event is received
121121
* from the driver.
122122
*/
@@ -127,7 +127,7 @@ This allows building both hostapd and wpa_supplicant as a single binary
127127

128128
/**
129129
* wpa_supplicant_event_global - Report a driver event for wpa_supplicant
130-
@@ -7174,7 +7174,7 @@ void wpa_supplicant_event(void *ctx, enu
130+
@@ -7179,7 +7179,7 @@ void wpa_supplicant_event(void *ctx, enu
131131
* Same as wpa_supplicant_event(), but we search for the interface in
132132
* wpa_global.
133133
*/
@@ -278,7 +278,7 @@ This allows building both hostapd and wpa_supplicant as a single binary
278278
os_memset(&eapol_test, 0, sizeof(eapol_test));
279279
--- a/wpa_supplicant/events.c
280280
+++ b/wpa_supplicant/events.c
281-
@@ -6255,8 +6255,8 @@ static int wpas_pasn_auth(struct wpa_sup
281+
@@ -6257,8 +6257,8 @@ static int wpas_pasn_auth(struct wpa_sup
282282
#endif /* CONFIG_PASN */
283283

284284

@@ -289,7 +289,7 @@ This allows building both hostapd and wpa_supplicant as a single binary
289289
{
290290
struct wpa_supplicant *wpa_s = ctx;
291291
int resched;
292-
@@ -7228,7 +7228,7 @@ void wpa_supplicant_event(void *ctx, enu
292+
@@ -7232,7 +7232,7 @@ void wpa_supplicant_event(void *ctx, enu
293293
}
294294

295295

@@ -331,15 +331,15 @@ This allows building both hostapd and wpa_supplicant as a single binary
331331
os_memset(&global, 0, sizeof(global));
332332
--- a/wpa_supplicant/wpa_supplicant.c
333333
+++ b/wpa_supplicant/wpa_supplicant.c
334-
@@ -8128,7 +8128,6 @@ struct wpa_interface * wpa_supplicant_ma
334+
@@ -8156,7 +8156,6 @@ struct wpa_interface * wpa_supplicant_ma
335335
return NULL;
336336
}
337337

338338
-
339339
/**
340340
* wpa_supplicant_match_existing - Match existing interfaces
341341
* @global: Pointer to global data from wpa_supplicant_init()
342-
@@ -8163,6 +8162,11 @@ static int wpa_supplicant_match_existing
342+
@@ -8191,6 +8190,11 @@ static int wpa_supplicant_match_existing
343343

344344
#endif /* CONFIG_MATCH_IFACE */
345345

@@ -351,7 +351,7 @@ This allows building both hostapd and wpa_supplicant as a single binary
351351

352352
/**
353353
* wpa_supplicant_add_iface - Add a new network interface
354-
@@ -8419,6 +8423,8 @@ struct wpa_global * wpa_supplicant_init(
354+
@@ -8447,6 +8451,8 @@ struct wpa_global * wpa_supplicant_init(
355355
#ifndef CONFIG_NO_WPA_MSG
356356
wpa_msg_register_ifname_cb(wpa_supplicant_msg_ifname_cb);
357357
#endif /* CONFIG_NO_WPA_MSG */

package/network/services/hostapd/patches/211-ctrl-make-WNM_AP-functions-dependant-on-CONFIG_AP.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Signed-off-by: David Bauer <mail@david-bauer.net>
1313

1414
--- a/wpa_supplicant/ctrl_iface.c
1515
+++ b/wpa_supplicant/ctrl_iface.c
16-
@@ -13678,7 +13678,7 @@ char * wpa_supplicant_ctrl_iface_process
16+
@@ -13676,7 +13676,7 @@ char * wpa_supplicant_ctrl_iface_process
1717
if (wpas_ctrl_iface_coloc_intf_report(wpa_s, buf + 18))
1818
reply_len = -1;
1919
#endif /* CONFIG_WNM */
@@ -22,7 +22,7 @@ Signed-off-by: David Bauer <mail@david-bauer.net>
2222
} else if (os_strncmp(buf, "DISASSOC_IMMINENT ", 18) == 0) {
2323
if (ap_ctrl_iface_disassoc_imminent(wpa_s, buf + 18))
2424
reply_len = -1;
25-
@@ -13688,7 +13688,7 @@ char * wpa_supplicant_ctrl_iface_process
25+
@@ -13686,7 +13686,7 @@ char * wpa_supplicant_ctrl_iface_process
2626
} else if (os_strncmp(buf, "BSS_TM_REQ ", 11) == 0) {
2727
if (ap_ctrl_iface_bss_tm_req(wpa_s, buf + 11))
2828
reply_len = -1;

package/network/services/hostapd/patches/252-disable_ctrl_iface_mib.patch

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ Subject: [PATCH] Remove some unnecessary control interface functionality
1616
else
1717
--- a/hostapd/ctrl_iface.c
1818
+++ b/hostapd/ctrl_iface.c
19-
@@ -4096,6 +4096,7 @@ static int hostapd_ctrl_iface_receive_pr
19+
@@ -4115,6 +4115,7 @@ static int hostapd_ctrl_iface_receive_pr
2020
reply_size);
2121
} else if (os_strcmp(buf, "STATUS-DRIVER") == 0) {
2222
reply_len = hostapd_drv_status(hapd, reply, reply_size);
2323
+#ifdef CONFIG_CTRL_IFACE_MIB
2424
} else if (os_strcmp(buf, "MIB") == 0) {
2525
reply_len = ieee802_11_get_mib(hapd, reply, reply_size);
2626
if (reply_len >= 0) {
27-
@@ -4137,6 +4138,7 @@ static int hostapd_ctrl_iface_receive_pr
27+
@@ -4156,6 +4157,7 @@ static int hostapd_ctrl_iface_receive_pr
2828
} else if (os_strncmp(buf, "STA-NEXT ", 9) == 0) {
2929
reply_len = hostapd_ctrl_iface_sta_next(hapd, buf + 9, reply,
3030
reply_size);
@@ -113,15 +113,15 @@ Subject: [PATCH] Remove some unnecessary control interface functionality
113113
if (os_snprintf_error(buflen - len, ret))
114114
--- a/src/ap/ieee802_1x.c
115115
+++ b/src/ap/ieee802_1x.c
116-
@@ -2831,6 +2831,7 @@ static const char * bool_txt(bool val)
116+
@@ -2836,6 +2836,7 @@ static const char * bool_txt(bool val)
117117
return val ? "TRUE" : "FALSE";
118118
}
119119

120120
+#ifdef CONFIG_CTRL_IFACE_MIB
121121

122122
int ieee802_1x_get_mib(struct hostapd_data *hapd, char *buf, size_t buflen)
123123
{
124-
@@ -3017,6 +3018,7 @@ int ieee802_1x_get_mib_sta(struct hostap
124+
@@ -3022,6 +3023,7 @@ int ieee802_1x_get_mib_sta(struct hostap
125125
return len;
126126
}
127127

@@ -181,7 +181,7 @@ Subject: [PATCH] Remove some unnecessary control interface functionality
181181

182182
--- a/wpa_supplicant/ap.c
183183
+++ b/wpa_supplicant/ap.c
184-
@@ -1523,7 +1523,7 @@ int wpas_ap_wps_nfc_report_handover(stru
184+
@@ -1525,7 +1525,7 @@ int wpas_ap_wps_nfc_report_handover(stru
185185
#endif /* CONFIG_WPS */
186186

187187

@@ -201,31 +201,31 @@ Subject: [PATCH] Remove some unnecessary control interface functionality
201201
if (wpa_s->ap_iface) {
202202
pos += ap_ctrl_iface_wpa_get_status(wpa_s, pos,
203203
end - pos,
204-
@@ -13007,6 +13007,7 @@ char * wpa_supplicant_ctrl_iface_process
204+
@@ -13005,6 +13005,7 @@ char * wpa_supplicant_ctrl_iface_process
205205
reply_len = -1;
206206
} else if (os_strncmp(buf, "NOTE ", 5) == 0) {
207207
wpa_printf(MSG_INFO, "NOTE: %s", buf + 5);
208208
+#ifdef CONFIG_CTRL_IFACE_MIB
209209
} else if (os_strcmp(buf, "MIB") == 0) {
210210
reply_len = wpa_sm_get_mib(wpa_s->wpa, reply, reply_size);
211211
if (reply_len >= 0) {
212-
@@ -13019,6 +13020,7 @@ char * wpa_supplicant_ctrl_iface_process
212+
@@ -13017,6 +13018,7 @@ char * wpa_supplicant_ctrl_iface_process
213213
reply_size - reply_len);
214214
#endif /* CONFIG_MACSEC */
215215
}
216216
+#endif
217217
} else if (os_strncmp(buf, "STATUS", 6) == 0) {
218218
reply_len = wpa_supplicant_ctrl_iface_status(
219219
wpa_s, buf + 6, reply, reply_size);
220-
@@ -13506,6 +13508,7 @@ char * wpa_supplicant_ctrl_iface_process
220+
@@ -13504,6 +13506,7 @@ char * wpa_supplicant_ctrl_iface_process
221221
reply_len = wpa_supplicant_ctrl_iface_bss(
222222
wpa_s, buf + 4, reply, reply_size);
223223
#ifdef CONFIG_AP
224224
+#ifdef CONFIG_CTRL_IFACE_MIB
225225
} else if (os_strcmp(buf, "STA-FIRST") == 0) {
226226
reply_len = ap_ctrl_iface_sta_first(wpa_s, reply, reply_size);
227227
} else if (os_strncmp(buf, "STA ", 4) == 0) {
228-
@@ -13514,12 +13517,15 @@ char * wpa_supplicant_ctrl_iface_process
228+
@@ -13512,12 +13515,15 @@ char * wpa_supplicant_ctrl_iface_process
229229
} else if (os_strncmp(buf, "STA-NEXT ", 9) == 0) {
230230
reply_len = ap_ctrl_iface_sta_next(wpa_s, buf + 9, reply,
231231
reply_size);

0 commit comments

Comments
 (0)