From: Larry Finger <Larry.Finger@lwfinger.net>
To: Roman Proud <setamagiga@gmail.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: RTL8188RU no injection?
Date: Wed, 26 Oct 2011 18:23:09 -0500 [thread overview]
Message-ID: <4EA8965D.2030207@lwfinger.net> (raw)
In-Reply-To: <CAF7qGM4BL10gn2786kW73sAk8f-y8CzX0rx2BQsY_Q96W=pfog@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1633 bytes --]
On 10/26/2011 05:29 PM, Roman Proud wrote:
> Hi there,
>
> i hope you guys can help me.
> I wanted a new Wifi card, because mine has no injection, what i need sometimes.
>
> So i forced the Internet to find that a 8187 would be best for. So i
> bought the 8188 (newer = better?)... i never had thought about so much
> difference in just one number... it was horrible to even get the card
> work, first no monitor mode works, but now it does (i dunno why
> O_o)... The only thing i miss is Package injection.
Well, your research should have shown that the 8187 chip is an 802.11g version,
while the 8188 works with 802.11n. That should have given you a clue that the
driver would be VERY different.
> So my Question. Is it there? is it in the driver and i just have to do
> some magic again like i did with the monitor mode?
> If not, is there any Patch? (i didn't find anything...)
> Or should i simply send the damn thing back and get me an 8187? (its
> not that simple, and i like hacking into my linux, so one of the first
> both, would be nicer)
What kernel are you using? If you want the latest version of wireless code, you
should be running the version found in the git repo at
git://git.infradead.org/users/linville/wireless-next.git. Your next-best option
would be to get the bleeding-edge version of compat-wireless and build it for
your current kernel.
There is a bug in rtlwifi that affects monitor mode in rtl8192cu, rtl8192ce,
rtl8192se, and rtl8192de. I think it is fixed by the attached patch. At least
monitor mode works here after the patch is applied. Please let me know if it
works for you.
Larry
[-- Attachment #2: rtl8192cu_monitor --]
[-- Type: text/plain, Size: 1489 bytes --]
Index: wireless-testing-new/drivers/net/wireless/rtlwifi/core.c
===================================================================
--- wireless-testing-new.orig/drivers/net/wireless/rtlwifi/core.c
+++ wireless-testing-new/drivers/net/wireless/rtlwifi/core.c
@@ -375,6 +375,7 @@ static void rtl_op_configure_filter(stru
rtlpriv->cfg->maps[MAC_RCR_AB]);
RT_TRACE(rtlpriv, COMP_MAC80211, DBG_LOUD,
("Disable receive multicast frame.\n"));
+ *new_flags |= FIF_ALLMULTI;
}
}
@@ -387,6 +388,7 @@ static void rtl_op_configure_filter(stru
mac->rx_conf &= ~rtlpriv->cfg->maps[MAC_RCR_ACRC32];
RT_TRACE(rtlpriv, COMP_MAC80211, DBG_LOUD,
("Disable receive FCS error frame.\n"));
+ *new_flags |= FIF_FCSFAIL;
}
}
@@ -400,6 +402,7 @@ static void rtl_op_configure_filter(stru
rtlpriv->cfg->ops->set_chk_bssid(hw, false);
} else {
rtlpriv->cfg->ops->set_chk_bssid(hw, true);
+ *new_flags |= FIF_BCN_PRBRESP_PROMISC;
}
}
}
@@ -414,6 +417,7 @@ static void rtl_op_configure_filter(stru
mac->rx_conf &= ~rtlpriv->cfg->maps[MAC_RCR_ACF];
RT_TRACE(rtlpriv, COMP_MAC80211, DBG_LOUD,
("Disable receive control frame.\n"));
+ *new_flags |= FIF_CONTROL;
}
}
@@ -426,6 +430,7 @@ static void rtl_op_configure_filter(stru
mac->rx_conf &= ~rtlpriv->cfg->maps[MAC_RCR_AAP];
RT_TRACE(rtlpriv, COMP_MAC80211, DBG_LOUD,
("Disable receive other BSS's frame.\n"));
+ *new_flags |= FIF_OTHER_BSS;
}
}
}
next prev parent reply other threads:[~2011-10-26 23:22 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-26 22:29 RTL8188RU no injection? Roman Proud
2011-10-26 23:23 ` Larry Finger [this message]
2011-10-26 23:30 ` Larry Finger
2011-10-26 23:45 ` Larry Finger
2011-10-27 13:17 ` Roman Proud
2011-10-27 15:05 ` Larry Finger
2011-10-27 22:00 ` Gábor Stefanik
2011-10-27 22:18 ` Larry Finger
2011-10-27 22:21 ` Gábor Stefanik
2011-10-27 22:40 ` Larry Finger
2011-10-27 23:12 ` Larry Finger
2011-10-29 12:06 ` Roman Proud
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=4EA8965D.2030207@lwfinger.net \
--to=larry.finger@lwfinger.net \
--cc=linux-wireless@vger.kernel.org \
--cc=setamagiga@gmail.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).