Search Linux Wireless

Re: [PATCH v4 4/6] mac80211: add ability to enable TX on op-channel

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

 



On Sun, 2012-10-14 at 16:48 +0200, Victor Goldenshtein wrote:

> +static int ieee80211_dfs_en_tx(struct wiphy *wiphy, struct net_device *dev,
> +			       struct ieee80211_channel *chan)
> +{
> +	struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
> +	struct ieee80211_local *local = sdata->local;
> +	int ret = -ENOENT;
> +
> +	if (!local->ops->dfs_en_tx)
> +		return -EOPNOTSUPP;
> +
> +	ret = drv_dfs_en_tx(local, sdata, chan);
> +	return ret;

What's with the "ret" variable here?

johannes

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux