Re: [PATCH 13/13] mbssid: add nl80211 support

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

 



On Wed, Mar 02, 2022 at 02:26:34PM -0800, Aloka Dixit wrote:
> diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
> +static int nl80211_mbssid(struct nl_msg *msg,
> +			 struct wpa_driver_ap_params *params)
> +{
> +	struct nlattr *config, *elems;
> +	int ifidx;
> +
> +	config = nla_nest_start(msg, NL80211_ATTR_MBSSID_CONFIG);
> +	if (!config)
> +		goto fail;

"return -1;" would be cleaner in this case.

> +		ifidx = if_nametoindex(params->mbssid_tx_iface);
> +		if (ifidx <= 0)
> +			goto fail;

Same here.

> +		elems = nla_nest_start(msg, NL80211_ATTR_MBSSID_ELEMS);
> +		if (!elems)
> +			goto fail;

and here..

> +	return 0;
> +
> +fail:
> +	return -1;
> +}

> @@ -5439,7 +5491,6 @@ const char * nl80211_iftype_str(enum nl80211_iftype mode)
>  	}
>  }
>  
> -
>  static int nl80211_create_iface_once(struct wpa_driver_nl80211_data *drv,

Unrelated (and undesired) whitespace change should not be here.

-- 
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