linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David G Hamblen <dhamblen@roadrunner.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: Hauke Mehrtens <hauke@hauke-m.de>,
	Michael Wu <flamingice@sourmilk.net>,
	andreamrl@tiscali.it,
	linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: Kernel panic after insmodding rtl8187
Date: Mon, 18 Feb 2008 08:16:59 -0500	[thread overview]
Message-ID: <47B9854B.9090904@roadrunner.com> (raw)
In-Reply-To: <1203333690.12783.37.camel@johannes.berg>

With this patch, the rtl8187 driver from origin/everything (2.6.25-rc1) 
seems to work well for the first time.  Previous versions sometimes 
worked, but were slow on download speeds (~2.5MB/s vs >4MB/s) compared 
to my old MA401 card.



Johannes Berg wrote:
>> http://www.hauke-m.de/fileadmin/rtl-wifi/kernel-panic-2008-02-17.JPG
>>
>> The error appears when starting the wireless network with "ifup wlan0".
>> The insmodding works without any error.
> 
> Thanks, I think this patch will fix it.
> 
> johannes
> 
> --- everything.orig/drivers/net/wireless/rtl8187_dev.c	2008-02-18 12:19:40.070030491 +0100
> +++ everything/drivers/net/wireless/rtl8187_dev.c	2008-02-18 12:20:44.290028429 +0100
> @@ -176,12 +176,16 @@ static int rtl8187_tx(struct ieee80211_h
>  
>  	flags = skb->len;
>  	flags |= RTL8187_TX_FLAG_NO_ENCRYPT;
> -	flags |= control->rts_cts_rate->hw_value << 19;
> +
> +	BUG_ON(!control->tx_rate);
> +
>  	flags |= control->tx_rate->hw_value << 24;
>  	if (ieee80211_get_morefrag((struct ieee80211_hdr *)skb->data))
>  		flags |= RTL8187_TX_FLAG_MORE_FRAG;
>  	if (control->flags & IEEE80211_TXCTL_USE_RTS_CTS) {
> +		BUG_ON(!control->rts_cts_rate);
>  		flags |= RTL8187_TX_FLAG_RTS;
> +		flags |= control->rts_cts_rate->hw_value << 19;
>  		rts_dur = ieee80211_rts_duration(dev, priv->vif,
>  						 skb->len, control);
>  	}
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


      reply	other threads:[~2008-02-18 13:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-16 16:38 Kernel panic after insmodding rtl8187 Hauke Mehrtens
2008-02-17 10:10 ` Johannes Berg
2008-02-17 14:10   ` Hauke Mehrtens
2008-02-18 11:21     ` Johannes Berg
2008-02-18 13:16       ` David G Hamblen [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=47B9854B.9090904@roadrunner.com \
    --to=dhamblen@roadrunner.com \
    --cc=andreamrl@tiscali.it \
    --cc=flamingice@sourmilk.net \
    --cc=hauke@hauke-m.de \
    --cc=johannes@sipsolutions.net \
    --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).