|
|
@@ -34,7 +34,7 @@ as adding/removing interfaces.
|
|
|
ifdef CONFIG_CODE_COVERAGE
|
|
|
--- a/hostapd/ctrl_iface.c
|
|
|
+++ b/hostapd/ctrl_iface.c
|
|
|
-@@ -5998,6 +5998,7 @@ try_again:
|
|
|
+@@ -6031,6 +6031,7 @@ try_again:
|
|
|
return -1;
|
|
|
}
|
|
|
|
|
|
@@ -42,7 +42,7 @@ as adding/removing interfaces.
|
|
|
wpa_msg_register_cb(hostapd_ctrl_iface_msg_cb);
|
|
|
|
|
|
return 0;
|
|
|
-@@ -6099,6 +6100,7 @@ fail:
|
|
|
+@@ -6132,6 +6133,7 @@ fail:
|
|
|
os_free(fname);
|
|
|
|
|
|
interface->global_ctrl_sock = s;
|
|
|
@@ -52,7 +52,7 @@ as adding/removing interfaces.
|
|
|
|
|
|
--- a/hostapd/main.c
|
|
|
+++ b/hostapd/main.c
|
|
|
-@@ -1033,6 +1033,7 @@ int main(int argc, char *argv[])
|
|
|
+@@ -1074,6 +1074,7 @@ int main(int argc, char *argv[])
|
|
|
}
|
|
|
|
|
|
hostapd_global_ctrl_iface_init(&interfaces);
|
|
|
@@ -60,7 +60,7 @@ as adding/removing interfaces.
|
|
|
|
|
|
if (hostapd_global_run(&interfaces, daemonize, pid_file)) {
|
|
|
wpa_printf(MSG_ERROR, "Failed to start eloop");
|
|
|
-@@ -1042,6 +1043,7 @@ int main(int argc, char *argv[])
|
|
|
+@@ -1083,6 +1084,7 @@ int main(int argc, char *argv[])
|
|
|
ret = 0;
|
|
|
|
|
|
out:
|
|
|
@@ -70,7 +70,7 @@ as adding/removing interfaces.
|
|
|
for (i = 0; i < interfaces.count; i++) {
|
|
|
--- a/src/ap/ap_drv_ops.h
|
|
|
+++ b/src/ap/ap_drv_ops.h
|
|
|
-@@ -409,6 +409,23 @@ static inline int hostapd_drv_stop_ap(st
|
|
|
+@@ -410,6 +410,23 @@ static inline int hostapd_drv_stop_ap(st
|
|
|
return hapd->driver->stop_ap(hapd->drv_priv, link_id);
|
|
|
}
|
|
|
|
|
|
@@ -96,7 +96,7 @@ as adding/removing interfaces.
|
|
|
{
|
|
|
--- a/src/ap/hostapd.c
|
|
|
+++ b/src/ap/hostapd.c
|
|
|
-@@ -255,6 +255,8 @@ int hostapd_reload_config(struct hostapd
|
|
|
+@@ -259,6 +259,8 @@ int hostapd_reload_config(struct hostapd
|
|
|
struct hostapd_config *newconf, *oldconf;
|
|
|
size_t j;
|
|
|
|
|
|
@@ -105,7 +105,7 @@ as adding/removing interfaces.
|
|
|
if (iface->config_fname == NULL) {
|
|
|
/* Only in-memory config in use - assume it has been updated */
|
|
|
hostapd_clear_old(iface);
|
|
|
-@@ -475,6 +477,7 @@ void hostapd_free_hapd_data(struct hosta
|
|
|
+@@ -479,6 +481,7 @@ void hostapd_free_hapd_data(struct hosta
|
|
|
hapd->beacon_set_done = 0;
|
|
|
|
|
|
wpa_printf(MSG_DEBUG, "%s(%s)", __func__, hapd->conf->iface);
|
|
|
@@ -113,7 +113,7 @@ as adding/removing interfaces.
|
|
|
hostapd_ubus_free_bss(hapd);
|
|
|
accounting_deinit(hapd);
|
|
|
hostapd_deinit_wpa(hapd);
|
|
|
-@@ -729,6 +732,7 @@ void hostapd_cleanup_iface_partial(struc
|
|
|
+@@ -737,6 +740,7 @@ void hostapd_cleanup_iface_partial(struc
|
|
|
static void hostapd_cleanup_iface(struct hostapd_iface *iface)
|
|
|
{
|
|
|
wpa_printf(MSG_DEBUG, "%s(%p)", __func__, iface);
|
|
|
@@ -121,7 +121,7 @@ as adding/removing interfaces.
|
|
|
eloop_cancel_timeout(hostapd_interface_setup_failure_handler, iface,
|
|
|
NULL);
|
|
|
|
|
|
-@@ -1318,6 +1322,7 @@ static int hostapd_start_beacon(struct h
|
|
|
+@@ -1326,6 +1330,7 @@ static int hostapd_start_beacon(struct h
|
|
|
hapd->driver->set_operstate(hapd->drv_priv, 1);
|
|
|
|
|
|
hostapd_ubus_add_bss(hapd);
|
|
|
@@ -129,7 +129,7 @@ as adding/removing interfaces.
|
|
|
|
|
|
return 0;
|
|
|
}
|
|
|
-@@ -1393,8 +1398,7 @@ static int hostapd_bss_radius_init(struc
|
|
|
+@@ -1401,8 +1406,7 @@ static int hostapd_bss_radius_init(struc
|
|
|
* initialized. Most of the modules that are initialized here will be
|
|
|
* deinitialized in hostapd_cleanup().
|
|
|
*/
|
|
|
@@ -139,7 +139,7 @@ as adding/removing interfaces.
|
|
|
{
|
|
|
struct hostapd_bss_config *conf = hapd->conf;
|
|
|
u8 ssid[SSID_MAX_LEN + 1];
|
|
|
-@@ -1510,6 +1514,8 @@ setup_mld:
|
|
|
+@@ -1518,6 +1522,8 @@ setup_mld:
|
|
|
}
|
|
|
#endif /* CONFIG_IEEE80211BE */
|
|
|
|
|
|
@@ -148,7 +148,7 @@ as adding/removing interfaces.
|
|
|
if (conf->wmm_enabled < 0)
|
|
|
conf->wmm_enabled = hapd->iconf->ieee80211n |
|
|
|
hapd->iconf->ieee80211ax;
|
|
|
-@@ -2487,7 +2493,7 @@ static int hostapd_owe_iface_iter2(struc
|
|
|
+@@ -2508,7 +2514,7 @@ static int hostapd_owe_iface_iter2(struc
|
|
|
#endif /* CONFIG_OWE */
|
|
|
|
|
|
|
|
|
@@ -157,7 +157,7 @@ as adding/removing interfaces.
|
|
|
{
|
|
|
#ifdef CONFIG_OWE
|
|
|
/* Check whether the enabled BSS can complete OWE transition mode
|
|
|
-@@ -2954,7 +2960,7 @@ hostapd_alloc_bss_data(struct hostapd_if
|
|
|
+@@ -2975,7 +2981,7 @@ hostapd_alloc_bss_data(struct hostapd_if
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -166,7 +166,7 @@ as adding/removing interfaces.
|
|
|
{
|
|
|
if (!hapd)
|
|
|
return;
|
|
|
-@@ -4015,7 +4021,8 @@ int hostapd_remove_iface(struct hapd_int
|
|
|
+@@ -4035,7 +4041,8 @@ int hostapd_remove_iface(struct hapd_int
|
|
|
hapd_iface = interfaces->iface[i];
|
|
|
if (hapd_iface == NULL)
|
|
|
return -1;
|
|
|
@@ -219,10 +219,10 @@ as adding/removing interfaces.
|
|
|
const char *config_fname, int debug);
|
|
|
+int hostapd_setup_bss(struct hostapd_data *hapd, int first, bool start_beacon);
|
|
|
+void hostapd_bss_deinit(struct hostapd_data *hapd);
|
|
|
+ void hostapd_bss_setup_multi_link(struct hostapd_data *hapd,
|
|
|
+ struct hapd_interfaces *interfaces);
|
|
|
void hostapd_new_assoc_sta(struct hostapd_data *hapd, struct sta_info *sta,
|
|
|
- int reassoc);
|
|
|
- void hostapd_interface_deinit_free(struct hostapd_iface *iface);
|
|
|
-@@ -815,6 +824,7 @@ hostapd_switch_channel_fallback(struct h
|
|
|
+@@ -817,6 +826,7 @@ hostapd_switch_channel_fallback(struct h
|
|
|
void hostapd_cleanup_cs_params(struct hostapd_data *hapd);
|
|
|
void hostapd_periodic_iface(struct hostapd_iface *iface);
|
|
|
int hostapd_owe_trans_get_info(struct hostapd_data *hapd);
|
|
|
@@ -232,7 +232,7 @@ as adding/removing interfaces.
|
|
|
void hostapd_switch_color(struct hostapd_data *hapd, u64 bitmap);
|
|
|
--- a/src/drivers/driver.h
|
|
|
+++ b/src/drivers/driver.h
|
|
|
-@@ -3928,6 +3928,25 @@ struct wpa_driver_ops {
|
|
|
+@@ -4003,6 +4003,25 @@ struct wpa_driver_ops {
|
|
|
const char *ifname);
|
|
|
|
|
|
/**
|
|
|
@@ -258,7 +258,7 @@ as adding/removing interfaces.
|
|
|
* set_sta_vlan - Bind a station into a specific interface (AP only)
|
|
|
* @priv: Private driver interface data
|
|
|
* @ifname: Interface (main or virtual BSS or VLAN)
|
|
|
-@@ -6720,6 +6739,7 @@ union wpa_event_data {
|
|
|
+@@ -6818,6 +6837,7 @@ union wpa_event_data {
|
|
|
|
|
|
/**
|
|
|
* struct ch_switch
|
|
|
@@ -266,7 +266,7 @@ as adding/removing interfaces.
|
|
|
* @freq: Frequency of new channel in MHz
|
|
|
* @ht_enabled: Whether this is an HT channel
|
|
|
* @ch_offset: Secondary channel offset
|
|
|
-@@ -6730,6 +6750,7 @@ union wpa_event_data {
|
|
|
+@@ -6828,6 +6848,7 @@ union wpa_event_data {
|
|
|
* @punct_bitmap: Puncturing bitmap
|
|
|
*/
|
|
|
struct ch_switch {
|
|
|
@@ -293,7 +293,7 @@ as adding/removing interfaces.
|
|
|
|
|
|
static struct nl_sock * nl_create_handle(struct nl_cb *cb, const char *dbg)
|
|
|
{
|
|
|
-@@ -431,6 +441,11 @@ static int no_seq_check(struct nl_msg *m
|
|
|
+@@ -437,6 +447,11 @@ static int no_seq_check(struct nl_msg *m
|
|
|
return NL_OK;
|
|
|
}
|
|
|
|
|
|
@@ -305,7 +305,7 @@ as adding/removing interfaces.
|
|
|
|
|
|
static void nl80211_nlmsg_clear(struct nl_msg *msg)
|
|
|
{
|
|
|
-@@ -504,6 +519,8 @@ int send_and_recv(struct nl80211_global
|
|
|
+@@ -511,6 +526,8 @@ int send_and_recv_glb(struct nl80211_glo
|
|
|
if (!msg)
|
|
|
return -ENOMEM;
|
|
|
|
|
|
@@ -314,15 +314,15 @@ as adding/removing interfaces.
|
|
|
err.err = -ENOMEM;
|
|
|
|
|
|
s_nl_cb = nl_socket_get_cb(nl_handle);
|
|
|
-@@ -538,6 +555,7 @@ int send_and_recv(struct nl80211_global
|
|
|
- err.orig_msg = msg;
|
|
|
+@@ -546,6 +563,7 @@ int send_and_recv_glb(struct nl80211_glo
|
|
|
err.err_info = err_info;
|
|
|
+ err.drv = drv;
|
|
|
|
|
|
+ nl_cb_set(cb, NL_CB_MSG_IN, NL_CB_CUSTOM, debug_handler, NULL);
|
|
|
nl_cb_err(cb, NL_CB_CUSTOM, error_handler, &err);
|
|
|
nl_cb_set(cb, NL_CB_FINISH, NL_CB_CUSTOM, finish_handler, &err.err);
|
|
|
if (ack_handler_custom) {
|
|
|
-@@ -941,6 +959,7 @@ nl80211_get_wiphy_data_ap(struct i802_bs
|
|
|
+@@ -949,6 +967,7 @@ nl80211_get_wiphy_data_ap(struct i802_bs
|
|
|
os_free(w);
|
|
|
return NULL;
|
|
|
}
|
|
|
@@ -330,7 +330,7 @@ as adding/removing interfaces.
|
|
|
nl_cb_set(w->nl_cb, NL_CB_SEQ_CHECK, NL_CB_CUSTOM,
|
|
|
no_seq_check, NULL);
|
|
|
nl_cb_set(w->nl_cb, NL_CB_VALID, NL_CB_CUSTOM,
|
|
|
-@@ -1355,7 +1374,7 @@ static void wpa_driver_nl80211_event_rtm
|
|
|
+@@ -1364,7 +1383,7 @@ static void wpa_driver_nl80211_event_rtm
|
|
|
}
|
|
|
wpa_printf(MSG_DEBUG, "nl80211: Interface down (%s/%s)",
|
|
|
namebuf, ifname);
|
|
|
@@ -339,7 +339,7 @@ as adding/removing interfaces.
|
|
|
wpa_printf(MSG_DEBUG,
|
|
|
"nl80211: Not the main interface (%s) - do not indicate interface down",
|
|
|
drv->first_bss->ifname);
|
|
|
-@@ -1391,7 +1410,7 @@ static void wpa_driver_nl80211_event_rtm
|
|
|
+@@ -1400,7 +1419,7 @@ static void wpa_driver_nl80211_event_rtm
|
|
|
}
|
|
|
wpa_printf(MSG_DEBUG, "nl80211: Interface up (%s/%s)",
|
|
|
namebuf, ifname);
|
|
|
@@ -348,7 +348,7 @@ as adding/removing interfaces.
|
|
|
wpa_printf(MSG_DEBUG,
|
|
|
"nl80211: Not the main interface (%s) - do not indicate interface up",
|
|
|
drv->first_bss->ifname);
|
|
|
-@@ -2037,6 +2056,7 @@ static int wpa_driver_nl80211_init_nl_gl
|
|
|
+@@ -2046,6 +2065,7 @@ static int wpa_driver_nl80211_init_nl_gl
|
|
|
genl_family_put(family);
|
|
|
nl_cache_free(cache);
|
|
|
|
|
|
@@ -356,7 +356,7 @@ as adding/removing interfaces.
|
|
|
nl_cb_set(global->nl_cb, NL_CB_SEQ_CHECK, NL_CB_CUSTOM,
|
|
|
no_seq_check, NULL);
|
|
|
nl_cb_set(global->nl_cb, NL_CB_VALID, NL_CB_CUSTOM,
|
|
|
-@@ -2207,6 +2227,7 @@ static int nl80211_init_bss(struct i802_
|
|
|
+@@ -2216,6 +2236,7 @@ static int nl80211_init_bss(struct i802_
|
|
|
if (!bss->nl_cb)
|
|
|
return -1;
|
|
|
|
|
|
@@ -364,7 +364,7 @@ as adding/removing interfaces.
|
|
|
nl_cb_set(bss->nl_cb, NL_CB_SEQ_CHECK, NL_CB_CUSTOM,
|
|
|
no_seq_check, NULL);
|
|
|
nl_cb_set(bss->nl_cb, NL_CB_VALID, NL_CB_CUSTOM,
|
|
|
-@@ -8704,6 +8725,7 @@ static void *i802_init(struct hostapd_da
|
|
|
+@@ -8844,6 +8865,7 @@ static void *i802_init(struct hostapd_da
|
|
|
char master_ifname[IFNAMSIZ];
|
|
|
int ifindex, br_ifindex = 0;
|
|
|
int br_added = 0;
|
|
|
@@ -372,7 +372,7 @@ as adding/removing interfaces.
|
|
|
|
|
|
bss = wpa_driver_nl80211_drv_init(hapd, params->ifname,
|
|
|
params->global_priv, 1,
|
|
|
-@@ -8763,21 +8785,17 @@ static void *i802_init(struct hostapd_da
|
|
|
+@@ -8904,21 +8926,17 @@ static void *i802_init(struct hostapd_da
|
|
|
(params->num_bridge == 0 || !params->bridge[0]))
|
|
|
add_ifidx(drv, br_ifindex, drv->ifindex);
|
|
|
|
|
|
@@ -404,7 +404,7 @@ as adding/removing interfaces.
|
|
|
}
|
|
|
|
|
|
if (drv->capa.flags2 & WPA_DRIVER_FLAGS2_CONTROL_PORT_RX) {
|
|
|
-@@ -9146,6 +9164,50 @@ static int wpa_driver_nl80211_if_remove(
|
|
|
+@@ -9287,6 +9305,50 @@ static int wpa_driver_nl80211_if_remove(
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
@@ -455,7 +455,7 @@ as adding/removing interfaces.
|
|
|
|
|
|
static int cookie_handler(struct nl_msg *msg, void *arg)
|
|
|
{
|
|
|
-@@ -10962,6 +11024,37 @@ static bool nl80211_is_drv_shared(void *
|
|
|
+@@ -11150,6 +11212,37 @@ static bool nl80211_is_drv_shared(void *
|
|
|
#endif /* CONFIG_IEEE80211BE */
|
|
|
|
|
|
|
|
|
@@ -493,7 +493,7 @@ as adding/removing interfaces.
|
|
|
static int driver_nl80211_send_mlme(void *priv, const u8 *data,
|
|
|
size_t data_len, int noack,
|
|
|
unsigned int freq,
|
|
|
-@@ -14510,6 +14603,8 @@ const struct wpa_driver_ops wpa_driver_n
|
|
|
+@@ -14874,6 +14967,8 @@ const struct wpa_driver_ops wpa_driver_n
|
|
|
.set_acl = wpa_driver_nl80211_set_acl,
|
|
|
.if_add = wpa_driver_nl80211_if_add,
|
|
|
.if_remove = driver_nl80211_if_remove,
|
|
|
@@ -504,7 +504,7 @@ as adding/removing interfaces.
|
|
|
.sta_add = wpa_driver_nl80211_sta_add,
|
|
|
--- a/src/drivers/driver_nl80211_event.c
|
|
|
+++ b/src/drivers/driver_nl80211_event.c
|
|
|
-@@ -1197,6 +1197,7 @@ static void mlme_event_ch_switch(struct
|
|
|
+@@ -1199,6 +1199,7 @@ static void mlme_event_ch_switch(struct
|
|
|
struct nlattr *bw, struct nlattr *cf1,
|
|
|
struct nlattr *cf2,
|
|
|
struct nlattr *punct_bitmap,
|
|
|
@@ -512,7 +512,7 @@ as adding/removing interfaces.
|
|
|
int finished)
|
|
|
{
|
|
|
struct i802_bss *bss;
|
|
|
-@@ -1260,6 +1261,8 @@ static void mlme_event_ch_switch(struct
|
|
|
+@@ -1262,6 +1263,8 @@ static void mlme_event_ch_switch(struct
|
|
|
data.ch_switch.cf1 = nla_get_u32(cf1);
|
|
|
if (cf2)
|
|
|
data.ch_switch.cf2 = nla_get_u32(cf2);
|
|
|
@@ -521,7 +521,7 @@ as adding/removing interfaces.
|
|
|
|
|
|
if (link) {
|
|
|
data.ch_switch.link_id = nla_get_u8(link);
|
|
|
-@@ -4054,6 +4057,7 @@ static void do_process_drv_event(struct
|
|
|
+@@ -4114,6 +4117,7 @@ static void do_process_drv_event(struct
|
|
|
tb[NL80211_ATTR_CENTER_FREQ1],
|
|
|
tb[NL80211_ATTR_CENTER_FREQ2],
|
|
|
tb[NL80211_ATTR_PUNCT_BITMAP],
|
|
|
@@ -529,7 +529,7 @@ as adding/removing interfaces.
|
|
|
0);
|
|
|
break;
|
|
|
case NL80211_CMD_CH_SWITCH_NOTIFY:
|
|
|
-@@ -4066,6 +4070,7 @@ static void do_process_drv_event(struct
|
|
|
+@@ -4126,6 +4130,7 @@ static void do_process_drv_event(struct
|
|
|
tb[NL80211_ATTR_CENTER_FREQ1],
|
|
|
tb[NL80211_ATTR_CENTER_FREQ2],
|
|
|
tb[NL80211_ATTR_PUNCT_BITMAP],
|
|
|
@@ -610,7 +610,7 @@ as adding/removing interfaces.
|
|
|
endif
|
|
|
|
|
|
ifdef CONFIG_CODE_COVERAGE
|
|
|
-@@ -1053,6 +1065,9 @@ OBJS += ../src/ap/ctrl_iface_ap.o
|
|
|
+@@ -1054,6 +1066,9 @@ OBJS += ../src/ap/ctrl_iface_ap.o
|
|
|
ifdef CONFIG_UBUS
|
|
|
OBJS += ../src/ap/ubus.o
|
|
|
endif
|
|
|
@@ -622,7 +622,7 @@ as adding/removing interfaces.
|
|
|
CFLAGS += -DEAP_SERVER -DEAP_SERVER_IDENTITY
|
|
|
--- a/wpa_supplicant/events.c
|
|
|
+++ b/wpa_supplicant/events.c
|
|
|
-@@ -6167,6 +6167,7 @@ void supplicant_event(void *ctx, enum wp
|
|
|
+@@ -6206,6 +6206,7 @@ void supplicant_event(void *ctx, enum wp
|
|
|
event_to_string(event), event);
|
|
|
#endif /* CONFIG_NO_STDOUT_DEBUG */
|
|
|
|
|
|
@@ -632,7 +632,7 @@ as adding/removing interfaces.
|
|
|
#ifdef CONFIG_FST
|
|
|
--- a/wpa_supplicant/wpa_supplicant.c
|
|
|
+++ b/wpa_supplicant/wpa_supplicant.c
|
|
|
-@@ -1151,6 +1151,7 @@ void wpa_supplicant_set_state(struct wpa
|
|
|
+@@ -1256,6 +1256,7 @@ void wpa_supplicant_set_state(struct wpa
|
|
|
sme_sched_obss_scan(wpa_s, 0);
|
|
|
}
|
|
|
wpa_s->wpa_state = state;
|
|
|
@@ -640,7 +640,7 @@ as adding/removing interfaces.
|
|
|
|
|
|
#ifdef CONFIG_BGSCAN
|
|
|
if (state == WPA_COMPLETED && wpa_s->current_ssid != wpa_s->bgscan_ssid)
|
|
|
-@@ -7921,6 +7922,7 @@ struct wpa_supplicant * wpa_supplicant_a
|
|
|
+@@ -8196,6 +8197,7 @@ struct wpa_supplicant * wpa_supplicant_a
|
|
|
#endif /* CONFIG_P2P */
|
|
|
|
|
|
wpas_ubus_add_bss(wpa_s);
|
|
|
@@ -648,7 +648,7 @@ as adding/removing interfaces.
|
|
|
|
|
|
return wpa_s;
|
|
|
}
|
|
|
-@@ -7948,6 +7950,7 @@ int wpa_supplicant_remove_iface(struct w
|
|
|
+@@ -8223,6 +8225,7 @@ int wpa_supplicant_remove_iface(struct w
|
|
|
struct wpa_supplicant *parent = wpa_s->parent;
|
|
|
#endif /* CONFIG_MESH */
|
|
|
|
|
|
@@ -656,7 +656,7 @@ as adding/removing interfaces.
|
|
|
wpas_ubus_free_bss(wpa_s);
|
|
|
|
|
|
/* Remove interface from the global list of interfaces */
|
|
|
-@@ -8258,6 +8261,7 @@ struct wpa_global * wpa_supplicant_init(
|
|
|
+@@ -8533,6 +8536,7 @@ struct wpa_global * wpa_supplicant_init(
|
|
|
|
|
|
eloop_register_timeout(WPA_SUPPLICANT_CLEANUP_INTERVAL, 0,
|
|
|
wpas_periodic, global, NULL);
|
|
|
@@ -664,7 +664,7 @@ as adding/removing interfaces.
|
|
|
|
|
|
return global;
|
|
|
}
|
|
|
-@@ -8296,12 +8300,8 @@ int wpa_supplicant_run(struct wpa_global
|
|
|
+@@ -8571,12 +8575,8 @@ int wpa_supplicant_run(struct wpa_global
|
|
|
eloop_register_signal_terminate(wpa_supplicant_terminate, global);
|
|
|
eloop_register_signal_reconfig(wpa_supplicant_reconfig, global);
|
|
|
|
|
|
@@ -677,7 +677,7 @@ as adding/removing interfaces.
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-@@ -8334,6 +8334,8 @@ void wpa_supplicant_deinit(struct wpa_gl
|
|
|
+@@ -8609,6 +8609,8 @@ void wpa_supplicant_deinit(struct wpa_gl
|
|
|
|
|
|
wpas_notify_supplicant_deinitialized(global);
|
|
|
|
|
|
@@ -696,7 +696,7 @@ as adding/removing interfaces.
|
|
|
|
|
|
extern const char *const wpa_supplicant_version;
|
|
|
extern const char *const wpa_supplicant_license;
|
|
|
-@@ -697,6 +698,7 @@ struct wpa_supplicant {
|
|
|
+@@ -709,6 +710,7 @@ struct wpa_supplicant {
|
|
|
unsigned char perm_addr[ETH_ALEN];
|
|
|
char ifname[100];
|
|
|
struct wpas_ubus_bss ubus;
|
|
|
@@ -730,7 +730,7 @@ as adding/removing interfaces.
|
|
|
}
|
|
|
|
|
|
+use_sta_psk:
|
|
|
- if (!password && sta) {
|
|
|
+ if (!password && sta && !rx_id) {
|
|
|
for (psk = sta->psk; psk; psk = psk->next) {
|
|
|
- if (psk->is_passphrase) {
|
|
|
- password = psk->passphrase;
|
|
|
@@ -758,7 +758,7 @@ as adding/removing interfaces.
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-@@ -3229,6 +3252,12 @@ static void handle_auth(struct hostapd_d
|
|
|
+@@ -3273,6 +3296,12 @@ static void handle_auth(struct hostapd_d
|
|
|
goto fail;
|
|
|
}
|
|
|
|
|
|
@@ -773,7 +773,7 @@ as adding/removing interfaces.
|
|
|
|
|
|
--- a/src/ap/sta_info.c
|
|
|
+++ b/src/ap/sta_info.c
|
|
|
-@@ -474,6 +474,11 @@ void ap_free_sta(struct hostapd_data *ha
|
|
|
+@@ -475,6 +475,11 @@ void ap_free_sta(struct hostapd_data *ha
|
|
|
forced_memzero(sta->last_tk, WPA_TK_MAX_LEN);
|
|
|
#endif /* CONFIG_TESTING_OPTIONS */
|
|
|
|
|
|
@@ -785,7 +785,7 @@ as adding/removing interfaces.
|
|
|
os_free(sta);
|
|
|
}
|
|
|
|
|
|
-@@ -1507,6 +1512,8 @@ void ap_sta_set_authorized_event(struct
|
|
|
+@@ -1574,6 +1579,8 @@ void ap_sta_set_authorized_event(struct
|
|
|
#endif /* CONFIG_P2P */
|
|
|
const u8 *ip_ptr = NULL;
|
|
|
|
|
|
@@ -796,7 +796,7 @@ as adding/removing interfaces.
|
|
|
if (sta->p2p_ie != NULL &&
|
|
|
--- a/src/ap/sta_info.h
|
|
|
+++ b/src/ap/sta_info.h
|
|
|
-@@ -180,6 +180,9 @@ struct sta_info {
|
|
|
+@@ -181,6 +181,9 @@ struct sta_info {
|
|
|
int vlan_id_bound; /* updated by ap_sta_bind_vlan() */
|
|
|
/* PSKs from RADIUS authentication server */
|
|
|
struct hostapd_sta_wpa_psk_short *psk;
|
|
|
@@ -808,7 +808,7 @@ as adding/removing interfaces.
|
|
|
char *radius_cui; /* Chargeable-User-Identity from RADIUS */
|
|
|
--- a/src/ap/wpa_auth_glue.c
|
|
|
+++ b/src/ap/wpa_auth_glue.c
|
|
|
-@@ -400,6 +400,7 @@ static const u8 * hostapd_wpa_auth_get_p
|
|
|
+@@ -403,6 +403,7 @@ static const u8 * hostapd_wpa_auth_get_p
|
|
|
struct sta_info *sta = ap_get_sta(hapd, addr);
|
|
|
const u8 *psk;
|
|
|
|
|
|
@@ -816,7 +816,7 @@ as adding/removing interfaces.
|
|
|
if (vlan_id)
|
|
|
*vlan_id = 0;
|
|
|
if (psk_len)
|
|
|
-@@ -446,13 +447,16 @@ static const u8 * hostapd_wpa_auth_get_p
|
|
|
+@@ -449,13 +450,16 @@ static const u8 * hostapd_wpa_auth_get_p
|
|
|
* returned psk which should not be returned again.
|
|
|
* logic list (all hostapd_get_psk; all sta->psk)
|
|
|
*/
|
|
|
@@ -834,7 +834,7 @@ as adding/removing interfaces.
|
|
|
if (pos->is_passphrase) {
|
|
|
if (pbkdf2_sha1(pos->passphrase,
|
|
|
hapd->conf->ssid.ssid,
|
|
|
-@@ -469,6 +473,8 @@ static const u8 * hostapd_wpa_auth_get_p
|
|
|
+@@ -472,6 +476,8 @@ static const u8 * hostapd_wpa_auth_get_p
|
|
|
break;
|
|
|
}
|
|
|
}
|