aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/ap_drv_ops.c
diff options
context:
space:
mode:
authorAnkita Bajaj <bankita@codeaurora.org>2018-10-16 14:32:19 (GMT)
committerJouni Malinen <j@w1.fi>2018-10-30 13:43:01 (GMT)
commit0f0aa2a640ff1a1037c7f3323009bb1d12e7a6cd (patch)
tree3a1e8dccbd9d8a91e8eb0e79a35af874ed3a7fd3 /src/ap/ap_drv_ops.c
parent1695b4dc371dbaa1ac6c40700f5f56e9eeeb1a6c (diff)
downloadhostap-0f0aa2a640ff1a1037c7f3323009bb1d12e7a6cd.zip
hostap-0f0aa2a640ff1a1037c7f3323009bb1d12e7a6cd.tar.gz
hostap-0f0aa2a640ff1a1037c7f3323009bb1d12e7a6cd.tar.bz2
OCE: Move OCE checks to IE formation from hostapd initialization
Earlier, the OCE flags were checked during hostapd initialization. This doesn't address few cases like for example when the interface is added from control interface. Move the OCE flag checks to the functions that are forming the MBO/OCE IEs to cover all the different paths for enabling a BSS. Also use macros as appropriate for readability. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'src/ap/ap_drv_ops.c')
-rw-r--r--src/ap/ap_drv_ops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ap/ap_drv_ops.c b/src/ap/ap_drv_ops.c
index 728d7f0..067cf86 100644
--- a/src/ap/ap_drv_ops.c
+++ b/src/ap/ap_drv_ops.c
@@ -176,7 +176,8 @@ int hostapd_build_ap_extra_ies(struct hostapd_data *hapd,
#endif /* CONFIG_HS20 */
#ifdef CONFIG_MBO
- if (hapd->conf->mbo_enabled || hapd->enable_oce) {
+ if (hapd->conf->mbo_enabled ||
+ OCE_STA_CFON_ENABLED(hapd) || OCE_AP_ENABLED(hapd)) {
pos = hostapd_eid_mbo(hapd, buf, sizeof(buf));
if (add_buf_data(&beacon, buf, pos - buf) < 0 ||
add_buf_data(&proberesp, buf, pos - buf) < 0 ||