linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Herton Ronaldo Krzesinski <herton@mandriva.com.br>
To: "John W. Linville" <linville@tuxdriver.com>
Cc: linux-wireless@vger.kernel.org,
	Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
Subject: Re: [PATCH] rtl8187b work in progress...
Date: Tue, 1 Apr 2008 23:40:01 -0300	[thread overview]
Message-ID: <200804012340.01354.herton@mandriva.com.br> (raw)
In-Reply-To: <200804012109.57965.herton@mandriva.com.br>

Em Tuesday 01 April 2008 21:09:57 Herton Ronaldo Krzesinski escreveu:
> Em Tuesday 01 April 2008 15:24:28 John W. Linville escreveu:
> @@ -432,10 +688,24 @@ static int rtl8187_start(struct ieee8021
>  	u32 reg;
>  	int ret;
>  
> -	ret = rtl8187_init_hw(dev);
> +	ret = (priv->hw_type == RTL8187) ? rtl8187_init_hw(dev) :
> +					   rtl8187b_init_hw(dev);
> +	//ret = rtl8187_init_hw(dev);
>  	if (ret)
>  		return ret;
>  
> +	if (priv->hw_type == RTL8187B) {
> +		rtl818x_iowrite32(priv, &priv->map->TX_CONF,
> +				  RTL818X_TX_CONF_DURPROCMODE |
> +				  RTL818X_TX_CONF_DISREQQSIZE |
> +				  RTL818X_TX_CONF_MAXDMA_2048 |
> +				  (7 << 8) | 7); //TODO: define, short-long retry limit
> +		reg = rtl818x_ioread8(priv, &priv->map->MSR);
> +		reg |= RTL818X_MSR_ENEDCA;
> +		rtl818x_iowrite8(priv, &priv->map->MSR, reg);
> +		return 0;
                ^^^
Now that I removed this return (obviously wrong heh) It seems to work ok :),
the rtl8187b I have here at least now successfuly scans for aps/receive data,
later I'll do more testing/improvements.

-- 
[]'s
Herton

  reply	other threads:[~2008-04-02  2:40 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-26 23:13 Problems with RTL8187 USB device Larry Finger
2008-02-27  1:07 ` John W. Linville
2008-02-27  5:27   ` Larry Finger
2008-03-01 19:21     ` Larry Finger
2008-03-25 20:31   ` Daniel Gimpelevich
2008-04-01 15:41     ` Daniel Gimpelevich
2008-04-01 17:51       ` John W. Linville
2008-04-01 18:07         ` Daniel Gimpelevich
2008-04-01 18:24           ` [PATCH] rtl8187b work in progress John W. Linville
2008-04-02  0:09             ` Herton Ronaldo Krzesinski
2008-04-02  2:40               ` Herton Ronaldo Krzesinski [this message]
2008-04-04  3:33                 ` Pavel Roskin
2008-04-04 14:07                   ` Herton Ronaldo Krzesinski
2008-04-04 15:17                     ` Pavel Roskin
2008-04-07 12:01                       ` Herton Ronaldo Krzesinski
2008-04-04  3:21             ` Pavel Roskin
2008-04-01 21:26           ` Problems with RTL8187 USB device Pavel Roskin

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=200804012340.01354.herton@mandriva.com.br \
    --to=herton@mandriva.com.br \
    --cc=daniel@gimpelevich.san-francisco.ca.us \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.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;
as well as URLs for NNTP newsgroup(s).