Linux wireless drivers development
 help / color / mirror / Atom feed
From: Luciano Coelho <luciano.coelho@nokia.com>
To: ext Eliad Peller <eliad@wizery.com>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH] wl1271: set wl->vif only if add_interface succeeded.
Date: Thu, 28 Oct 2010 21:56:59 +0300	[thread overview]
Message-ID: <1288292219.3414.28.camel@powerslave> (raw)
In-Reply-To: <1288106769-11990-1-git-send-email-eliad@wizery.com>

On Tue, 2010-10-26 at 17:26 +0200, ext Eliad Peller wrote:
> set wl->vif to the newly created interface only after the firmware booted
> successfully. on the way - make the function flow more clear.
> 
> Signed-off-by: Eliad Peller <eliad@wizery.com>
> ---

Looks good.  Just one comment below.


>  drivers/net/wireless/wl12xx/wl1271_main.c |   32 +++++++++++++++++-----------
>  1 files changed, 19 insertions(+), 13 deletions(-)
> 
> diff --git a/drivers/net/wireless/wl12xx/wl1271_main.c b/drivers/net/wireless/wl12xx/wl1271_main.c
> index c54887c..2599157 100644
> --- a/drivers/net/wireless/wl12xx/wl1271_main.c
> +++ b/drivers/net/wireless/wl12xx/wl1271_main.c
> @@ -950,18 +950,18 @@ static int wl1271_op_add_interface(struct ieee80211_hw *hw,
>  	struct wiphy *wiphy = hw->wiphy;
>  	int retries = WL1271_BOOT_RETRIES;
>  	int ret = 0;
> +	bool booted = false;
>  
>  	wl1271_debug(DEBUG_MAC80211, "mac80211 add interface type %d mac %pM",
>  		     vif->type, vif->addr);
>  
>  	mutex_lock(&wl->mutex);
>  	if (wl->vif) {
> +		wl1271_error("multiple vifs are not supported yet");

I don't think we should use wl1271_error here.  This will cause a lot of
information to be printed out and look bad.  It is not an error if
someone tries to add a new vif when we already have one.  Use
wl1271_debug instead.


-- 
Cheers,
Luca.


      reply	other threads:[~2010-10-28 18:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-26 15:26 [PATCH] wl1271: set wl->vif only if add_interface succeeded Eliad Peller
2010-10-28 18:56 ` Luciano Coelho [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=1288292219.3414.28.camel@powerslave \
    --to=luciano.coelho@nokia.com \
    --cc=eliad@wizery.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