linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bruno Randolf <br1@einfach.org>
To: ath5k-devel@lists.ath5k.org
Cc: greearb@candelatech.com, linux-wireless@vger.kernel.org,
	ath5k-devel@venema.h4ckr.net
Subject: Re: [ath5k-devel] [PATCH] ath5k:  Cleanup opmode setting logic.
Date: Thu, 11 Nov 2010 10:10:20 +0900	[thread overview]
Message-ID: <201011111010.20543.br1@einfach.org> (raw)
In-Reply-To: <1289418231-2427-1-git-send-email-greearb@candelatech.com>

On Thu November 11 2010 04:43:51 greearb@candelatech.com wrote:
> From: Ben Greear <greearb@candelatech.com>
> 
> An earlier review suggested moving the code in a small
> method that was only called once inline.  This patch
> accomplishes that.
> 
> Signed-off-by: Ben Greear <greearb@candelatech.com>
> ---
> 
> :100644 100644 b9f93fb... afd3094...
> :M	drivers/net/wireless/ath/ath5k/base.c
> 
>  drivers/net/wireless/ath/ath5k/base.c |   14 ++++----------
>  1 files changed, 4 insertions(+), 10 deletions(-)
> 
> diff --git a/drivers/net/wireless/ath/ath5k/base.c
> b/drivers/net/wireless/ath/ath5k/base.c index b9f93fb..afd3094 100644
> --- a/drivers/net/wireless/ath/ath5k/base.c
> +++ b/drivers/net/wireless/ath/ath5k/base.c
> @@ -549,7 +549,7 @@ static void ath_vif_iter(void *data, u8 *mac, struct
> ieee80211_vif *vif) /* Calculate combined mode - when APs are active,
> operate in AP mode. * Otherwise use the mode of the new interface. This
> can currently * only deal with combinations of APs and STAs. Only one
> ad-hoc
> -	 * interfaces is allowed above.
> +	 * interfaces is allowed.
>  	 */
>  	if (avf->opmode == NL80211_IFTYPE_AP)
>  		iter_data->opmode = NL80211_IFTYPE_AP;
> @@ -558,14 +558,6 @@ static void ath_vif_iter(void *data, u8 *mac, struct
> ieee80211_vif *vif) iter_data->opmode = avf->opmode;
>  }
> 
> -static void ath_do_set_opmode(struct ath5k_softc *sc)
> -{
> -	struct ath5k_hw *ah = sc->ah;
> -	ath5k_hw_set_opmode(ah, sc->opmode);
> -	ATH5K_DBG(sc, ATH5K_DEBUG_MODE, "mode setup opmode %d (%s)\n",
> -		  sc->opmode, ath_opmode_to_string(sc->opmode));
> -}
> -
>  static void ath5k_update_bssid_mask_and_opmode(struct ath5k_softc *sc,
>  					       struct ieee80211_vif *vif)
>  {
> @@ -595,7 +587,9 @@ static void ath5k_update_bssid_mask_and_opmode(struct
> ath5k_softc *sc, /* Nothing active, default to station mode */
>  		sc->opmode = NL80211_IFTYPE_STATION;
> 
> -	ath_do_set_opmode(sc);
> +	ath5k_hw_set_opmode(sc->ah, sc->opmode);
> +	ATH5K_DBG(sc, ATH5K_DEBUG_MODE, "mode setup opmode %d (%s)\n",
> +		  sc->opmode, ath_opmode_to_string(sc->opmode));
> 
>  	if (iter_data.need_set_hw_addr && iter_data.found_active)
>  		ath5k_hw_set_lladdr(sc->ah, iter_data.active_mac);

Thanks!

Acked-by: Bruno Randolf <br1@einfach.org>

      reply	other threads:[~2010-11-11  1:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-10 19:43 [PATCH] ath5k: Cleanup opmode setting logic greearb
2010-11-11  1:10 ` Bruno Randolf [this message]

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=201011111010.20543.br1@einfach.org \
    --to=br1@einfach.org \
    --cc=ath5k-devel@lists.ath5k.org \
    --cc=ath5k-devel@venema.h4ckr.net \
    --cc=greearb@candelatech.com \
    --cc=linux-wireless@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).