Search Linux Wireless

Re: [PATCH] nl80211: Indicate driver-based offchannel TX on mgmt_tx_cancel_wait

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

 



On Mon, 2011-08-08 at 12:10 +0300, Jouni Malinen wrote:
> Drivers that support frame transmission with mgmt_tx() may not support
> driver-based offchannel TX. Use mgmt_tx_cancel_wait instead of mgmt_tx
> when figuring out whether to indicate support for this with
> NL80211_ATTR_OFFCHANNEL_TX_OK.

Seems fine to me, I guess the driver in question isn't in the tree yet
so no need for Cc: stable?

Acked-by: Johannes Berg <johannes@xxxxxxxxxxxxxxxx>

> Signed-off-by: Jouni Malinen <jouni@xxxxxxxxxxxxxxxx>
> ---
>  net/wireless/nl80211.c |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)
> 
> diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
> index ec8444e..ca76977 100644
> --- a/net/wireless/nl80211.c
> +++ b/net/wireless/nl80211.c
> @@ -871,8 +871,7 @@ static int nl80211_send_wiphy(struct sk_buff *msg, u32 pid, u32 seq, int flags,
>  		NLA_PUT_U32(msg, NL80211_ATTR_MAX_REMAIN_ON_CHANNEL_DURATION,
>  			    dev->wiphy.max_remain_on_channel_duration);
>  
> -	/* for now at least assume all drivers have it */
> -	if (dev->ops->mgmt_tx)
> +	if (dev->ops->mgmt_tx_cancel_wait)
>  		NLA_PUT_FLAG(msg, NL80211_ATTR_OFFCHANNEL_TX_OK);
>  
>  	if (mgmt_stypes) {
> -- 
> 1.7.4.1
> 
> 


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