From: Roee Zamir <roee.zamir@xxxxxxxxx> OCE shouldn't be enabled in these cases. Check these before enabling OCE. Signed-off-by: Roee Zamir <roee.zamir@xxxxxxxxx> --- wpa_supplicant/wpa_supplicant.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index 8bd2727..b95dada 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -5670,7 +5670,14 @@ static int wpa_supplicant_init_iface(struct wpa_supplicant *wpa_s, hs20_init(wpa_s); #endif /* CONFIG_HS20 */ #ifdef CONFIG_MBO - if (wpa_s->conf->oce) { + if (wpa_s->conf->oce +#ifdef CONFIG_P2P + && wpa_s->p2p_group_interface == NOT_P2P_GROUP_INTERFACE +#endif /* CONFIG_P2P */ +#ifdef CONFIG_AP + && !wpa_s->ap_iface +#endif + ) { if ((wpa_s->conf->oce & OCE_STA) && (wpa_s->drv_flags & WPA_DRIVER_FLAGS_OCE_STA)) wpa_s->enable_oce = OCE_STA; -- 2.7.4 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap