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:
parent
16889aff40
commit
ecbf59e693
7 changed files with 15 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue