LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices

Reply
 
Search this Thread
Old 11-04-2010, 07:07 PM   #16
Mark_ger
LQ Newbie
 
Registered: Mar 2009
Distribution: Mandriva
Posts: 17

Rep: Reputation: 1

Hey, thank you!
But when I patch the driver, I get some strange output
Code:
$ patch -p0 rtl8187_dev.c rtl8187b.patch
patching file rtl8187_dev.c
Hunk #1 succeeded at 775 (offset -1 lines).
patch unexpectedly ends in middle of line
Hunk #2 succeeded at 925 with fuzz 1 (offset -1 lines).
Is that normal?
 
Old 11-08-2010, 06:30 PM   #17
CoolRabit
LQ Newbie
 
Registered: Mar 2010
Posts: 11

Original Poster
Rep: Reputation: 0
No ... that is error

But doesn't happen here, try this again:

Code:
--- a/drivers/net/wireless/rtl818x/rtl8187_dev.c
+++ b/drivers/net/wireless/rtl818x/rtl8187_dev.c
@@ -776,10 +776,6 @@ static int rtl8187b_init_hw(struct ieee80211_hw *dev)
 	reg = rtl818x_ioread8(priv, &priv->map->CW_CONF);
 	reg |= RTL818X_CW_CONF_PERPACKET_RETRY_SHIFT;
 	rtl818x_iowrite8(priv, &priv->map->CW_CONF, reg);
-	reg = rtl818x_ioread8(priv, &priv->map->TX_AGC_CTL);
-	reg |= RTL818X_TX_AGC_CTL_PERPACKET_GAIN_SHIFT |
-	       RTL818X_TX_AGC_CTL_PERPACKET_ANTSEL_SHIFT;
-	rtl818x_iowrite8(priv, &priv->map->TX_AGC_CTL, reg);
 
 	rtl818x_iowrite16_idx(priv, (__le16 *)0xFFE0, 0x0FFF, 1);
 
@@ -930,6 +926,12 @@ static int rtl8187_start(struct ieee80211_hw *dev)
 		priv->rx_conf = reg;
 		rtl818x_iowrite32(priv, &priv->map->RX_CONF, reg);
 
+		reg = rtl818x_ioread8(priv, &priv->map->TX_AGC_CTL);
+		reg &= ~RTL818X_TX_AGC_CTL_PERPACKET_GAIN_SHIFT;
+		reg &= ~RTL818X_TX_AGC_CTL_PERPACKET_ANTSEL_SHIFT;
+		reg &= ~RTL818X_TX_AGC_CTL_FEEDBACK_ANT;
+		rtl818x_iowrite8(priv, &priv->map->TX_AGC_CTL, reg);
+
 		rtl818x_iowrite32(priv, &priv->map->TX_CONF,
 				  RTL818X_TX_CONF_HW_SEQNUM |
 				  RTL818X_TX_CONF_DISREQQSIZE |
Rogerio
 
Old 12-11-2010, 09:50 PM   #18
Mark_ger
LQ Newbie
 
Registered: Mar 2009
Distribution: Mandriva
Posts: 17

Rep: Reputation: 1
Rogerio: thanks for the help, but for some reason I could not apply that patch properly.

However, Mandriva 2010.1 meanwhile got an update to kernel 2.6.36
Quote:
ChangeLog:
* Di Nov 30 2010 Thomas Backlund <tmb@mandriva.org> 2.6.36.1-2mnb
o Herton Ronaldo Krzesinski <herton@mandriva.com.br>
...
- rtl8187: miscellaneous cleanups and bug fixes.
I think, the new kernel module has Herton's 9 patches applied.
I installed 2.6.36, but unfortunately I can recognize only very small performance improvement :-(

Do you know if Cascardo's patch will be included in upcoming kernel versions?

Mark
 
Old 12-12-2010, 06:24 AM   #19
CoolRabit
LQ Newbie
 
Registered: Mar 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Solved

From early DECEMBER/2010 the compat-wireless bundle from linux-wireless has the fix, so just follow the instructions on compatīs web page to get the wireless working (even on Debian Testing

Rogerio
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
the realtek rtl-8187b ..NO WIRELESS :( DaRk_soul Linux - Laptop and Netbook 7 04-01-2010 11:46 AM
Do I need rc.inet[d,1,2], rc.pcmcia, & rc.wireless at boot if I use wicd w/wireless? agi93 Slackware 6 01-03-2010 08:07 AM
problem with PCI RTL-8185 wireless fachamix Linux - Networking 1 11-29-2009 03:15 PM
Realtek 8187b wireless card does not work properly under fedora 10 flauser Linux - Networking 10 12-28-2008 11:48 AM
Fedora 8, Wireless Realtek 8187B, Toshiba Satellite uncholowapo Fedora 16 04-26-2008 06:26 PM


All times are GMT -5. The time now is 03:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration