hostapd configuration for Beacon protection
Add a new hostapd 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
cb86e8bac8
commit
92d407dbd6
5 changed files with 11 additions and 0 deletions
|
@ -3400,6 +3400,8 @@ static int hostapd_config_fill(struct hostapd_config *conf,
|
||||||
line, pos);
|
line, pos);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
} else if (os_strcmp(buf, "beacon_prot") == 0) {
|
||||||
|
bss->beacon_prot = atoi(pos);
|
||||||
} else if (os_strcmp(buf, "assoc_sa_query_max_timeout") == 0) {
|
} else if (os_strcmp(buf, "assoc_sa_query_max_timeout") == 0) {
|
||||||
bss->assoc_sa_query_max_timeout = atoi(pos);
|
bss->assoc_sa_query_max_timeout = atoi(pos);
|
||||||
if (bss->assoc_sa_query_max_timeout == 0) {
|
if (bss->assoc_sa_query_max_timeout == 0) {
|
||||||
|
|
|
@ -1678,6 +1678,12 @@ own_ip_addr=127.0.0.1
|
||||||
# available in deployed devices.
|
# available in deployed devices.
|
||||||
#group_mgmt_cipher=AES-128-CMAC
|
#group_mgmt_cipher=AES-128-CMAC
|
||||||
|
|
||||||
|
# Beacon Protection (management frame protection for Beacon frames)
|
||||||
|
# This depends on management frame protection being enabled (ieee80211w != 0).
|
||||||
|
# 0 = disabled (default)
|
||||||
|
# 1 = enabled
|
||||||
|
#beacon_prot=0
|
||||||
|
|
||||||
# Association SA Query maximum timeout (in TU = 1.024 ms; for MFP)
|
# Association SA Query maximum timeout (in TU = 1.024 ms; for MFP)
|
||||||
# (maximum time to wait for a SA Query response)
|
# (maximum time to wait for a SA Query response)
|
||||||
# dot11AssociationSAQueryMaximumTimeout, 1...4294967295
|
# dot11AssociationSAQueryMaximumTimeout, 1...4294967295
|
||||||
|
|
|
@ -349,6 +349,7 @@ struct hostapd_bss_config {
|
||||||
int wpa_key_mgmt;
|
int wpa_key_mgmt;
|
||||||
enum mfp_options ieee80211w;
|
enum mfp_options ieee80211w;
|
||||||
int group_mgmt_cipher;
|
int group_mgmt_cipher;
|
||||||
|
int beacon_prot;
|
||||||
/* dot11AssociationSAQueryMaximumTimeout (in TUs) */
|
/* dot11AssociationSAQueryMaximumTimeout (in TUs) */
|
||||||
unsigned int assoc_sa_query_max_timeout;
|
unsigned int assoc_sa_query_max_timeout;
|
||||||
/* dot11AssociationSAQueryRetryTimeout (in TUs) */
|
/* dot11AssociationSAQueryRetryTimeout (in TUs) */
|
||||||
|
|
|
@ -188,6 +188,7 @@ struct wpa_auth_config {
|
||||||
int okc;
|
int okc;
|
||||||
int tx_status;
|
int tx_status;
|
||||||
enum mfp_options ieee80211w;
|
enum mfp_options ieee80211w;
|
||||||
|
int beacon_prot;
|
||||||
int group_mgmt_cipher;
|
int group_mgmt_cipher;
|
||||||
int sae_require_mfp;
|
int sae_require_mfp;
|
||||||
#ifdef CONFIG_OCV
|
#ifdef CONFIG_OCV
|
||||||
|
|
|
@ -67,6 +67,7 @@ static void hostapd_wpa_auth_conf(struct hostapd_bss_config *conf,
|
||||||
#endif /* CONFIG_OCV */
|
#endif /* CONFIG_OCV */
|
||||||
wconf->okc = conf->okc;
|
wconf->okc = conf->okc;
|
||||||
wconf->ieee80211w = conf->ieee80211w;
|
wconf->ieee80211w = conf->ieee80211w;
|
||||||
|
wconf->beacon_prot = conf->beacon_prot;
|
||||||
wconf->group_mgmt_cipher = conf->group_mgmt_cipher;
|
wconf->group_mgmt_cipher = conf->group_mgmt_cipher;
|
||||||
wconf->sae_require_mfp = conf->sae_require_mfp;
|
wconf->sae_require_mfp = conf->sae_require_mfp;
|
||||||
#ifdef CONFIG_IEEE80211R_AP
|
#ifdef CONFIG_IEEE80211R_AP
|
||||||
|
|
Loading…
Reference in a new issue