Search Linux Wireless

Re: [RFC PATCH 1/2] mac80211: Add nl80211 antenna configuration

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

 



On Tue, 2010-05-11 at 17:39 +0900, Bruno Randolf wrote:


> +static inline int drv_set_antenna(struct ieee80211_local *local,
> +				  u8 tx_ant, u8 rx_ant)
> +{
> +	int ret = -EOPNOTSUPP;
> +	might_sleep();
> +	if (local->ops->set_antenna)
> +		ret = local->ops->set_antenna(&local->hw, tx_ant, rx_ant);
> +	return ret;
> +}
> +
> +static inline int drv_get_antenna(struct ieee80211_local *local,
> +				  u8 *tx_ant, u8 *rx_ant)
> +{
> +	int ret = -EOPNOTSUPP;
> +	might_sleep();
> +	if (local->ops->get_antenna)
> +		ret = local->ops->get_antenna(&local->hw, tx_ant, rx_ant);
> +	return ret;
> +}

Oh .. and add tracing please.

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 Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux