OCV: Add hostapd config parameter
Add hostapd.conf parameter ocv to disable or enable Operating Channel Verification (OCV) support. Signed-off-by: Mathy Vanhoef <Mathy.Vanhoef@cs.kuleuven.be>
This commit is contained in:
parent
138205d600
commit
9c55fdb023
4 changed files with 25 additions and 0 deletions
|
@ -1009,6 +1009,15 @@ static int hostapd_config_check_bss(struct hostapd_bss_config *bss,
|
|||
}
|
||||
#endif /* CONFIG_MBO */
|
||||
|
||||
#ifdef CONFIG_OCV
|
||||
if (full_config && bss->ieee80211w == NO_MGMT_FRAME_PROTECTION &&
|
||||
bss->ocv) {
|
||||
wpa_printf(MSG_ERROR,
|
||||
"OCV: PMF needs to be enabled whenever using OCV");
|
||||
return -1;
|
||||
}
|
||||
#endif /* CONFIG_OCV */
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue