Linux wireless drivers development
 help / color / mirror / Atom feed
From: Kalle Valo <kvalo@qca.qualcomm.com>
To: Michal Kazior <michal.kazior@tieto.com>
Cc: <ath10k@lists.infradead.org>, <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH 2/4] ath10k: split vdev_id calculation from tx function
Date: Mon, 30 Sep 2013 22:10:30 +0300	[thread overview]
Message-ID: <87mwmudt21.fsf@kamboji.qca.qualcomm.com> (raw)
In-Reply-To: <1380292706-3609-3-git-send-email-michal.kazior@tieto.com> (Michal Kazior's message of "Fri, 27 Sep 2013 16:38:24 +0200")

Michal Kazior <michal.kazior@tieto.com> writes:

> Signed-off-by: Michal Kazior <michal.kazior@tieto.com>

Empty commit log.

> ---
>  drivers/net/wireless/ath/ath10k/mac.c |   25 +++++++++++++++----------
>  1 file changed, 15 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c
> index 7415a60..4b7c949 100644
> --- a/drivers/net/wireless/ath/ath10k/mac.c
> +++ b/drivers/net/wireless/ath/ath10k/mac.c
> @@ -1421,6 +1421,19 @@ static u8 ath10k_tx_h_get_tid(struct ieee80211_hdr *hdr)
>  	return ieee80211_get_qos_ctl(hdr)[0] & IEEE80211_QOS_CTL_TID_MASK;
>  }
>  
> +static u8 ath10k_tx_h_get_vdev_id(struct ath10k *ar,
> +				  struct ieee80211_tx_info *info)
> +{
> +	if (info->control.vif)
> +		return ath10k_vif_to_arvif(info->control.vif)->vdev_id;
> +
> +	if (ar->monitor_enabled)
> +		return ar->monitor_vdev_id;
> +
> +	ath10k_warn("could not resolve vdev id\n");
> +	return 0;
> +}

Empty line before return would be nice.

-- 
Kalle Valo

  reply	other threads:[~2013-09-30 19:10 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-27 14:38 [PATCH 0/4] ath10k: clean ups Michal Kazior
2013-09-27 14:38 ` [PATCH 1/4] ath10k: split tid calculation from tx function Michal Kazior
2013-09-30 19:08   ` Kalle Valo
2013-09-27 14:38 ` [PATCH 2/4] ath10k: split vdev_id " Michal Kazior
2013-09-30 19:10   ` Kalle Valo [this message]
2013-09-27 14:38 ` [PATCH 3/4] ath10k: remove ce_sendlist_send Michal Kazior
2013-09-27 14:38 ` [PATCH 4/4] ath10k: remove num_sends_allowed Michal Kazior
2013-10-02  9:03 ` [PATCH v2 0/4] ath10k: clean ups Michal Kazior
2013-10-02  9:03   ` [PATCH v2 1/4] ath10k: split tid calculation from tx function Michal Kazior
2013-10-02  9:03   ` [PATCH v2 2/4] ath10k: split vdev_id " Michal Kazior
2013-10-02  9:03   ` [PATCH v2 3/4] ath10k: remove ce_sendlist_send Michal Kazior
2013-10-02  9:03   ` [PATCH v2 4/4] ath10k: remove num_sends_allowed Michal Kazior

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mwmudt21.fsf@kamboji.qca.qualcomm.com \
    --to=kvalo@qca.qualcomm.com \
    --cc=ath10k@lists.infradead.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=michal.kazior@tieto.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox