Re: [PATCH 3/5] OCE: enable only if the iface neither P2P group nor AP iface

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Aug 26, 2018 at 08:45:02PM +0300, Andrei Otcheretianski wrote:
> OCE shouldn't be enabled in these cases.

Why?

> diff --git 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;

Please note that this is followed by code checking for OCE_STA_CFON and
that STA-CFON case would include "mobile AP" and P2P GO support.. Sure,
that is not yet supported, but this change in the implementation would
make the source look pretty odd..
 
-- 
Jouni Malinen                                            PGP id EFC895FA

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux