wpa_supplicant configuration for Beacon protection

Add a new wpa_supplicant network profile configuration parameter
beacon_prot=<0/1> to allow Beacon protection to be enabled.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2020-02-18 00:16:55 +02:00 committed by Jouni Malinen
parent 16889aff40
commit ecbf59e693
7 changed files with 15 additions and 0 deletions

View file

@ -2959,6 +2959,7 @@ void wpa_sm_set_config(struct wpa_sm *sm, struct rsn_supp_config *config)
} else {
sm->fils_cache_id_set = 0;
}
sm->beacon_prot = config->beacon_prot;
#endif /* CONFIG_FILS */
} else {
sm->network_ctx = NULL;
@ -2971,6 +2972,7 @@ void wpa_sm_set_config(struct wpa_sm *sm, struct rsn_supp_config *config)
sm->p2p = 0;
sm->wpa_rsc_relaxation = 0;
sm->owe_ptk_workaround = 0;
sm->beacon_prot = 0;
}
}

View file

@ -115,6 +115,7 @@ struct rsn_supp_config {
int wpa_rsc_relaxation;
int owe_ptk_workaround;
const u8 *fils_cache_id;
int beacon_prot;
};
#ifndef CONFIG_NO_WPA

View file

@ -64,6 +64,7 @@ struct wpa_sm {
int p2p;
int wpa_rsc_relaxation;
int owe_ptk_workaround;
int beacon_prot;
u8 own_addr[ETH_ALEN];
const char *ifname;